Office Blogs
Follow us:



 Subscribe all
 Sign in
Search for:
Search
Skip to content
Narrow By:
 What products do you use?
 Access
 Excel
 Exchange
 InfoPath
 Lync
 Office 365
 Office for iPad
 Office for Mac
 Office Online
 OneDrive
 OneNote
 Outlook
 Outlook.com
 PowerPoint
 Project
 Publisher
 SharePoint
 Sway
 Visio
 Word
 Yammer

 Clear all
 Cancel
 Apply
 Where do you use Office?
 Business
 Dev
 Home
 IT
 Non-profit
 On-premises
 Partner
 Public sector
 School

 Clear all
 Cancel
 Apply
 What do you want to see?
 Customer stories
 Events
 News
 Podcast
 Updates
 Video shows

 Clear all
 Cancel
 Apply
Back
Excel
True or false, IF provides the
answer
by Diego Oppenheimer, on September 7, 2010 | 0 Comments | 9
Today’s post is brought to you by Frederique Klitgaard. Frederique is a writer on Office.com
It’s easy to understand why the IF function appears in the top 10 list of popular Excel functions. It’s a
versatile function that can be used for all sorts of tasks.
For example, this function can save you a lot of time when you need to grade a stack of papers. It quickly
turns a long list of test scores into grades without having to do any of the math. It can also instantly
determine who passed or failed.
I don’t ever grade papers but I’ll use this example to show you the effectiveness of this function. Let’s
start by having a look at the syntax that this function uses to determine that a condition is true or false.
IF(logical_test, [value_if_true], [value_if_false])
The first argument, logical_test, is the required value or expression that will be evaluated to true or false.
Expressions use comparison operators, such as equal to (=) or greater than (>), for example A10=100. For
a list of comparison operators, see Calculation operators and precedence.
The other two arguments, value_if_true and value_if_false, are optional arguments (as indicated by the
square brackets in the syntax). When these arguments are used in the formula, they’ll return the value that
you want to be displayed when the logical_test argument evaluates to true or false.
I’ll apply this syntax to the following list of test scores.
Student Test Score Result Grade
Student 1 35
Student 2 67
Student 3 88
Student 4 70
Student 5 95
To determine who passed or failed the test, I want the formula to return the following results:
Test score Result
Greater than or equal to 70 Passed
Less than 70 Failed
In the first cell of the Result column, cell C2, I’ll enter the following formula:
IF(B2>=70, “Passed”, “Failed”)
To turn the list of test scores into grades, I can go a step further and embed additional IF functions as
formula arguments, often referred to as nesting. You can nest up to 64 IF functions as value_if_true and
value_if_false arguments.
I want the formula to return the grades as follows:
Test score Grade
Greater than 89 A
From 80 to 89 B
From 70 to 79 C
From 60 to 69 D
Less than 60 F
Based on these conditions, the nested formula I’ll enter in the first cell of the Grade column, cell D2, will
then look like this:
IF(B2>89, “A”, IF(B2>79, “B”, IF(B2>69, “C”,
IF(B2>59, “D”, “F”))))
Notice that I’ve nested three other IF functions to calculate the grades. The last argument doesn’t need the
IF function; it automatically displays an F for numbers that have not been accounted for in the nested IF
functions. I’ve used the IF function four times, so I’ll need to include four ending parentheses in the
formula.
Student Test Score Result Grade
Student 1 35 Failed F
Student 2 67 Failed D
Student 3 88 Passed B
Student 4 70 Passed C
Student 5 95 Passed A
Because I used a table format, the formula is automatically applied to all test scores. If that were not the
case, however, I would just fill the formula down to the other cells in the column to get my list of grades.
That’s all there is to it. I’m ready to get my rubber stamp and grade away!
I hope that the examples I used will help you become familiar with this function. For additional
information and other examples, please see our function reference article, IF function.
Tags
 Excel
Back to top
Related blog posts
 Use the VBA SaveAs Method in Excel 2007
 Defrosting your code
 Quick Analysis: Discover new insights

other Microsoft blogs
 Official Microsoft Blog
 Microsoft On The Issues
 The Windows Blog
other product blogs
 Exchange Blog
other Office blogs
 Office Updates
 Powered by Azure
 Legal
 Trademarks
 Privacy Statement
<div><img alt="DCSIMG" id="DCSIMG" width="1" height="1"
src="http://m.webtrends.com/dcsw88y81000008ibfg24ix2a_6l4b/njs.gif?dcsuri=/nojavascript&amp;WT.js=No&amp;WT.tv=MS.3.0.0"/></div> <img
alt="" width="1" height="1" src="http://c.microsoft.com/trans_pixel.aspx"/>

More Related Content

DOCX
Excel
PPTX
Training presentation vlookup - what it is, and when to use it
PPT
Devry cis-170-c-i lab-4-of-7-functions
DOCX
Compiler lab final report writing
PDF
CIS 1403 lab 4 selection
PPTX
10 Excel Formulas that will help you in any Job
PDF
TrainingOutline_Excel_FormulasNFunctions_Workshop (Writing Sample)
PPT
Excel IF function
Excel
Training presentation vlookup - what it is, and when to use it
Devry cis-170-c-i lab-4-of-7-functions
Compiler lab final report writing
CIS 1403 lab 4 selection
10 Excel Formulas that will help you in any Job
TrainingOutline_Excel_FormulasNFunctions_Workshop (Writing Sample)
Excel IF function

What's hot (18)

PPT
PPTX
Excel error
PDF
AutoCorrect - Excel 2013 Tutorial
PPTX
If and nested i fs
PDF
DOCX
Lesson8 creating complex formulas
PPTX
Using Excel Functions
PPTX
Formula in MS Excel
PPTX
Understanding excel’s error values
PPTX
Grade 5 Computer
PPTX
Grade 6 Computer
PPT
Excelformulas
PDF
Basic Functions - Excel 2013 Tutorial
PPTX
Excel Data Management
PDF
PDF
Row, Column, Index, Match, Offset Functions. Excel Tutorial
PPTX
Lesson5 creating simple formula
PDF
Excel Formulas Functions
Excel error
AutoCorrect - Excel 2013 Tutorial
If and nested i fs
Lesson8 creating complex formulas
Using Excel Functions
Formula in MS Excel
Understanding excel’s error values
Grade 5 Computer
Grade 6 Computer
Excelformulas
Basic Functions - Excel 2013 Tutorial
Excel Data Management
Row, Column, Index, Match, Offset Functions. Excel Tutorial
Lesson5 creating simple formula
Excel Formulas Functions
Ad

Viewers also liked (11)

PPTX
Mil.money
PPTX
Mil.check
PPTX
mil.setup
PPTX
Mil.patron
PPTX
Mil.list
PPTX
Mil.hold
PPTX
Mil.claims
PPTX
Catalog
PPTX
Mil.notices
PPTX
library circulation department manual with web stuff
PDF
2015 Marketing Plan From Pix-l Graphx
Mil.money
Mil.check
mil.setup
Mil.patron
Mil.list
Mil.hold
Mil.claims
Catalog
Mil.notices
library circulation department manual with web stuff
2015 Marketing Plan From Pix-l Graphx
Ad

Similar to management (20)

PPT
Excel IF, IFs.ppt
PDF
MS Excel 2010 tutorial 5
DOCX
Excel trick
PDF
Excel advanced formulas and functions i-school tutorials
PDF
Empowerment Technologies - Module 5
PPTX
ICT chapter 1.pptx
PDF
03 Logical functions.pdf
PPT
Excel CH 02 Working with Formulas Functions.ppt
PPTX
Microsoft excel formulas
PDF
Iipm chapter 1
PDF
Iipm chapter 1
PPTX
advance spreadsheet skils LESSON 4 - PPT.pptx
PDF
ICDL Advanced Excel 2010 - Tutorial
PPTX
Use of Excel Spreadsheets in Computing Grades
PDF
Excel functions, formulas, Prepared by singh institute RK Puram
PDF
Excel Formulas Functions 2007
PPTX
IF Statement Tutorial
PPTX
Ms excel
PPTX
MOST ESSENTIAL EXCEL FUNCTIONS AND FORMULAS FOR TEACHERS
PDF
On if,countif,countifs,sumif,countifs,lookup,v lookup,index,match
Excel IF, IFs.ppt
MS Excel 2010 tutorial 5
Excel trick
Excel advanced formulas and functions i-school tutorials
Empowerment Technologies - Module 5
ICT chapter 1.pptx
03 Logical functions.pdf
Excel CH 02 Working with Formulas Functions.ppt
Microsoft excel formulas
Iipm chapter 1
Iipm chapter 1
advance spreadsheet skils LESSON 4 - PPT.pptx
ICDL Advanced Excel 2010 - Tutorial
Use of Excel Spreadsheets in Computing Grades
Excel functions, formulas, Prepared by singh institute RK Puram
Excel Formulas Functions 2007
IF Statement Tutorial
Ms excel
MOST ESSENTIAL EXCEL FUNCTIONS AND FORMULAS FOR TEACHERS
On if,countif,countifs,sumif,countifs,lookup,v lookup,index,match

Recently uploaded (20)

PDF
Introduction to Generative Engine Optimization (GEO)
PPTX
CTG - Business Update 2Q2025 & 6M2025.pptx
PPTX
Slide gioi thieu VietinBank Quy 2 - 2025
PDF
Nante Industrial Plug Factory: Engineering Quality for Modern Power Applications
DOCX
Handbook of Entrepreneurship- Chapter 5: Identifying business opportunity.docx
DOCX
Center Enamel A Strategic Partner for the Modernization of Georgia's Chemical...
PDF
#1 Safe and Secure Verified Cash App Accounts for Purchase.pdf
PDF
Booking.com The Global AI Sentiment Report 2025
PDF
Susan Semmelmann: Enriching the Lives of others through her Talents and Bless...
PPT
Lecture 3344;;,,(,(((((((((((((((((((((((
PPTX
Board-Reporting-Package-by-Umbrex-5-23-23.pptx
PDF
Tortilla Mexican Grill 发射点犯得上发射点发生发射点犯得上发生
PDF
Ron Thomas - Top Influential Business Leaders Shaping the Modern Industry – 2025
PDF
Chapter 2 - AI chatbots and prompt engineering.pdf
PDF
ANALYZING THE OPPORTUNITIES OF DIGITAL MARKETING IN BANGLADESH TO PROVIDE AN ...
PPTX
Slide gioi thieu VietinBank Quy 2 - 2025
PPTX
chapter 2 entrepreneurship full lecture ppt
PDF
income tax laws notes important pakistan
PPTX
Astra-Investor- business Presentation (1).pptx
PPTX
IITM - FINAL Option - 01 - 12.08.25.pptx
Introduction to Generative Engine Optimization (GEO)
CTG - Business Update 2Q2025 & 6M2025.pptx
Slide gioi thieu VietinBank Quy 2 - 2025
Nante Industrial Plug Factory: Engineering Quality for Modern Power Applications
Handbook of Entrepreneurship- Chapter 5: Identifying business opportunity.docx
Center Enamel A Strategic Partner for the Modernization of Georgia's Chemical...
#1 Safe and Secure Verified Cash App Accounts for Purchase.pdf
Booking.com The Global AI Sentiment Report 2025
Susan Semmelmann: Enriching the Lives of others through her Talents and Bless...
Lecture 3344;;,,(,(((((((((((((((((((((((
Board-Reporting-Package-by-Umbrex-5-23-23.pptx
Tortilla Mexican Grill 发射点犯得上发射点发生发射点犯得上发生
Ron Thomas - Top Influential Business Leaders Shaping the Modern Industry – 2025
Chapter 2 - AI chatbots and prompt engineering.pdf
ANALYZING THE OPPORTUNITIES OF DIGITAL MARKETING IN BANGLADESH TO PROVIDE AN ...
Slide gioi thieu VietinBank Quy 2 - 2025
chapter 2 entrepreneurship full lecture ppt
income tax laws notes important pakistan
Astra-Investor- business Presentation (1).pptx
IITM - FINAL Option - 01 - 12.08.25.pptx

management

  • 1. Office Blogs Follow us:     Subscribe all  Sign in Search for: Search Skip to content Narrow By:  What products do you use?  Access  Excel  Exchange  InfoPath  Lync  Office 365  Office for iPad  Office for Mac  Office Online  OneDrive  OneNote  Outlook  Outlook.com  PowerPoint  Project  Publisher  SharePoint  Sway  Visio  Word  Yammer   Clear all  Cancel  Apply  Where do you use Office?  Business  Dev  Home  IT  Non-profit  On-premises  Partner
  • 2.  Public sector  School   Clear all  Cancel  Apply  What do you want to see?  Customer stories  Events  News  Podcast  Updates  Video shows   Clear all  Cancel  Apply Back Excel True or false, IF provides the answer by Diego Oppenheimer, on September 7, 2010 | 0 Comments | 9 Today’s post is brought to you by Frederique Klitgaard. Frederique is a writer on Office.com It’s easy to understand why the IF function appears in the top 10 list of popular Excel functions. It’s a versatile function that can be used for all sorts of tasks. For example, this function can save you a lot of time when you need to grade a stack of papers. It quickly turns a long list of test scores into grades without having to do any of the math. It can also instantly determine who passed or failed. I don’t ever grade papers but I’ll use this example to show you the effectiveness of this function. Let’s start by having a look at the syntax that this function uses to determine that a condition is true or false.
  • 3. IF(logical_test, [value_if_true], [value_if_false]) The first argument, logical_test, is the required value or expression that will be evaluated to true or false. Expressions use comparison operators, such as equal to (=) or greater than (>), for example A10=100. For a list of comparison operators, see Calculation operators and precedence. The other two arguments, value_if_true and value_if_false, are optional arguments (as indicated by the square brackets in the syntax). When these arguments are used in the formula, they’ll return the value that you want to be displayed when the logical_test argument evaluates to true or false. I’ll apply this syntax to the following list of test scores. Student Test Score Result Grade Student 1 35 Student 2 67 Student 3 88 Student 4 70 Student 5 95 To determine who passed or failed the test, I want the formula to return the following results: Test score Result Greater than or equal to 70 Passed Less than 70 Failed In the first cell of the Result column, cell C2, I’ll enter the following formula: IF(B2>=70, “Passed”, “Failed”)
  • 4. To turn the list of test scores into grades, I can go a step further and embed additional IF functions as formula arguments, often referred to as nesting. You can nest up to 64 IF functions as value_if_true and value_if_false arguments. I want the formula to return the grades as follows: Test score Grade Greater than 89 A From 80 to 89 B From 70 to 79 C From 60 to 69 D Less than 60 F Based on these conditions, the nested formula I’ll enter in the first cell of the Grade column, cell D2, will then look like this: IF(B2>89, “A”, IF(B2>79, “B”, IF(B2>69, “C”, IF(B2>59, “D”, “F”)))) Notice that I’ve nested three other IF functions to calculate the grades. The last argument doesn’t need the IF function; it automatically displays an F for numbers that have not been accounted for in the nested IF functions. I’ve used the IF function four times, so I’ll need to include four ending parentheses in the formula. Student Test Score Result Grade Student 1 35 Failed F Student 2 67 Failed D Student 3 88 Passed B
  • 5. Student 4 70 Passed C Student 5 95 Passed A Because I used a table format, the formula is automatically applied to all test scores. If that were not the case, however, I would just fill the formula down to the other cells in the column to get my list of grades. That’s all there is to it. I’m ready to get my rubber stamp and grade away! I hope that the examples I used will help you become familiar with this function. For additional information and other examples, please see our function reference article, IF function. Tags  Excel Back to top Related blog posts  Use the VBA SaveAs Method in Excel 2007  Defrosting your code  Quick Analysis: Discover new insights  other Microsoft blogs  Official Microsoft Blog  Microsoft On The Issues  The Windows Blog other product blogs  Exchange Blog other Office blogs  Office Updates  Powered by Azure  Legal  Trademarks  Privacy Statement
  • 6. <div><img alt="DCSIMG" id="DCSIMG" width="1" height="1" src="http://m.webtrends.com/dcsw88y81000008ibfg24ix2a_6l4b/njs.gif?dcsuri=/nojavascript&amp;WT.js=No&amp;WT.tv=MS.3.0.0"/></div> <img alt="" width="1" height="1" src="http://c.microsoft.com/trans_pixel.aspx"/>