MrExcel Message Board


Go Back   MrExcel Message Board > Question Forums > Excel Questions

Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only.

Reply
 
Thread Tools Display Modes
Old Mar 30th, 2004, 06:11 PM   #1
spectraflame
 
Join Date: Dec 2002
Location: Missouri
Posts: 594
Default If vlookup is false, leave blank and not #N/A

I have the following formula that is looking up a date in a list of dates. If the date is found, the contents of the adjacent cells is returned.

=VLOOKUP($G$4,SETUP!J3:K32,2,0)

What can I modifed so that if the result is not found, the cell is left blank and not show #N/A?

Thanks,
Matthew
spectraflame is offline   Reply With Quote
Old Mar 30th, 2004, 06:12 PM   #2
just_jon
MrExcel MVP
 
just_jon's Avatar
 
Join Date: Sep 2002
Location: Alabama/State of Disarray
Posts: 10,473
Default Re: If vlookup is false, leave blank and not #N/A

For a thoughtful commentary on how to avoid the #N/A return, see Aladin's posting here.
__________________
just_jon
Book of the Month: I'm Not Really an MVP, I Just Play One on TV [j. jon, 2004]
just_jon is offline   Reply With Quote
Old Mar 30th, 2004, 06:17 PM   #3
spectraflame
 
Join Date: Dec 2002
Location: Missouri
Posts: 594
Default Re: If vlookup is false, leave blank and not #N/A

Thanks Jon and Aladin.

That is perfect.

Matthew
spectraflame is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On

Forum Jump


All times are GMT +1. The time now is 09:16 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
All contents Copyright 1998-2009 by MrExcel Consulting.