if isserror then look to next column for 0 if 0 then give me 0 not working

jordanburch

Active Member
Joined
Jun 10, 2016
Messages
440
Office Version
  1. 2016
1711108122306.png

Hi i have the above and i expect it to return a value of 0 as there is a zero there but its not. It does work when the 0 is on the right column. Any thoughts?
=+IF((ISERROR(AA6759)),IF(AB6759=0,0,IF(ISERROR(AB6759),IF(AA6759=0,0,"false"))))
 

Excel Facts

When did Power Query debut in Excel?
Although it was an add-in in Excel 2010 & Excel 2013, Power Query became a part of Excel in 2016, in Data, Get & Transform Data.
You didn't specify what to return if AA6759 is NOT an error.
Excel Formula:
=IF(ISERROR(AA6759),
                      IF(AB6759=0,0,IF(ISERROR(AB6759),IF(AA6759=0,0,"false"))),
                      0)
 
Upvote 0
You didn't specify what to return if AA6759 is NOT an error.
Excel Formula:
=IF(ISERROR(AA6759),
                                                            IF(AB6759=0,
                                                                                               0,
                                                                                                IF(ISERROR(AB6759),IF(AA6759=0,0,"false"))),
                                                             0)
ok thanks now when I insert that formula its just giving me 0 all around
1711110196036.png
went torow 6741
 
Upvote 0
it's up to you what happens when the cells are blank or have any other value, i just explained why don't get a 0.
Excel Formula:
=IF(ISBLANK(AA6759),"",IF(ISERROR(AA6759),IF(AB6759=0,0,IF(ISERROR(AB6759),IF(AA6759=0,0,"false"))),0))
 
Upvote 0
it's up to you what happens when the cells are blank or have any other value, i just explained why don't get a 0.
Excel Formula:
=IF(ISBLANK(AA6759),"",IF(ISERROR(AA6759),IF(AB6759=0,0,IF(ISERROR(AB6759),IF(AA6759=0,0,"false"))),0))
thats still giving me everything as 0. Basically just want if it is 0 in aa and ab return 0 if its value then false
 
Upvote 0
Excel Formula:
=IF(ISBLANK(AA6759),"",IF(ISERROR(AA6759),IF(AB6759=0,0,IF(ISERROR(AB6759),IF(AA6759=0,0,"false"))),IF(AA6759=0,0,"false")))
 
Upvote 0
Solution
I must be interpreting the logic differently:

20240323 If error and equals 0 vs null string jordanburch.xlsx
AAABACAD
1AAABAlexbobsan42
2#VALUE!false 
3#VALUE!false0
40#VALUE!00
5#VALUE!000
60000
75#VALUE!falsefalse
8#VALUE!5falseFALSE
950falsefalse
100500
Sheet1
Cell Formulas
RangeFormula
AB2,AA8,AB7,AA5,AB4,AA3AB2=VALUE("X")
AC2:AC10AC2=IF(NOT(ISERROR(AA2)),IF(TRIM(AA2)="0",0,"false"),IF(NOT(ISERROR(AB2)),IF(TRIM(AB2)="0",0,"false")))
AD2:AD10AD2=IF(ISBLANK(AA2),"",IF(ISERROR(AA2),IF(AB2=0,0,IF(ISERROR(AB2),IF(AA2=0,0,"false"))),IF(AA2=0,0,"false")))
 
Upvote 0
I must be interpreting the logic differently:

20240323 If error and equals 0 vs null string jordanburch.xlsx
AAABACAD
1AAABAlexbobsan42
2#VALUE!false 
3#VALUE!false0
40#VALUE!00
5#VALUE!000
60000
75#VALUE!falsefalse
8#VALUE!5falseFALSE
950falsefalse
100500
Sheet1
Cell Formulas
RangeFormula
AB2,AA8,AB7,AA5,AB4,AA3AB2=VALUE("X")
AC2:AC10AC2=IF(NOT(ISERROR(AA2)),IF(TRIM(AA2)="0",0,"false"),IF(NOT(ISERROR(AB2)),IF(TRIM(AB2)="0",0,"false")))
AD2:AD10AD2=IF(ISBLANK(AA2),"",IF(ISERROR(AA2),IF(AB2=0,0,IF(ISERROR(AB2),IF(AA2=0,0,"false"))),IF(AA2=0,0,"false")))
Thanks looks good but I marked solution
 
Upvote 0

Forum statistics

Threads
1,215,079
Messages
6,122,998
Members
449,092
Latest member
masterms

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