Nesting 2 completely different IF statements?

kvmike

New Member
Joined
Feb 28, 2022
Messages
11
Office Version
  1. 365
Platform
  1. Windows
Hi,

Hoping someone can help me.
Currently i have 2 separate IF statements checking for separate conditions:

First one checks if 1 cell is blank, and a corresponding one isn't and will result in a string of text:
=IF(OR(ISBLANK(H2<>""),ISBLANK(A2)),"No Deal Reg - Contact Opportunity Owner","")

Second one checks if 2 statement conditions align in a specific way and will provide a result based on this:
=IF(AND(OR(E12={"Rejected","Expired"}),OR(F12={"Quoting","Not Qualified","Quoted"})),"Review status with Supplier","")

Can anyone see a way that i can merge these into a formula for 1 cell? rather than using 2 different cells.

Many thanks in advance
 

Excel Facts

How to calculate loan payments in Excel?
Use the PMT function: =PMT(5%/12,60,-25000) is for a $25,000 loan, 5% annual interest, 60 month loan.
The simplest way to do it is like this, although whether or not that will suit your requirements is an entirely different matter. Given that you have 2 entirely different sets of criteria it may be necessary to change the order of the different parts depending on which criteria has priority if multiple conditions are met.
Excel Formula:
=IF(OR(ISBLANK(H2<>""),ISBLANK(A2)),"No Deal Reg - Contact Opportunity Owner",IF(AND(OR(E12={"Rejected","Expired"}),OR(F12={"Quoting","Not Qualified","Quoted"})),"Review status with Supplier",""))
If you want the results of both formulas to be shown if both sets of criteria are met then you should really be using 2 cells. Whilst possible in a single cell it would not be considered a good idea.
 
Upvote 0
Solution
The simplest way to do it is like this, although whether or not that will suit your requirements is an entirely different matter. Given that you have 2 entirely different sets of criteria it may be necessary to change the order of the different parts depending on which criteria has priority if multiple conditions are met.
Excel Formula:
=IF(OR(ISBLANK(H2<>""),ISBLANK(A2)),"No Deal Reg - Contact Opportunity Owner",IF(AND(OR(E12={"Rejected","Expired"}),OR(F12={"Quoting","Not Qualified","Quoted"})),"Review status with Supplier",""))
If you want the results of both formulas to be shown if both sets of criteria are met then you should really be using 2 cells. Whilst possible in a single cell it would not be considered a good idea.
Perfect thank you! this will work fine for 1 cell as there will never be a scenario where to 2 different IF statement criteria clash. Thanks again
 
Upvote 0

Forum statistics

Threads
1,224,820
Messages
6,181,160
Members
453,021
Latest member
Justyna P

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top