picture

1. IF function

Function: Judge whether a certain condition is met, if so, return the first value, otherwise return another value.

Syntax structure: =IF (judgment condition, the return value when the condition is met, the return value when the condition is not met).

Purpose: According to the monthly salary to judge whether it is "high salary", if it is more than 4500, it will return "high salary", otherwise it will return null.

picture

Method: Enter the formula in the target cell: =IF(G3>4500,"High Salary","").


2. Sumif function.

Function: Sum the cells that meet the condition.

Syntax structure : =Sumif(condition range, condition, [sum range]), if "condition range" and "sum range" are the same, "sum range" can be omitted.

Purpose: To count the total "monthly salary" by "gender".

picture

Method: Enter the formula in the target cell: =SUMIF(D3:D12,J3,G3:G12).

3. Averageif function.

Function: Find the arithmetic mean of the cells specified by the given conditions.

Syntax structure: =Averageif(condition range, condition, [value range]), when "condition range" and "value range" are the same, "value range" can be omitted.

Purpose: To calculate the average "monthly salary" by "gender".

picture

Method: Enter the formula in the target cell: =AVERAGEIF(D3:D12,J3,G3:G12).


4. Countif function.

Function: Calculate the number of cells in the specified range for a given condition.

Syntax structure: =Countif(condition range, condition).

Purpose: To count people by "sex".

picture

Method: Enter the formula in the target cell: =COUNTIF(D3:D12,J3).

Recommended in the past

The method of extracting birthday and age from ID number in Excel is recommended for you.

The secret of preventing Word documents from being maliciously modified | Awesome word brother

3 ways to fill color in each row in Excel, practicality is the last word!

So practical, the Alt key can be used like this!

There are always students asking me how to quickly master Excel functions, and now I reply uniformly