A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » Worksheet Functions
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

LOOKUP formula when term may not be present



 
 
Thread Tools Display Modes
  #1  
Old May 4th, 2010, 10:04 PM posted to microsoft.public.excel.worksheet.functions
MichaelRobert
external usenet poster
 
Posts: 58
Default LOOKUP formula when term may not be present

How can I get LOOKUP to return a 'blank' value when a term is not found in
the Lookup arrray? At present, what is being returned is the next
alphabetical entry in the Lookup array.

Details. I have a worksheet 'Exhibitors' showing around 1000 Company Names
of people exhibiting at a trade show. I also have a worksheet 'Contacts' that
show the Company Names and contact names of some 50 people that we already
know in that trade. I want to populate 'Exhibitors' with a column of existing
contacts. I thought I'd use LOOKUP in Exhibitors to look up Company Name in
the Contacts array and return the contact name.

But obviously there are many Exhibitors for whom we have no contact yet, and
Lookup is returning the next alphabetical name. (If I look up Heart, and
there is no Heart, I'll get Heath as the next alphabetical name).

How can I have Excel return the name I am looking for, and show 'None' if we
have no contact?

Thanks.

Mike
  #2  
Old May 4th, 2010, 10:35 PM posted to microsoft.public.excel.worksheet.functions
Niek Otten
external usenet poster
 
Posts: 2,533
Default LOOKUP formula when term may not be present

Hi Mike,

Set the 4th argument of the Vlookup formula to FALSE. That will reurn #NA if
the item is not in the list.
To suppress that:
=IF(ISNA(YourFormula),"None",YourFormula)

--
Kind regards,

Niek Otten
Microsoft MVP - Excel

"MichaelRobert" wrote in message
...
How can I get LOOKUP to return a 'blank' value when a term is not found in
the Lookup arrray? At present, what is being returned is the next
alphabetical entry in the Lookup array.

Details. I have a worksheet 'Exhibitors' showing around 1000 Company Names
of people exhibiting at a trade show. I also have a worksheet 'Contacts'
that
show the Company Names and contact names of some 50 people that we already
know in that trade. I want to populate 'Exhibitors' with a column of
existing
contacts. I thought I'd use LOOKUP in Exhibitors to look up Company Name
in
the Contacts array and return the contact name.

But obviously there are many Exhibitors for whom we have no contact yet,
and
Lookup is returning the next alphabetical name. (If I look up Heart, and
there is no Heart, I'll get Heath as the next alphabetical name).

How can I have Excel return the name I am looking for, and show 'None' if
we
have no contact?

Thanks.

Mike


 




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

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 08:43 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.