IF statement within an IF statement

bdschleich

Board Regular
Joined
Apr 26, 2005
Messages
133
I am trying to structure an IF statement within an IF statement and I am not sure how to structure the formula properly.

More specifically, I have the following formula: =IF(B2=X, Y, Z) and I want to then subsequently have another IF statement within the same cell that will then check for the following condition: IF(Statement above > A, B, Statement above).

Any thoughts on how this formula should be written so that it is all one formula wihin a cell?
 
Sure.

Try:

=if(B2=500,"B2 equals 500", if(B2>500, "B2 is greater than 500", "B2 is less than 500"))
 
Upvote 0
Hi
I am trying to create an if statement for multiple values (18) and I tried using the following but the limit is 7 - =IF(SEARCH("SOUTHPOINT",A:A),"SOUTHPOINT",),IF(SEARCH("DUBLIN",A:A),"DUBLIN",), and so on with 16 more values but it wont let me do more than 7, how does one extend the if formula to the amount I need?
 
Upvote 0

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