Close Menu
Computing.net
    Facebook X (Twitter) Instagram
    Computing.netComputing.net
    • News
      1. AI
      2. Crypto
      3. Gaming
      4. Hardware
      5. Security
      6. Software
      7. View All

      Anthropic’s COBOL Automation Tool Triggers IBM Stock Plunge and Crypto Market Decline

      February 24, 2026

      AI Trading Bot Loses $441K in Crypto After Decimal Point Mistake

      February 23, 2026

      Tesla (TSLA) Stock: Goodbye Sedans, Hello Robots in Dramatic Production Shift

      January 29, 2026

      Palantir Technologies (PLTR) Stock: Why Bears May Be Wrong About Valuation Concerns

      January 29, 2026

      SUI Token Rallies 40% Following Major Staking Event and CME Futures Announcement

      May 12, 2026

      Chainlink (LINK) Surges to $10.40 as Network Activity Hits Eight-Month Peak

      May 12, 2026

      Dogecoin Whales Ramp Up Accumulation as DOGE Eyes Critical Breakout Levels

      May 12, 2026

      Bitcoin Holds $81K While Burry Flags Nasdaq Bubble and Oil Surges Past $105

      May 12, 2026

      Hamster Kombat: Unraveling TON’s Gaming Phenomenon

      August 7, 2024

      W-Coin: Exploring the Latest Telegram Tap-to-Earn Phenomenon

      August 7, 2024

      Hamster Kombat: 300 Million Players & Counting, HMSTR Token Airdrop Soon!

      July 31, 2024

      Hamster Kombat Developers Work with TON Team on Airdrop Solution

      July 30, 2024

      Nothing Expands Product Line with New AI Feature & Phone Update

      July 31, 2024

      Security Audit Reveals Concerns in Atari’s Blockchain Game on Base

      August 6, 2024

      SideWinder Group Targets Maritime Facilities in New Cyber Espionage Campaign

      July 30, 2024

      OAuth Implementation Flaw Exposes Millions of Websites to XSS Attacks

      July 30, 2024

      Hamster Kombat Players Face Growing Cybersecurity Threats

      July 25, 2024

      Anthropic’s COBOL Automation Tool Triggers IBM Stock Plunge and Crypto Market Decline

      February 24, 2026

      Cookie Crumble: Google Halts Plans to Eliminate Third-Party Cookies in Chrome

      July 23, 2024

      Big Brother is Watching: Apple’s Creepy New Ad Urges iPhone Users to Ditch Chrome

      July 23, 2024

      Nvidia Stock Soars to New Record at $219.44 Ahead of May 20 Earnings

      May 12, 2026

      Rocket Lab Shares Surge Past $120 Following Wave of Analyst Upgrades

      May 12, 2026

      GM Shares Decline Following 600 IT Layoffs Amid Strategic AI Workforce Transformation

      May 12, 2026

      SES Delivers €847M Q1 Performance as Intelsat Integration and Aviation Deals Fuel Expansion

      May 12, 2026
    • How To

      Batch Files: Tokens and Delimiters (FOR Loops)

      July 31, 2024

      Types of Ethernet Cabling & Electrical Low Voltage Wiring

      July 9, 2024

      What You Should Know About .JSON File Extension

      January 10, 2023

      Bkup File Extension

      November 19, 2022

      HEIC File Extension

      November 19, 2022
    • Office
      1. Excel
      2. Google Sheets
      3. View All

      How to Convert Column List to Comma Separated List in Excel

      July 24, 2024

      How to Find the Last Monday of the Month in Excel

      July 24, 2024

      Convert Bytes to MB or GB in Excel: 3 Methods!

      July 24, 2024

      How to Remove Characters from Right in Excel

      July 30, 2023

      How to Subtract in Google Sheets: Complete Guide

      July 31, 2024

      Bullet Points in Google Sheets

      January 20, 2022

      Sort by Date in Google Sheets

      January 18, 2022

      Google Sheets Timestamp

      January 17, 2022

      How to Subtract in Google Sheets: Complete Guide

      July 31, 2024

      How to Convert Column List to Comma Separated List in Excel

      July 24, 2024

      How to Find the Last Monday of the Month in Excel

      July 24, 2024

      Convert Bytes to MB or GB in Excel: 3 Methods!

      July 24, 2024
    • Answers
    • About
    • Contact
    Facebook X (Twitter)
    Computing.net
    Excel

    Multiple IF Statements in Excel

    Constantin KioulafasBy Constantin KioulafasNovember 10, 2021
    Twitter LinkedIn Email Telegram
    Multiple-IF-Statements-in-Excel
    Twitter LinkedIn Email Telegram

    We get this question quite a bit, “How do i run Multiple IF Statements in Excel?” – So today we’ll go over this in detail about first learning about why you would want to use multiple IF statements in excel or a worksheet.

    IF is a conditional statement available in almost every programming language.

    It evaluates an expression, which if true, executes any containing statements.

    Successive if statements can independently test for a variety of conditions and perform the corresponding actions.

    IF (condition A is true)
    perform Action 1
    IF (condition B is true)
    perform Action 2
    IF (condition C is true)
    perform Action 3

    The above IF statements act independently of each other.

    The outcome of condition A does not affect any of the following IF statements.

    IF (the hardware store is open)
    go inside and buy screws
    IF (the supermarket is open)
    go inside and buy groceries
    IF (the barber is open)
    get a haircut

    All of the above actions take place independently of each other.

    Getting a haircut is not affected by whether the hardware store and supermarket are open or closed.

    It is completely reliant only on whether the barber shop is open.

    In most programming languages, IF can optionally be used with ELSE, so that if a condition is not met, then another course of action is followed.

    IF (door one is not locked)
    open it and go through
    ELSE
    try the second door.

    In this case, one of two actions is taken depending on the outcome of the test condition.

    If the first door is not locked, go through, otherwise try door two.

    Running Multiple IF Statements

    IF statements can also contain other IF statements, a practice known as nesting.

    IF (test score is 50 or above)
    IF (test score is 65 or above)
    IF (test score is 80 or above)
    passed with honors
    ELSE
    passed with credit
    ELSE
    passed
    ELSE
    failed

    To receive a pass with honors, the test score must be 50 or above so that it passes the first condition, it must then be 65 or above so that it passes the second condition, and finally, it must be 80 or above.

    If the test score is 73, then it would fail at the third test condition (test score is 80 or above) and divert to the corresponding ELSE statement which gives a “passed with credit”.

    In this scenario, each ensuing condition depends on all previous conditions having been met first.

    IF statements are an important part of any programming language since they help direct the flow of the program.

    They are the basic and most common form of decision making.

    But Excel is not really a programming language, neither does it have an IF (or ELSE) statement.

    It does however, have an IF function that can perform all of the above IF constructs, including multiple and nested IFs.

    In fact, the Excel IF function is one of the most commonly used functions in Excel formulas.

    The following sample sheet, with student names and their respective exam scores, will be used to show the IF function in action.


    The aim is to populate column D (Grade) with a more meaningful, textual grading.


    =IF(C2>=50)

    In its simplest form, the IF function takes a single expression.

    The expression evaluates to either TRUE or FALSE, which is also what is printed by default.

    The expression =IF(C2>=50) simply tests to see if the exam score is equal to 50 or above.


    =IF(C2>=50, “Pass”, “Fail”)

    However, printing TRUE or FALSE is not very meaningful. Printing Pass or Fail on the other hand, would be far more appropriate.

    Apart from the expression C2>=50, which is required as the first parameter, the IF function also accepts a second parameter, that executes if the expression evaluates to TRUE, and a third parameter if it evaluates to FALSE.

    In our example, if the exam score is above or equal to 50, the IF function will print “Pass”, otherwise it will print “Fail”.

    This is essentially equivalent to the basic IF ELSE construct.

    IF (Score >= 50)
    OUTPUT “Pass”
    ELSE
    OUTPUT “Fail”

    Oftentimes though, there are more than just two options to choose between.

    What if the grading assigned to each student needed to be more specific, such as Pass, Credit, and Honors, where Honors signifies the best possible grading.


    =IF(C2>=80,”Honors”, IF(C2>=65,”Credit”, IF(C2>=50,”Pass”,”Fail”)))

    The above formula accounts for the four possible grades (Honors, Credit, Pass, and Fail), by nesting IF function calls.

    In essence, it is imitating the IF ELSE IF construct.

    IF (Score >= 80)
    OUTPUT “Honors”
    ELSE IF (Score >= 65)
    OUTPUT “Credit”
    ELSE IF (Score >= 50)
    OUTPUT “Pass”
    ELSE
    OUTPUT “Fail”

    While it may not be immediately obvious, the preceding formula reveals another feature of the IF function.

    Apart from outputting text, the second and third parameters can also hold other expressions, or calls to other functions.

    While the above formula works well, it is hard to read and makes keeping track of open and closed parentheses difficult, especially as more nested IFs are added. Fortunately, Excel provides the IFS function that replaces multiple nested IF statements, and is much easier to read.


    The new formula using the function IFS has been added to column E. It produces the same results as the original IF formula.

    The previous formula,

    =IF(C2>=80,”Honors”, IF(C2>=65,”Credit”, IF(C2>=50,”Pass”,”Fail”)))

    now becomes the much simpler (to read)

    =IFS(C2>=80, “Honors”, C2>=65, “Credit”, C2>=50, “Pass”, TRUE, “Fail”)

    The last condition in the IFS function call, TRUE, “Fail”, is a catch all statement for when all the other conditions fail.

    It merely ensures that if none of the conditions match, something meaningful is still output.

    Before closing off, the conditional expressions in the IF and IFS function calls used in this article have all been numeric, but text expressions such as C2=”Friday” (i.e. do the contents of cell C2 equal the text Friday), could just as easily have been used.

    The only requirement is that the expression must evaluate to TRUE or FALSE.

    We hope this tutorial has shown you how to run Multiple IF Statements in Microsoft Excel with examples.

    Share. Twitter LinkedIn Email Telegram
    Avatar photo
    Constantin Kioulafas
    • LinkedIn

    Costas has a wide range of experience in Information Technology covering computer hardware, programming, telecommunications, networking, web services, and general IT support. He's worked in various roles such as PHP programmer and web developer, technical and desktop support, hardware repair, system administration. Costas has excellent background in Microsoft Windows and Office Suite (Excel, Word, Powerpoint, etc), as well as a thorough understanding of Networking and Hardware maintenance.

    Related Posts

    How to Subtract in Google Sheets: Complete Guide

    July 31, 2024

    How to Convert Column List to Comma Separated List in Excel

    July 24, 2024

    How to Find the Last Monday of the Month in Excel

    July 24, 2024

    Convert Bytes to MB or GB in Excel: 3 Methods!

    July 24, 2024

    How to Remove Characters from Right in Excel

    July 30, 2023

    How to Create a Stem and Leaf Plot in Excel

    January 10, 2023
    Add A Comment

    Comments are closed.

    Latest

    Nvidia Stock Soars to New Record at $219.44 Ahead of May 20 Earnings

    May 12, 2026

    Rocket Lab Shares Surge Past $120 Following Wave of Analyst Upgrades

    May 12, 2026

    GM Shares Decline Following 600 IT Layoffs Amid Strategic AI Workforce Transformation

    May 12, 2026

    SES Delivers €847M Q1 Performance as Intelsat Integration and Aviation Deals Fuel Expansion

    May 12, 2026

    Trump Dismisses Iran Peace Proposal — Oil Markets React as Hormuz Remains Restricted

    May 12, 2026
    • Facebook
    • Twitter

    Latest Reviews

    Meta Platforms Shares Tumble 8% Despite Strong Q1 Performance Amid AI Investment Surge

    April 30, 2026

    Flush.com Review: Casino & Sportsbook With 275% Welcome Bonus

    March 7, 2026

    Katsubet Review: Crypto Casino With 300% Welcome Bonus & Free Spins

    March 7, 2026

    7Bit Review: Crypto Casino With 325% Bonus & 250 FS

    March 7, 2026

    Mega Dice Review: Crypto Casino With 200% Bonus & 50 Free Spins, Legit?

    March 7, 2026


    Home / Privacy Policy / Terms & Conditions

    Computing.net © 1996 - 2026 Kooc Media Ltd. All rights reserved. Registered Company No.05695741

    Type above and press Enter to search. Press Esc to cancel.