Nested If Statements

SirHart

New Member
Joined
Jun 13, 2011
Messages
39
Hey everyone,

This site has been so helpful so far. I have another one for you.

I need to nest if(iserror) statements. I tried to nest it on my own but I am continuously getting errors. I'm banging my head against a wall here.

Here's the rundown.

The original statement is

=IF(ISERROR(SEARCH("xx",AZ$8)),"","Post Date")

That works perfectly, however; I need it to have additional options as well.

If Cell BA$8 has the xx, I want the text to read "Interview".
and
If Cell BB$8 has the xx, I want the text to read "Status"
(Don't worry about anymore than 1 cell having the "xx" at the same time, BUT I do need it to read the additional options! I am having a table that places itself in a certain place when the xx is there but the xx can change. So I just need to figure out how to nest these!)

This is my current failed attempt:

=IF(ISERROR(SEARCH("xx",AZ$8)),"","Post Date",IF(ISERROR(SEARCH("xx",BA$8,1)), "", "Inter view",IF(ISERROR(SEARCH("xx",BB$8,1)), "", "Status")))

Help a poor guy out!
 

Excel Facts

Which lookup functions find a value equal or greater than the lookup value?
MATCH uses -1 to find larger value (lookup table must be sorted ZA). XLOOKUP uses 1 to find values greater and does not need to be sorted.
Hey everyone,

This site has been so helpful so far. I have another one for you.

I need to nest if(iserror) statements. I tried to nest it on my own but I am continuously getting errors. I'm banging my head against a wall here.

Here's the rundown.

The original statement is

=IF(ISERROR(SEARCH("xx",AZ$8)),"","Post Date")

That works perfectly, however; I need it to have additional options as well.

If Cell BA$8 has the xx, I want the text to read "Interview".
and
If Cell BB$8 has the xx, I want the text to read "Status"
(Don't worry about anymore than 1 cell having the "xx" at the same time, BUT I do need it to read the additional options! I am having a table that places itself in a certain place when the xx is there but the xx can change. So I just need to figure out how to nest these!)

This is my current failed attempt:

=IF(ISERROR(SEARCH("xx",AZ$8)),"","Post Date",IF(ISERROR(SEARCH("xx",BA$8,1)), "", "Inter view",IF(ISERROR(SEARCH("xx",BB$8,1)), "", "Status")))

Help a poor guy out!
How about this...

=IF(COUNTIF(AZ$8,"*xx*"),"Post Date",IF(COUNTIF(BA$8,"*xx*"),"Inter view",IF(COUNTIF(BB$8,"*xx*"),"Status","")))
 
Upvote 0
Try

=if(counta(AZ8:BB8),choose(match("xx",AZ8:BB8,0),"Post Date","Interview","Status")),"")
 
Upvote 0
Thank you T.Valko. That works like a charm. I would have never thought to do that in a million years.

Jasonb75, I got an error when trying yours...
 
Upvote 0
I made an assumption that would appear incorrect,

=if(countif(AZ8:BB8,"xx"),choose(match("xx",AZ8:BB8),"Post Date","Interview","Status")),"")

or

=choose(countif(AZ8:BB8,"xx")+1,"","Post Date","Interview","Status")

but I don't think the latter will work for you.
 
Upvote 0

Forum statistics

Threads
1,224,521
Messages
6,179,282
Members
452,902
Latest member
Knuddeluff

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