Share via

If, AND, ISERROR Nested formula

Anonymous
2010-08-06T12:43:04+00:00

Hi  Folks

I'm having some difficulty in adding ISERROR into my nested formula...

=IF(AND(H380="Y",H6<>""),1,IF(H380="N/a","",IF(AND(H380="Y",H6=""),0,0)))

H6 being the cell with #DIV/0!

Many thanks

Tracey

Excel vs 2002

Microsoft 365 and Office | Excel | For home | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

Answer accepted by question author

Anonymous
2010-08-06T13:57:59+00:00

Maybe.......

=IF(ISERROR(H6),"Error in H6",IF(AND(H380="Y",H6<>""),1,IF(H380="N/a","",IF(AND(H380="Y",H6=""),0,0))))

Vaya con Dios,

Chuck, CABGx3

Was this answer helpful?

1 person found this answer helpful.
0 comments No comments

Answer accepted by question author

Anonymous
2010-08-06T14:57:23+00:00

Ok so now this is closed... I did a work around - I created a table replicating the pivot table (tbl1) with the formula**=IF(ISERROR(G6),"Nill",1)**

And then in table 3 I have the following formula: =IF(AND(G380="Y",AX6=1),1,IF(G380="N/a","",IF(AND(G380="Y",AX6="Nill"),0,0)))

It works! Long way round but it still works

Thank you Chuck and Bernard your suggestions helped a great deal!

Was this answer helpful?

0 comments No comments

Answer accepted by question author

Anonymous
2010-08-06T13:27:37+00:00

=IF(ISERROR(H6),"H6 has an error",IF(AND(H380="Y",H6<>""),1,IF(H380="N/a","",IF(AND(H380="Y",H6=""),0,0))))

But I wonder about H380="N/a" Has the user typed "N/a" or is this coming from a formula? Perhaps that term should read H380=NA(), it ISNA(H380)

best wishes


people.stfx.ca/bliengme

Was this answer helpful?

0 comments No comments

3 additional answers

Sort by: Most helpful
  1. Anonymous
    2010-08-06T13:30:51+00:00

    it still brings back #DIV/0!

    =IF(AND(H380="Y",H6<>""),1,IF(H380="N/a","",IF(AND(H380="Y",**H6=#DIV/0!),**0,0)))

    Was this answer helpful?

    0 comments No comments
  2. Anonymous
    2010-08-06T12:48:00+00:00

    Reduced formula

    =IF(H380="N/a","",IF(ISERROR(H6),"What happens?",IF(H6="",0,1)))

    Was this answer helpful?

    0 comments No comments