当前位置:网站首页>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

边栏推荐
- Unity3d learning note 9 - loading textures
- Installation and tutorial of MATLAB curling simulation game
- The difference between apply, call and bind
- 很清晰的条理
- Druid连接池——从0开始坚强的一点点的自学,Druid一点不懂的可以点进来,懂得别点进来,点进来你会嫌我啰嗦的
- Docker install MySQL 5.7
- 暗黑王者|ZEGO 低照度图像增强技术解析
- LVGL 8.2 Roller
- Optimize bubble sorting
- GDT,LDT,GDTR,LDTR
猜你喜欢

Permanently solve Matplotlib Chinese garbled code

Spirng security (VIII) multiple filter chains coexist
![[ CTF 学习 ] CTF 中的隐写集合 —— 图片隐写术](/img/32/2da78bd5866cfab9ee64dfcb1c1204.png)
[ CTF 学习 ] CTF 中的隐写集合 —— 图片隐写术

Huawei cloud from entry to actual combat | cloud rapid site establishment service and enterprise host security service

Maker concept design to adapt to popular education

Swagger simple quick start tutorial

Preparation for Android development in big companies

Paper:《Peeking Inside the Black Box: Visualizing Statistical Learning with Plots of Individual Condi

ThreadLocal Kills 11 consecutive questions

Construction of data center (I): background of the emergence of data center
随机推荐
Penetration test target combat SQL injection getshell
Sudden! Britain accuses Huawei of major defects in its equipment (with report)
PCBA scheme design -- Bluetooth intelligent nutrition scale scheme
Apache Doris series: in depth understanding of real-time analytical database Apache Doris
How to use ide tool hhdbcs to create a data table containing 1000 simulated data in Oracle database, and
Nested if selection structure and switch selection structure
Paper:《Peeking Inside the Black Box: Visualizing Statistical Learning with Plots of Individual Condi
LVGL 8.2 Roller
Interview required: how to design the seckill system?
数据中台建设(一):数据中台出现的背景
The application could not be installed: INSTALL_ FAILED_ USER_ RESTRICTED
Huawei od maximum consumption JS
Preparation for Android development in big companies
Server status code
Apipost signs up with Chinatelecom! Work together to accelerate the digital transformation of enterprises
Max matrix and JS
Debezium series: optimize cluster parameters and support personalized settings of debezium connector
What causes the wait event of TCP socket (kgas) in oracle?
Openharmony Mengxin contribution Guide
The difference between apply, call and bind