Combination of ISERROR and ISNUMBER in a formula

meami111

New Member
Joined
Dec 1, 2010
Messages
36
Hi, I am trying to put a formula with a combination of ISERROR and ISNUMBER as follows:
=IF(ISERROR(A2),IF(B2<10,"South",IF(B2>=10,"North",IF(ISNUMBER(A2),IF(C2<20,"South","North")

Getting result for the error values but not for the number values. Seems some issue in the logic. Solicit your help in resolving this

Regards
Amiya C
 

Attachments

  • Excel Image.jpg
    Excel Image.jpg
    23.9 KB · Views: 12

Excel Facts

Format cells as date
Select range and press Ctrl+Shift+3 to format cells as date. (Shift 3 is the # sign which sort of looks like a small calendar).
See if this works. There are holes in the logic that you could fall through (one that I've noticed). You make no allowance for A2 being text. This is where I have added the text, "Failed" into the formula.
Excel Formula:
=IF(ISERROR(A2),IF(B2<10,"South","North"),IF(ISNUMBER(A2),IF(C2<20,"South","North"),"Failed"))
 
Upvote 0
See if this works. There are holes in the logic that you could fall through (one that I've noticed). You make no allowance for A2 being text. This is where I have added the text, "Failed" into the formula.
Excel Formula:
=IF(ISERROR(A2),IF(B2<10,"South","North"),IF(ISNUMBER(A2),IF(C2<20,"South","North"),"Failed"))
The column A does not have a text. But can you suggest why the formula is failing for numbers and what should be the solution?
 
Upvote 0
You used too many IF's, the first one had no result for FALSE. The formula would never reach ISNUMBER because of the way it was written.

I already have.
Hi Jason
Thanks for your earlier response. I need some more help in this:

How to add a few more nested functions inside and still get a valid answer. Apparently I am getting stuck if more than one nested function is added:
e.g:
=IF(ISERROR(A2),IF(B2<10,"South",IF(B2<20,"West",IF(B2<30,"East","North"),IF(ISNUMBER(A2),IF(C2<20,"South",IF(C2<30,"West",C2<40,"East","North"),"Failed"))

Looking forward to your suggestion
 
Upvote 0
You're missing a closing bracket in the first section. The 2 IF's that I've marked are both specific to the ISERROR section, so both need to be closed before the next part starts.
Similarly, there are 2 brackets missing in front of "Failed" that relate to the ISNUMBER section.

Rich (BB code):
=IF(ISERROR(A2),IF(B2<10,"South",IF(B2<20,"West",IF(B2<30,"East","North")),IF(ISNUMBER(A2),IF(C2<20,"South",IF(C2<30,"West",IF(C2<40,"East","North"))),"Failed"))

Usually there are better ways than lots of IF's, but remember we can only give answers as good as your questions. While it is a good idea to simplify things when you post, cutting it down too much may not always get you the best help.

This is what I see in your formula, but it may not be what you need.
Excel Formula:
=LOOKUP(IF(ISERROR(A2),B2+10,C2),{0,20,30,40},{"South","West","East","North"})
 
Upvote 0

Forum statistics

Threads
1,214,642
Messages
6,120,698
Members
448,979
Latest member
DET4492

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