Using the If and Vlookup together

chowman007

New Member
Joined
Feb 5, 2011
Messages
27
Created a worksheet to report broken equipment that need repair. My problem is that "n/a" appears on the sheet when no data is input. I created this formula and works but when data is input it displays "n/a". What am I doing wrong?
=if(e473>" ",VLOOKUP(E473,VLOOKUP!$C$3:$M$104,2,0),"")

:confused:
 

Excel Facts

Wildcard in VLOOKUP
Use =VLOOKUP("Apple*" to find apple, Apple, or applesauce
Welcome to the forums!

The easiest way to handle #N/A! errors with a VLOOKUP is to use an error handler:

Excel 2003 or older:
=IF(ISERROR(VLOOKUP(E473,VLOOKUP!$C$3:$M$104,2,0)),"",VLOOKUP(E473,VLOOKUP!$C$3:$M$104,2,0))

Excel 2007 or newer:

=IFERROR(VLOOKUP(E473,VLOOKUP!$C$3:$M$104,2,0),"")

Also, I would reccomend changing the name of the sheet "VLOOKUP". Using variable names or sheet names that are identical to a reserved variable or function can cause some errors that are hard to trace.
 
Upvote 0
Welcome to the board. I think this is what you're after, try:
Code:
=IF(ISERROR(MATCH(E473,VLOOKUP!$C$3:$C$104,0)),"",VLOOKUP(E473,VLOOKUP!$C$3:$M$104,2,0))
 
Upvote 0

Forum statistics

Threads
1,224,589
Messages
6,179,744
Members
452,940
Latest member
rootytrip

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