You are on page 1of 21

Using IF Function in Excel

The workbook shows how to build an Excel IF statement for different types of values as well as how to create
multiple IF statements.

Author
Last update
Tutorial URL

Examples:
• Basic Excel IF statement
• Behavior of the value_if_false argument
• IF formula for numbers
• IF statement for text values
• Case-sensitive IF formula
• If cell contains partial text
• IF function with dates
• IF statement for blank and non-blank cells
• Check if two cells match
• IF formula to run another formula
• Nested IF statement
• IF statement with multiple conditions
• If error formula
ng IF Function in Excel
rkbook shows how to build an Excel IF statement for different types of values as well as how to create
e IF statements.

Ablebits.com
20-Jul-22
How to use IF function in Excel

cel IF statement
r of the value_if_false argument
ula for numbers
ment for text values
nsitive IF formula
ontains partial text
tion with dates
ment for blank and non-blank cells
two cells match
ula to run another formula
IF statement
ment with multiple conditions
Name Score Result
Aiden 88 Good
Ava 61 Bad
Emma 94 Good
Ethan 73 Bad
Liam 64 Bad
Lucas 83 Good
Name Score Result Result Result
Aiden 88 Good Good Good
Ava 61 FALSE 0
Emma 94 Good Good Good
Ethan 73 FALSE 0
Liam 64 FALSE 0
Lucas 83 Good Good Good
Name Score Status
Aiden 88
Ava -62 Invalid
Emma 94
Ethan 73
Liam -10 Invalid
Lucas 83
Product Delivery status Action required
Apples delivered No
Bananas In transit Yes
Cherries Delivered No
Kiwis Out for delivery Yes
Lemons In transit Yes
Mangos Delivered No
Oranges DELIVERED No
Peaches Out for delivery Yes
Product Delivery Status Action required
Apples delivered Yes
Bananas In transit Yes
Cherries Delivered Yes
Kiwis Out for delivery Yes
Lemons In transit Yes
Mangos Delivered Yes
Oranges DELIVERED No
Peaches Out for delivery Yes
Product Delivery Status Action required
Apples delivered No
Bananas In transit Yes
Cherries Delivered No
Kiwis Out for delivery No
Lemons In transit Yes
Mangos Delivered No
Oranges DELIVERED No
Peaches Out for delivery No
Game Date Status Today is 21-Oct-23
Game 1 8/3/2022 Completed
Game 2 9/7/2022 Completed
Game 3 5/19/2022 Completed
Game 4 6/6/2022 Completed
Game 5 8/2/2022 Completed
Game 6 6/30/2022 Completed
Game 7 5/23/2022 Completed
Game 8 6/7/2022 Completed
Game 9 7/12/2022 Completed
Game Date Status
Game 1 8/3/2022 Completed
Game 2
Game 3 5/19/2022 Completed
Game 4 6/6/2022 Completed
Game 5
Game 6 6/30/2022 Completed
Game 7
Game 8 6/7/2022 Completed
Game 9 7/12/2022 Completed
Name Science Art Status Password
Aiden 88 71 iX=(0gh6
Ava 61 70 -#?B2)YR
Emma 94 94 Same score Jup}TuO
Ethan 73 86 ]|b1M&Ng
Liam 64 98 IN9!G]W1
Lucas 83 83 Same score 8qJqE2w
Repeat Password Status
iX=(0gh6 Match
-#?B2(YR Don't match
`Jup}tuO Don't match
]|b1M&Ng Match
IN9!G]W1 Match
8qJqEf2w Don't match
Name Score Bonus
Aiden 88 6.16
Ava 61 1.83
Emma 94 6.58
Ethan 73 2.19
Liam 64 1.92
Lucas 83 5.81
Name Score Bonus Score Bonus
Aiden 88 7% Over 90 10%
Ava 61 3% 90 to 81 7%
Emma 94 10% 80 to 70 5%
Ethan 73 5% Under 70 3%
Liam 64 3%
Lucas 81 7%
Name Science Art Result (AND) Result (OR)
Aiden 88 71 Fail Pass
Ava 61 70 Fail Fail
Emma 94 90 Pass Pass
Ethan 73 86 Fail Pass
Liam 64 98 Fail Pass
Lucas 83 86 Pass Pass
Name Score In top 3? Top 3 scores
Aiden 88 Yes 94
Ava 61 No 88
Emma 94 Yes 83
Ethan 73 No
Liam 64 No
Lucas 83 Yes

You might also like