Possible to add 'ISNA' to =IF(ISERROR(VLOOKUP string?

aumdean

New Member
Joined
Sep 3, 2010
Messages
47
Hi guys, I know this must be possible, I'm just not ordering something correctly...

Formula in question:

{=IF(ISERROR(VLOOKUP(A7,Sheet1!$A$5:$Q$105,15,FALSE)),"",VLOOKUP(A7,Sheet1!$A$5:$Q$105,15,FALSE))}

The above formula is returning values on Sheet2 in column I7:I67. However, the VLOOKUP may only return 15 rows from Sheet 1, therefore leaving an error in the remaining 45 rows. To hide the errors, I am using the ISERROR function. This formula has been working great, until recently. Some of the cells on Sheet1 are now blank, which was not the case previously. Therefore, the above formula is returning zeros now in place of the blank cells. If the cell on Sheet1 is blank, I want it to display as a blank in column I7:I67 on Sheet2, rather than a '0'.

So, in order to do this I have attempted to add the 'ISNA' function to the string above, unsuccessfully, to hide the '0' values. Or, is there an alternative method of hiding both zeros and errors from VLOOKUP? Can any of you help? :confused:

I can't use VBscript for this, I just need some tweaking to the above formula.
 

Excel Facts

How to calculate loan payments in Excel?
Use the PMT function: =PMT(5%/12,60,-25000) is for a $25,000 loan, 5% annual interest, 60 month loan.
Hi

Could the following not work?

=IFERROR(VLOOKUP(A7,Sheet1!$A$5:$Q$105,15,FALSE), "")
 
Upvote 0
Hi

Could the following not work?

=IFERROR(VLOOKUP(A7,Sheet1!$A$5:$Q$105,15,FALSE), "")


This formula does, in fact, do the exact same thing as the original formula posted. Therefore, '0' is being returned for blank cells from Sheet1.
 
Last edited:
Upvote 0
And with the formula below?

=IF(IFERROR(VLOOKUP(A7,Sheet1!$A$5:$Q$105,15,FALSE), "")=0, IFERROR(VLOOKUP(A7,Sheet1!$A$5:$Q$105,15,FALSE), ""),"")
 
Upvote 0
And with the formula below?

=IF(IFERROR(VLOOKUP(A7,Sheet1!$A$5:$Q$105,15,FALSE), "")=0, IFERROR(VLOOKUP(A7,Sheet1!$A$5:$Q$105,15,FALSE), ""),"")


Oddly, using this formula, nothing is displayed whatsoever, the cells are completely blank?
 
Upvote 0
Sorry - don't know what I was trying with that! I hope this 1 is better!

=IFERROR(IF(OR(VLOOKUP(C10,$A$10:$B$12,2,0)=0,ISERROR(VLOOKUP(C10,$A$10:$B$12,2,0)=1)),"",(VLOOKUP(C10,$A$10:$B$12,2,0))),"")
 
Upvote 0
The OR function is actually redundant because of the IFERROR at the beginning... This one is slighly more efficient.

=IFERROR(IF(VLOOKUP(C10,$A$10:$B$12,2,0)=0,"",(VLOOKUP(C10,$A$10:$B$12,2,0))),"")
 
Upvote 0
The OR function is actually redundant because of the IFERROR at the beginning... This one is slighly more efficient.

=IFERROR(IF(VLOOKUP(C10,$A$10:$B$12,2,0)=0,"",(VLOOKUP(C10,$A$10:$B$12,2,0))),"")


Thank you very much, the above formula does exactly what I needed! :biggrin:
 
Upvote 0
Thanks Aladin,

Did not know about that T function! Handy little trick to make the formula far more easy to write.
 
Upvote 0

Forum statistics

Threads
1,224,617
Messages
6,179,914
Members
452,949
Latest member
beartooth91

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