Excel skill training twelve basic functions if, sumif, sumifs, clean, trim, upper, lower, proper, Text, REPLACE, substitute

1. How to use the help file

The help document is as follows, there are specific meanings of function parameters, and a video introduction to the usage:

1. The use of if function, if is similar to three operators,

If it is satisfied, display the first parameter, otherwise display the second parameter

If multiple tables are written in the if condition, use + to indicate or, * to indicate and

 

2. The first parameter of sumif is the column area of ​​the condition, the second parameter is the specific value of the condition, and the third parameter is the column to be calculated.

3. sumifs, you can add multiple fields, which is equivalent to the operation in sql

sum (score) where class = second class and serial number>10

The first parameter is the score column that needs sum, the second parameter is the area of ​​condition 1, the third parameter is the expression of condition 1, and the four parameters are the area of ​​condition. . . .

4. Application type of the cell,

Apply A35 as follows

Here is a relative reference. If my cell is filled in different directions, the relative position will change.

Press F4 for the first time, it will become an absolute reference.

Press F4 for the second time, and it becomes the column feel referenced

Press F4 for the third time, it becomes an absolute line quote

5. Date comparison, you need to add a date function in front

Text function:

clean removes non-printing characters in the text, such as removing the enter key

trim - remove spaces before and after

upper - to uppercase

lower - turn lowercase

proper - turn first letter to uppercase

Text - Examples of formatting functions

Other official examples:

official

Description

=TEXT(1234.567,"$#,##0.00")

Currency has 1 thousand separator and 2 decimals, such as $1,234.57. Note that Excel rounds the value to two decimal places.

= TEXT(TODAY(),"MM/DD/YY")

The current date is in YY/MM/DD format, such as 12/03/14

=TEXT(TODAY(),"DDDD")

The day of the week, such as Sunday

=TEXT(NOW(),"H:MM AM/PM")

Current time, such as 1:29 PM

=TEXT(0.285,"0.0%")

Percentage, such as 28.5%

=TEXT(4.34 ,"# ?/?")

Fraction, such as 4 1/3

=TRIM(TEXT(0.34,"# ?/?"))

Fraction, such as 1/3. Note that this will use the TRIM function to remove leading spaces with decimal values.

=TEXT(12200000,"0.00E+00")

Scientific notation, such as 1.22E+07

=TEXT(1234567898,"[<=9999999]###-####;(###) ###-####")

Special (phone number), such as (123) 456-7898

=TEXT(1234,"0000000")

Add leading zero (0), such as 0001234

=TEXT(123456,"##0° 00' 00''")

Custom-Latitude/Longitude

substitute-SUBSTITUTE(text, old_text, new_text, [instance_num]), [instance_num]- which of them needs to be replaced, if not written, it means all are replaced. Check it out first and replace it.

REPLACE data replacement function, replace each string from a fixed number to the number. Find the location and replace it.

grammar

REPLACE(old_text, start_num, num_chars, new_text)

REPLACEB(old_text, start_num, num_bytes, new_text)

The REPLACE and REPLACEB function syntax has the following parameters:

  • old_text is     required. The text whose characters are to be replaced.

  • start_num is     required. The character position in old_text to be replaced with new_text.

  • num_chars is     required. The number of characters in old_text that REPLACE is expected to use new_text to replace.

  • Num_bytes is     required. The number of bytes in old_text that REPLACEB hopes to use new_text to replace.

  • new_text is     required. The text that will replace the characters in old_text.

 

 

Guess you like

Origin blog.csdn.net/pengweismile/article/details/110305504