You nest them inside each other. So something like this:

=if({cell}>25,5,if({cell}>20,4,if({cell}>15,3,if({cell}>10,2,1))))

Answer from sean108 on community.spiceworks.com
🌐
Excel Forum
excelforum.com › excel-formulas-and-functions › 1345882-help-on-nested-if-formula-new-post.html
Help on Nested IF formula [SOLVED]
Dear All I am very new to excel and on my own, I am learning. I am using excel 2016. In the attached xl Coloum "E" is having 6 Varieties and in column "F" is the price will be indicated which I removed. I wrote a formula using nested if and it works perfectly, which is mentioned in column "G" and now I am using this by making a filter in column "E" I tried constructing a single formula and able to do it for S.NO 1,2 & 3 which is also mentioned in "G10"
🌐
Ablebits
ablebits.com › ablebits blog › excel › if statement › excel nested if statements - examples, best practices and alternatives
Excel Nested IF statements - examples, best practices and alternatives
October 17, 2023 - Translated into a human language, this nested IF statement tells Excel to do the following: Test condition1, if TRUE - return result1, if FALSE - test condition2, if TRUE - return result2, if FALSE - test condition3, if TRUE - return result3, if FALSE - return result4 · As an example, let's find out commissions for a number of sellers based on the amount of sales they've made: In math, changing the order of addends does not change the sum. In Excel, changing the order of IF functions changes the result.
🌐
Exceljet
exceljet.net › 19 tips for nested if formulas
19 tips for nested IF formulas | Exceljet
October 24, 2023 - Even moderately complex formulas use nesting frequently, so you'll see nesting everywhere in more complex formulas. A nested IF is just two more IF statements in a formula, where one IF statement appears inside the other.
🌐
Microsoft Support
support.microsoft.com › en-us › office › if-function-nested-formulas-and-avoiding-pitfalls-0b22ff44-f149-44ba-aeb5-4ef99da241c8
IF function – nested formulas and avoiding pitfalls - Microsoft Support
Multiple IF functions can be nested together to allow for multiple criteria. The Excel IF function statement allows you to make a logical comparison between a value and what you expect by testing for a condition and returning a result if True or False.
🌐
Exceljet
exceljet.net › nested if function example
Nested IF function example - Excel formula | Exceljet
May 30, 2023 - The Excel IF function performs a logical test and returns one result when the logical test returns TRUE and another when the logical test returns FALSE. For example, to "pass" scores above 70: =IF(A1>70,"Pass","Fail"). More than one condition ...
🌐
H2S Media
how2shout.com › home › excel › how to use the if and nested-if formula to work with conditions on microsoft excel
How to use the IF and nested-IF formula to work with conditions on Microsoft Excel
November 25, 2019 - So, that way, you can use the ‘IF’ formula. But, what about the nested IF? Having more than two conditions? In such a case, you can use the nested IF technique.
Find elsewhere
🌐
DataCamp
datacamp.com › tutorial › nested-if-excel
Nested IF() in Excel: A Quick Solution for Many Conditions | DataCamp
January 3, 2025 - While Excel allows up to 64 nested IF() functions, let’s be real — stacking that many conditions creates error-prone formulas that no one wants to debug. If you’re using Excel 2016 or later, you can use the IFS() function.
🌐
Microsoft Support
support.microsoft.com › en-us › office › ifs-function-36329a26-37b2-467c-972b-4a39bd951d45
IFS function - Microsoft Support
The IFS function checks whether one or more conditions are met and returns a value that corresponds to the first TRUE condition. IFS will allow you to include up to 127 pairs of conditions (the test if something is True and the result if something is true). IFS can take the place of multiple ...
🌐
YouTube
youtube.com › c › GyanOnTube
Gyan On Tube - YouTube
Hello Friends, आप सब का सवागत है हमारे Youtube channel में जहा पर आप Excel tips and tricks, Microsoft office, Excel tricks, Ms Word, Ms Excel, computer tips, Excel formulas, Excel from beginner to advanced in hindi, Ms Access, Power BI, Ms Power Point, basic to advanced computer knowledge, advanced excel and all new excel formulas like Xlookup, Xmatch, Filter, sort and many more. you can even learn how to create PowerBi dashboard with power bi DAX Formula ये सब आप बिलकुल फ्री में सीख सकते
🌐
Sheetgo
sheetgo.com › home › how to use the nested if function in excel
How to use the nested IF function in Excel - Sheetgo
September 8, 2021 - The nested If function works in exactly the same way as the If function. However, this allows you to test multiple conditions at once. If a data value doesn’t meet the first condition, it may meet the second.
🌐
NestJS
docs.nestjs.com › middleware
Documentation | NestJS - A progressive Node.js framework
Nest is a framework for building efficient, scalable Node.js server-side applications. It uses progressive JavaScript, is built with TypeScript and combines elements of OOP (Object Oriented Programming), FP (Functional Programming), and FRP (Functional Reactive Programming).
🌐
Excel Tip
exceltip.com › home › logical formulas
How to Use Nested IF Function in Excel
October 22, 2020 - This is done to save space and time and is usual practice. Let's learn nested formula syntax and illustrate an example to understand better. ... IF function is used for logic_test and returns value on the basis of the result of the logic_test.
🌐
ExperTrain
expertrain.co.uk › how-to › how-to-nest-multiple-if-functions-in-excel
How to Nest Multiple IF Functions in Excel | Step-by-Step Guide
October 19, 2025 - When working in Microsoft Excel, one of the most useful and flexible tools you’ll ever use is the IF function. It allows you to make logical comparisons — to test if something is true or false — and return different results based on the outcome. ... But what if you need to test more than one condition? That’s where nested IF functions come in.
🌐
Lifewire
lifewire.com › nest-multiple-if-functions-in-excel-3123897
How to Nest Multiple IF Functions in Excel
June 16, 2019 - As shown in the image, this tutorial ... used in the example is shown below. The nested IF function acts as the value_if_false argument for the first IF function....
🌐
Coefficient
coefficient.io › excel-tutorials › how-to-use-nested-if-statements-in-excel
Nested IF Statements in Excel: From Basics to Advanced (2025 Guide)
December 9, 2024 - Nested IF statements work by embedding one IF function inside another, allowing you to test multiple conditions in order.