I'm not completely sure if I understood the issue. But as per what I understood, that could be solved with a "vlookup" formula Answer from Ambitious-Run7930 on reddit.com
🌐
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.
🌐
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 - In Excel, changing the order of IF functions changes the result. Why? Because a nested IF formula returns a value corresponding to the first TRUE condition. Therefore, in your nested IF statements, it's very important to arrange the conditions in the right direction - high to low or low to high, depending on your formula's logic.
Discussions

How to make an Excel nested if, else, and statement - Stack Overflow
So I have this table: If: columnD is "b" I want column E to return "Correct" How do I do this? More on stackoverflow.com
🌐 stackoverflow.com
Nested IFs; A More Efficient Way?
u/Fairly_Violet01 - Your post was submitted successfully. Once your problem is solved, reply to the answer(s) saying Solution Verified to close the thread. Follow the submission rules -- particularly 1 and 2. To fix the body, click edit. To fix your title, delete and re-post. Include your Excel version and all other relevant information Failing to follow these steps may result in your post being removed without warning. I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns. More on reddit.com
🌐 r/excel
18
34
February 10, 2024
What alternatives exist to complex nested If statements?
https://www.reddit.com/r/excel/comments/2slys1/never_use_nested_ifs_again/ https://www.reddit.com/r/excel/comments/2t16q9/more_on_never_using_nested_ifs_again_warning_even/ :) More on reddit.com
🌐 r/excel
9
13
March 23, 2017
Nested IF, AND, OR
Morning. I'm trying (failing) to find the right syntax to return data using a nested IF, and then OR, AND Requirements: IF, Cell A = "Approved" OR "Authorized", and Cell B = Not blank, the formula should return "Reauth". If Cell B is Blank, Return nothing. If Cell A is anything other than... More on mrexcel.com
🌐 mrexcel.com
6
0
December 10, 2022
🌐
Ablebits
ablebits.com › ablebits blog › excel › if statement › nested if in excel – formula with multiple conditions
Nested IF in Excel – formula with multiple conditions
October 17, 2023 - If the condition of the 1st If function is not met, then test the 2nd If statement, and so on. IF(check if B2>=249, if true - return "Excellent", or else IF(check if B2>=200, if true - return "Good", or else IF(check if B2>150, if true - return "Satisfactory", if false - return "Poor"))) If you need a nested IF formula with wildcard characters (partial match), check out this example: If cell contains, then return different values.
🌐
Exceljet
exceljet.net › nested if function example
Nested IF function example - Excel formula | Exceljet
May 30, 2023 - One way to do this in Excel is to use a series of nested IF functions. Generally, nested IFs formulas are used to test more than one condition and return a different result for each condition.
🌐
TechOnTheNet
techonthenet.com › excel › formulas › if_nested.php
MS Excel: How to use the Nested IF Functions (WS)
If cell B2 is greater than or equal to 0 then subtract from C1. If both A2 and B2 are blank then equals C1. Can you help me with the IF function on this one? Answer: You can write a nested IF statement that uses the AND function and the ISBLANK function as follows:
🌐
Excelfrog
excelfrog.com › if
Excel: Understand IF, Nested IF, and IFS Functions
Formula: =IF(AGE<18, "child", "adult"). Just replace AGE by a cell that contains the actual age. In the spreadsheet below it's C2. And when we edit the age, the text is updated properly. That's nice, but we can do even more powerful stuff with nested IF.
Find elsewhere
🌐
Stack Overflow
stackoverflow.com › questions › 68382043 › how-to-make-an-excel-nested-if-else-and-statement
How to make an Excel nested if, else, and statement - Stack Overflow
=IF(D1="B", "Correct", IF(AND(A1="b", B1="b", C1="w"), "One", IF(AND(A1="b", B1="w", C1="b"), "Two", IF(AND(A1="b", B1="w", C1="w"), "Three"))))
🌐
DataCamp
datacamp.com › tutorial › nested-if-excel
Nested IF() in Excel: A Quick Solution for Many Conditions | DataCamp
January 3, 2025 - Nested IF() statements in Excel let you check multiple conditions in a single formula, returning distinct outputs for each test to handle complex scenarios.
🌐
Reddit
reddit.com › r/excel › nested ifs; a more efficient way?
r/excel on Reddit: Nested IFs; A More Efficient Way?
February 10, 2024 -

Hey fellow Redditors,

I am working on an Excel spreadsheet tracking state/country attendance for my work, and I am trying to build a formula that references a long list (~250 rows) of country names and their country code equivalent and automatically fills in the country code in column D based off of the country name typed out in column C. After some research and testing, I’ve discovered one way to do this as nesting IF statements. The formula I currently have started is: =IF(C94=H$1,I$1,IF(C94=H$2,I$2,IF(C94=H$3,I$3,IF(C94=H$4,I$4,IF(C94=H$5,I$5,IF(C94=H$6,I$6,IF(C94=H$7,I$7,…IF(C94=H$250,I$250)))))))) I’ve only typed out a few of these statements (IF(CX=H$X,I$X)), and after some concern about character limit in formulas, I am both tired and concerned that I will not be able to finish my formula this way as it stands. There has got to be a better way to do this, I just don’t have enough Excel experience to be able to figure out how I could effectively condense this formula (tried a couple things, like trying to reference the columns by H:H and I:I; didn’t work)

Your advice is much appreciated!

Top answer
1 of 1
3

If you put your list of neutralisers with pH ranges somewhere in your workbook and give it a name List (name refers to data without header 48 rows x 3 columns), you can use the formula:

=IF(Sheet1!A5="","",IFERROR(IF(MEDIAN(Sheet1!P5,VLOOKUP(Sheet1!A5,List,{2,3},FALSE))=Sheet1!P5,"Yes","No"),"Another Neutraliser"))  

Your List read from the given formula:

Neutraliser pH min pH max
Potato Dextrose Agar 5.4 5.8
Sabouraud Dextrose Agar 5.4 5.8
Vegan PDA 5.4 5.8
EE Broth 7 7.4
R2A Medium 7 7.4
Slanetz & Bartley Medium 7 7.4
Yeast Extract Agar 7 7.4
Cetrimide Agar 7 7.4
Harlequin Medium 7 7.4
Nutrient TSB 7 7.4
Vegitone + Tween 7 7.4
Vegitone LB Broth 7 7.4
MRD 6.8 7.2
Neutraliser 3 6.8 7.2
Neutraliser 4 6.8 7.2
Neutraliser 5 6.8 7.2
TNC 6.8 7.2
Minimal Agar 6.8 7.2
Minimal Broth 6.8 7.2
Neutraliser 9 6.8 7.2
Vegan TNC 6.8 7.2
Neutraliser 1 6.9 7.3
Neutraliser 2 6.9 7.3
Pseudomonous Agar 6.9 7.3
Candida Chromogenic Agar 5.8 6.2
Neutraliser 7 5.8 6.2
Malt Extract Agar 5.2 5.6
Buffered Charcoal Yeast Extract Agar 6.8 7
CLED Bevis Modification 7.3 7.7
DE Neutralising Broth 7.4 7.8
RVS Broth 5 5.4
Sabouraud Liquid Medium 5.5 5.9
Reinforced Clostridial Medium 6.6 7
Tryptone Water 6.6 7
MacConkey Agar 7.2 7.6
Mannitol Salt Agar 7.2 7.6
VRBGA 7.2 7.6
Blood Agar 7.2 7.6
XLD Agar 7.2 7.6
MacConkey Broth 7.1 7.5
Microbial Content Test Agar 7.1 7.5
Tryptone Soy Agar 7.1 7.5
Tryptone Soy Broth 7.1 7.5
PBS 7.1 7.5
Mueller Hinton Agar 7.1 7.5
Vegan Tryptone Soy Agar 7.1 7.5
Middlebrook 7H11 Agar Base 6.4 6.8
Neutraliser 8 6 6.4

The screenshot:

🌐
SpreadsheetWeb
spreadsheetweb.com › home › nested if functions in excel
Nested IF Functions in Excel
January 24, 2024 - In Excel, nested IF functions are used when you need to evaluate more than one condition and make decisions based on those multiple conditions. They are particularly useful for complex decision-making where the outcome depends on several different ...
🌐
Reddit
reddit.com › r/excel › what alternatives exist to complex nested if statements?
r/excel on Reddit: What alternatives exist to complex nested If statements?
March 23, 2017 -

Hey r/excel!

Is it possible for excel to look to a cell, and make a determination based on the contents of that cell, without needing to have a series of nested if-statements?

For example:

Cell A2 contains the value: "DOG" Cell B2 calls a series of rules that are specific to "DOG", and calculates.

Because my list of calculation determinants (DOGs) is long, and the calculations they are associated with can vary widely, I would prefer not to use a difficult-to-audit complex 'if' statement. But I'm not sure what other avenues are open to me.

EDIT: To be clear, I need something that will call an active formula. I don't think I can accomplish that with a vlookup or index/match (but if it's possible please let me know!).

Help!

🌐
MrExcel
mrexcel.com › forums › question forums › excel questions
Nested IF, AND, OR | MrExcel Message Board
December 10, 2022 - =IF(OR(A1="Approved",A1="Authorized")=FALSE,"",IF(AND(OR(A1="Approved",A1="Authorized"),B1<>""),"Reauth",IF(B1="","")))
🌐
Udemy
blog.udemy.com › home › multiple if statements in excel – nested if functions explained
Multiple IF Statements In Excel - Explained - Udemy Blog
September 15, 2021 - This structure means that you could create an IF statement, and then if that statement evaluates to true, the code can then use another IF statement and so on. Here is what a nested ...
🌐
Wall Street Mojo
wallstreetmojo.com › home › all blogs › excel resources › excel nested if function
Excel Nested IF Function | How to use? | (Syntax & Examples)
December 20, 2024 - So we need to use Nested IFs to try multiple criteria. We must open the IF condition and pass the first test, i.e., whether the score is >=585. If the above logical test is "TRUE," we need the result as "Dist." So, we must enter the result in double-quotes. The next argument is if the value or test is "FALSE." If the test is "FALSE," we have four more conditions to test, so we must open one more IF condition in Excel in the next argument.
🌐
DataCamp
datacamp.com › tutorial › basic-excel-formulas-for-everyone
The 15 Basic Excel Formulas Everyone Needs to Know | DataCamp
December 29, 2025 - Yes, you can nest Excel formulas by placing one function inside another. For example, you can nest IF within VLOOKUP to handle specific conditions. When nesting, be sure to match parentheses correctly to avoid errors.