IFNA formula not working

rosrow31

New Member
Joined
Jun 25, 2021
Messages
3
Office Version
  1. 365
Platform
  1. Windows
Hi,

I have the formula: =IF(ISBLANK(X6),"",IFNA(IF(X6="Yes",VLOOKUP(A6,'Storage Pivt'!A:B,2,FALSE),0),0)). The cell is returning 0 when it hsouldn't be, it sould be returning the results of the V lookup.

The formula is looking every thing up correctly. It's the IFNA part of the formula that isn't working correctly, as the cell is displaying displaying 0. However, the cell in X6 does = Yes so it should be using the vlookup, instead it is using the false part and displaying 0. I know this because if you replace the last zero with another number, it displays the new number. E.g. if the formula was =IF(ISBLANK(X6),"",IFNA(IF(X6="Yes",VLOOKUP(A6,'Storage Pivt'!A:B,2,FALSE),0),99)) it would return 99


1645088266809.png
 

Excel Facts

Copy formula down without changing references
If you have =SUM(F2:F49) in F50; type Alt+' in F51 to copy =SUM(F2:F49) to F51, leaving the formula in edit mode. Change SUM to COUNT.
Change the formula to this to see which of the 0's is being returned. It may be that X6 has a trailing space

=IF(ISBLANK(X6),"",IFNA(IF(X6="Yes",VLOOKUP(A6,'Storage Pivt'!A:B,2,FALSE),999),0))
 
Upvote 0
instead it is using the false part and displaying 0. I know this because if you replace the last zero with another number, it displays the new number. E.g. if the formula was =IF(ISBLANK(X6),"",IFNA(IF(X6="Yes",VLOOKUP(A6,'Storage Pivt'!A:B,2,FALSE),0),99)) it would return 99
Actually the 99 is the return for IFNA, not for the false part of the IF. Therefore the value in A6 was not found n the other sheet. Check that those values are either text or numbers, but not a mix of both.
 
Upvote 0

Forum statistics

Threads
1,214,911
Messages
6,122,199
Members
449,072
Latest member
DW Draft

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