Summary: Continue function, beginning of array
table of Contents
SUMIF function
Conditional sum
- The first parameter is the condition range
- The second parameter is the condition, enclosed in quotation marks, such as ">10000"
- The third parameter is the summation range
- Note: If the summation range is consistent with the condition range, the summation range can be omitted
SUMIFS function
- The first parameter is the summing range
- The rest are conditional parameters, multiple conditions are allowed
Date function
YEAR()
Take the year function
MONTH()
Take month function
DAY()
Take the day function
TODAY()
Return current date
DATE()
Return the specified date
NOW()
Range current date + current time
EDATE ()
- Parameter 1, startdate
- Parameter 2, month to
obtain the current date parameter 2 months later date
EOMONTH()
- Parameter 1, start_date
- Parameter 2, month
- If parameter 2 is 0, return the date of the last day of the current time
- If parameter 2 is 1, return the date of the last day of the month next to the current time
How many days in the month
DAY(EOMONTH())
- The second parameter is 0
What quarter is the month
IF(MONTH/3<=1,"first quarter degree",IF(MONTH/3<=2,"second quarter",IF(MONTH/3<=3,"third quarter","fourth quarter ”)))
ROUND,ROUNDDOWN,ROUNDUP
- ROUND, rounding, the second parameter is the number of decimals to keep
- ROUNDUP, round up
- rounddown, round down
Remainder function MOD()
- The remainder in Excel can only use mod function
- The result of the remainder function in Excel is specially stipulated, which is different from common sense
- The sign of the remainder function in Excel is the same as the divisor
example | result |
---|---|
MOD(1,2) | 1 |
MOD(1,-2) | -1 |
MOD(-1,2) | 1 |
MOD(-1,-2) | -1 |
Example-Determine whether the year is a leap year
Two rules for leap years:
Rule 1: Divisible by 100 and divisible by 400
Rule 2: Divisible by 4, but not divisible by 100
OR(AND(MOD(MONTH,100)=0,MOD(MONTH,400) )=0),AND(MOD(MONTH,4)=0,MOD(MONTH,100)<>0))
Note that not equal to is less than greater than sign in Excel
REPLACE function, hide mobile phone number
REPLACE(text,startnum,num,newtext)
- Excel counts from 1
- newtext, can be "***" or "REPT(text,num)"
x number, what to do if you add up to one time
Write an example first, and then use the fill handle. The fill handle is very powerful.
If the three are merged at once, select the first two spaces plus a cell with a value for the fill handle, and then drag down
Generate intermittent series
IF (a column="","",counta (fix a row and a column is not fixed, a column))
Array
concept
- An array is an ordered sequence of elements, and each variable that makes up a number is called an element of the array.
- For an array in Excel, it can be understood as a collection with row and column identification and size characteristics. The data of a cell can be an array, that is, a single-element array; a single-row array or a single-column number is a one-dimensional array with multiple rows and multiple columns The array is a multidimensional array
Array creation
- ctrl+shift+enter
- Enter the equal sign
- Use braces {}
- Comma separated row array
- Column arrays are separated by semicolons
- Multiple lines and multiple columns, use a combination of commas and semicolons, and no semicolons at the end
- If there are fewer grids, it will display normally; if there are more grids, an error will be reported
Benefits of arrays
- Faster calculation
- Select a column directly * *∗ One column, one column∗ *∗ Multiple columns, eliminating the trouble of dragging and filling handles
- One-dimensional array ∗ *∗ One-dimensional array
- One-dimensional array ∗ *∗ Two-dimensional array
- Two-dimensional array ∗ *∗ Two-dimensional array
- Direct sum (a column * a column)
- row gets the current row, column gets the current column number
- Use logical values to calculate, true is 1, false is 0, directly write the relational expression, select the area> 0, it is a Boolean value