Common Commands
alt + enter: soft Enter, Enter in the box, do not jump to the next box
shift + f11: to create a new worksheet
ctrl + home: return to the first row, first column
alt + home: Returns the current row The first column
alt + =: auto sum
ctrl + ↑ / ↓ / ← / →: quickly jump to the current column / row (beginning / end)
Ctrl + Shift + ↑ / ↓ / ← / →: quickly select the current column / row at the beginning (/ end)
Ctrl + ;: enter the current date
ctrl + shift + ;: input current time
ctrl + ~: displaying the original formulas, functions, and so
ctrl + pageup / pagedown: go to the previous / next worksheet
shift + f2: insert Comment
ctrl + g: Location
ctrl + 5: delete line
Common Operations
Copy Table: press ctrl, use the mouse to drag the worksheet, the worksheet will be copied
synchronization worksheet: ctrl-select multiple worksheets, will form a working group can then synchronize the
function
Instructions
In the input unit Gerry =
+ 函数名()
can be, for example:
=rand()
Common Functions
today (): the current date
now (): current time
rand (): random number from 0 to 1
sum (x, y): summation
product (xy, y): find the product
average (x, y): averaging
max (x, y): selecting the maximum value
min (x, y): for the minimum
true (): returns True
, or enter =1=1
the result is True
false (): returns False
and (x [, y, z , ...]) : determining whether a plurality of contents at the same time set up, the results returned True
or False
or (x [, y, z , ...]): determines whether there is the establishment of a plurality of contents, the results returned True
or False
not (x): the result negated
Logical Functions
if(条件,True_result[, False_result])
There are three parameters, representing conditions, the conditions established value, the value of the condition is not satisfied, if the third argument is not set, an error is returned by default False
, for example:
=IF(A1>2,A1,B2)
# 当A1格的数据大于2则区A1的值,否则取B2的值
NOTE:
IF functions can also be nested, for example:
=IF(2>1,IF(4>3,3,2),1)
VBA Kazuhiro
In essence, based on the operating period of VBA code implementation
xls/xlsx/xlsm
For more than three ways to save often excel format, which is the 2003 version of excel xls default save format, and its xlsm can be saved to a file which the macro, and the macro will not be saved xlsx, relatively safe
Record Macro
Click the Record Macro, and then start the operation, when the recording is finished after the operation, then this operation will be recorded, the next time will do the same to carry out the macro
Macro code
At Sub 功能名()
the beginning, End Sub
end
Note
Single-line comments '
begin with
Judgment statement
If 条件 Then
xxx
Else
xxx
End If
For loop
For xxx to xxx
xxx
Next xxx
Do While loop
Do While 条件
xxx
Loop
There are Do Until
cycle that shows until the end of the cycle when the specified condition
important point
ctrl + a: Select not completely, but in the currently selected cell is selected as a reference to four weeks until the column is stopped empty empty lines selected
Common pit
Entry ID
Since excel in the length value over 15 will automatically turn the latter figure to zero, and is shown in scientific notation, this provides two solutions:
1. Enter a card before the input '
2. change the format of the input block to text
Enter scores
For example, you want to enter 1/2
, the results will become 1月2日
, so you can enter 0 1/2
, it is 1.51 1/2
Reproduced in: https: //www.jianshu.com/p/42d18c265bea