当前位置:网站首页>1. If function of Excel
1. If function of Excel
2022-07-25 04:30:00 【Andy Python】
1. Excel Of IF function
1. Mission
Calculate each employee's 7 Monthly sales bonus .
according to 7 Whether the monthly sales performance is greater than 6 Monthly sales performance , To determine the sales bonus :
If 7 Monthly sales performance is greater than 6 Monthly sales performance , Pay a bonus 2000 element .
If 7 Monthly sales performance is less than or equal to 6 Monthly sales performance , Pay a bonus 600 element .

2. IF Syntax of functions
【 Function interpretation 】
If the conditions are met , Just ..., otherwise ....
【 grammar 】
=IF ( Testing conditions , Truth value , False value ) =IF(logical_test , value_if_true , value_if_false)
If meet “ Testing conditions ”, Fill the cells Truth value .
If not satisfied “ Testing conditions ”, Fill the cells False value .
【 Function name 】IF
【 Parameters 1】 Testing conditions
【 Parameters 2】 Truth value
【 Parameters 3】 False value
【 reminder 】3 The parameters are separated by English commas , English comma .
3. Example 1
If it doesn't rain tomorrow , Let's play basketball , Otherwise we will play games in the dormitory .
=IF( It won't rain tomorrow , To play basketball , Play the game )
【 Testing conditions 】 It won't rain tomorrow
【 Truth value 】 To play basketball
【 False value 】 Play the game
4. Practice
If 7 Monthly sales performance is greater than 6 Monthly sales performance , Pay a bonus 2000 element .
If 7 Monthly sales performance is less than or equal to 6 Monthly sales performance , Pay a bonus 600 element .
=IF(7 Monthly sales performance is greater than 6 Monthly sales performance ,2000, 600)=IF( Testing conditions , Truth value , False value )
【 Testing conditions 】7 Monthly sales performance is greater than 6 Monthly sales performance .
【 Truth value 】2000
【 False value 】600
5. Operation steps
1. single click E3 Cell ;
2. single click “ The formula ” tab ;
3. single click “ The formula ” Under the tab “ Insert the function ” tab ;
4. stay “ Selection function ” Area find and click IF;
5. Click ok ;
6. stay “ Testing conditions ” Box :D3>C3;( In English ime state , Press Shift+> Key to enter >) ;
6. Click on “ Testing conditions ” box , Click on D3 Cell , Input > , Click on C3 Cell ( The first 6 Step can also do this );
7.“ Truth value ” Box 2000;
8.“ False value ” Box 600;
9. Click ok ; Here I successfully calculated Liu Yi's bonus .
10. Click on E3 Cell , Put the mouse on E3 The lower right corner of the cell , Appear black “ Ten ” Behind the word handle , Double click the left mouse button ,E3 All the following lines are automatically filled , Function can automatically calculate the sales bonus of all employees .


6. Check the formula
Click on E3 Cell , In the rectangular area above ( Edit bar ) The function formula content of this cell will be displayed :
=IF(D3>C3,2000,600)
After mastering the formula, we can also directly enter the above formula in the cell .

7. IF Nested function
【 Mission 】
【 achievement 】>=600 : a copy
【 achievement 】400-600 : Two copies
【 achievement 】<400: this
first IF function
【 Testing conditions 】 achievement >=600
【 Truth value 】 a copy
【 False value 】 Nested one IF function , Continue to judge
the second IF function
【 Testing conditions 】400-600
【 Truth value 】 Two copies
【 False value 】 this
【 Operation steps 】
1. single click E3 Cell ;
2. single click “ The formula ” tab ;
3. single click “ The formula ” Under the tab “ Insert the function ” tab ;
4. stay “ Selection function ” Area find and click IF;
5. Click ok ;
6. Click on “ Testing conditions ” box , Click on D3 Cell , Input >=600;
7.“ Truth value ” Box a copy ;
8. Click on “ False value ” box ;
9. single click “ The formula ” Under the tab “ Insert the function ” tab ;
10. stay “ Selection function ” Area find and click IF;
11. Click ok ;
12. Click on “ Testing conditions ” box , Click on D3 Cell , Input >=400;
13.“ Truth value ” Box Two copies ;
14.“ False value ” Box this ;
15. Click ok ; Here we have successfully calculated Liu Yi's admission ;
16. Click on E3 Cell , Put the mouse on E3 The lower right corner of the cell , Appear black “ Ten ” Behind the word handle , Double click the left mouse button ,E3 All the following lines are automatically filled , Function can automatically calculate the admission of all students .
【 Check the formula 】
=IF(D3>=600," a copy ",IF(D3>=400," Two copies "," this "))
8. Multi condition parallel judgment
【 Mission 】
30 Students under 12 years old , 50% off the train ticket , The original price of the rest .
【 Testing conditions 】 Student +30 Under the age of 【 Truth value 】 50% off
【 False value 】 The original price
【 Testing conditions 】AND(C3=" Student ",D3<30) 【 Truth value 】 50% off
【 False value 】 The original price
【 Operation steps 】
1. single click E3 Cell ;
2. single click “ The formula ” tab ;
3. single click “ The formula ” Under the tab “ Insert the function ” tab ;
4. stay “ Selection function ” Area find and click IF;
5. Click ok ;
6. Click on “ Testing conditions ” box ; 7. Input 'AND';
8. Enter English brackets ;
9. Click click C3 Cell , Input =" Student ",; Note that the symbols are input in English ;
10. Click on D3 Cell , Input <30; Note that the symbols are input in English ;
11. Enter parentheses after English ;
12.“ Truth value ” Box 50% off ;
13.“ False value ” Box The original price ;
14. Click ok ; Here we have successfully calculated the discount of Liu Yi's train ticket .

【 Check the formula 】
=IF(AND(C3=" Student ",D3<30)," 50% off "," The original price ")
【 reminder 】 Note that the symbols in the formula are entered in English .
9. summary

边栏推荐
- GDT,LDT,GDTR,LDTR
- Paper:《Peeking Inside the Black Box: Visualizing Statistical Learning with Plots of Individual Condi
- Pandora IOT development board learning (RT thread) - Experiment 16 WiFi module experiment (learning notes)
- Docker install MySQL 5.7
- Huawei od maximum consumption JS
- LVGL Switch & Table
- Numpy overview
- PCBA scheme design -- Bluetooth intelligent nutrition scale scheme
- LVGL 8.2 Spinbox
- Max matrix and JS
猜你喜欢

Wechat applet application development (I)

DNS domain name resolution

Spire. Office for net 7.7.2 and news

Network engineering case: integrated network design of CII company

Docker install MySQL 5.7

Permanently solve Matplotlib Chinese garbled code

Interview required: how to design the seckill system?

Preparation for Android development in big companies

Simple understanding of RPC

LVGL 8.2 Span
随机推荐
Cluster clock synchronization configuration
Leetcode:733. image rendering [BFS]
[cloud picture theory] 247 first introduction to Huawei cloud analysis service
Creativity: Modern Art anonymous oil painting AI works presentation
Best practice cases of data security in the medical industry (desensitization version)
Nested if selection structure and switch selection structure
Druid连接池——从0开始坚强的一点点的自学,Druid一点不懂的可以点进来,懂得别点进来,点进来你会嫌我啰嗦的
Optimize bubble sorting
Millet 100W fast charging, 50W wireless charging technology exposure! Oppo Shen Yiren responded: boring!
Permanently solve Matplotlib Chinese garbled code
6.7 billion dollars! The acquisition of IDT by Renesas Electronics was finally approved!
GBase JDBC 连接数据库异常
Spire. Office for net 7.7.2 and news
Source code | opencv DNN + yolov7 target detection
Openharmony Mengxin contribution Guide
[golang from introduction to practice] poker licensing game
LVGL 8.2 Textarea
阿亚的角度思考
Opencv4.5.x+cuda11.0.x source code compilation and yolov5 acceleration tutorial!
Penetration test target combat SQL injection getshell