Vlookup, IF and N/A#

luvmyfam

New Member
Joined
Dec 2, 2010
Messages
43
Hello everyone!!

I need a formula that will use the vlookup formula to find a value on one sheet, but if it returns #N/A or 0 I need it to look on another sheet. Then if it returns #N/A or 0 I need it to remain blank.

Can anyone help me??

Thanks :)
 

Excel Facts

Move date out one month or year
Use =EDATE(A2,1) for one month later. Use EDATE(A2,12) for one year later.
What type of data is the expected result of the vlookup?
Text or Number?
Or could it be either?
 
Upvote 0
This will eliminate the #N/A, but not the 0.
And honestly, it's not worth the extra calculations to hide 0's.
Maybe just go to Tools - Options - View and UNcheck "Zero values"

This is for an expected return of NUMBERS
=LOOKUP(9.99999999999999E+307,CHOOSE({1,2,3},0,VLOOKUP(A1,Sheet2!A:B,2,FALSE),VLOOKUP(A1,Sheet3!A:B,2,FALSE)))

If your expected result is TEXT
=LOOKUP(REPT("Z",255),CHOOSE({1,2,3},"",VLOOKUP(A1,Sheet2!A:B,2,FALSE),VLOOKUP(A1,Sheet3!A:B,2,FALSE)))


Actually, the TEXT one does eliminate 0 values as well as #N/A
 
Upvote 0
Have you got some sample data at all, if not try looking at the IFERROR excel function this will pick up the #N/A and you could use an if statment to fine the 0's
 
Upvote 0

Forum statistics

Threads
1,224,596
Messages
6,179,807
Members
452,944
Latest member
2558216095

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