why giving me N/A?

daveyc18

Well-known Member
Joined
Feb 11, 2013
Messages
782
Office Version
  1. 365
  2. 2010
=IF(OR(G8=0,AB8>0),0,AB8)

g8 is N/a....AB8 is 0.....shouldnt the if statement produce 0? it's giving me N/A
 
Hi JP, I am not getting that result if the G8 is the result of a vlookup returning #N/A because OR(G8=0,ISNA(G8),AB8>=0) evaluates to OR(#N/A,TRUE,TRUE) which returns #N/A and OR(G8=0,G8=#N/A,AB8>=0) which evaluates to OR(#N/A,#N/A,TRUE) which also returns #N/A.

Please see the results I get below.


Excel 2016 (Windows) 64 bit
GHIJKAB
1JonmoJP1JP2
20#N/A#N/A
3
4
5
6
7
8#N/A345
Sheet1
Cell Formulas
RangeFormula
I2=IF(ISNA(G8),0,IF(OR(G8=0,Z8>=0),0,Z8))
J2=IF(OR(G8=0,ISNA(G8),AB8>=0),0,AB8)
K2=IF(OR(G8=0,G8=#N/A,AB8>=0),0,AB8)
G8=VLOOKUP(C8,F13:H24,2,0)
 
Last edited:
Upvote 0

Excel Facts

Can a formula spear through sheets?
Use =SUM(January:December!E7) to sum E7 on all of the sheets from January through December
I can't find the workbook I used the other day when I first answered. But I've recreated it in this screenshot.

The formulas I've posted (shown in column D) return #N/A and not zero if there is a #N/A error in G8. It must have been late at night, or perhaps I wrote different formulas than I posted. The Jonmo formula in column E returns zero if G8 is #N/A.

Ar9kprh.png
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,176
Members
453,021
Latest member
Justyna P

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