Replace #N/A with a blank

nicoleHSI

New Member
Joined
Jun 28, 2006
Messages
19
I've created a form using VLOOKUP that fills in several cells based on a lsit selection. However, it would be great if the cells appeared blank until the information has been filled in.
Is this possible? Showing #N/A in every cell is a little distracting.

Let me know if you can help. Thanks!
 

Excel Facts

Who is Mr Spreadsheet?
Author John Walkenbach was Mr Spreadsheet until his retirement in June 2019.

Domenic

MrExcel MVP
Joined
Mar 10, 2004
Messages
19,705
Try...

=IF(ISNA(VLOOKUP(LookupValue,TableArray,ColIndex,RangeType)),"",VLOOKUP(LookupValue,TableArray,ColIndex,RangeType))

Hope this helps!
 

barry houdini

MrExcel MVP
Joined
Mar 23, 2005
Messages
20,825
If you always expect your lookup value to be within the lookup range but you simply want to suppress #N/A when lookup value is blank

=IF(LookupValue="","",VLOOKUP(LookupValue,TableArray,ColIndex,RangeType))
 

Forum statistics

Threads
1,137,204
Messages
5,680,166
Members
419,887
Latest member
Vasokir

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
Top