#1   Report Post  
Posted to microsoft.public.excel.misc
tom tom is offline
external usenet poster
 
Posts: 570
Default Lookup Question

I see that when using the lookup function, if the lookup value entered does
not match anything in the lookup vector, the result vector returns as the
next lowest value. Is there any way to change that so that if there is no
match you get a #VALUE! result instead, or something other than the next
lowest value?

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,440
Default Lookup Question

Don't use LOOKUP(), use VLOOKUP() (or HLOOKUP()) instead. There you can
specify wheter or not the table is sorted, wheter an exact match should be
returned, etc

--
Kind regards,

Niek Otten
Microsoft MVP - Excel

"Tom" wrote in message
...
I see that when using the lookup function, if the lookup value entered does
not match anything in the lookup vector, the result vector returns as the
next lowest value. Is there any way to change that so that if there is no
match you get a #VALUE! result instead, or something other than the next
lowest value?


  #3   Report Post  
Posted to microsoft.public.excel.misc
tom tom is offline
external usenet poster
 
Posts: 570
Default Lookup Question

Thank you,

But I still can't get it to work. I have a SKU's #'s in Column D and Product
Descriptions in Column E. I want to be able to enter a SKU # in column A and
have it return the value from column E, unless the number is not found, then
it would return N/A. How would I set this up? I'm unclear what the
differences are between look_value, table_array, col_index_number and range
lookup.

Thanks for your help

"Niek Otten" wrote:

Don't use LOOKUP(), use VLOOKUP() (or HLOOKUP()) instead. There you can
specify wheter or not the table is sorted, wheter an exact match should be
returned, etc

--
Kind regards,

Niek Otten
Microsoft MVP - Excel

"Tom" wrote in message
...
I see that when using the lookup function, if the lookup value entered does
not match anything in the lookup vector, the result vector returns as the
next lowest value. Is there any way to change that so that if there is no
match you get a #VALUE! result instead, or something other than the next
lowest value?


  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,440
Default Lookup Question

Follow this excellent short tutorial:

http://www.contextures.com/xlFunctions02.html

--
Kind regards,

Niek Otten
Microsoft MVP - Excel


"Tom" wrote in message
...
Thank you,

But I still can't get it to work. I have a SKU's #'s in Column D and
Product
Descriptions in Column E. I want to be able to enter a SKU # in column A
and
have it return the value from column E, unless the number is not found,
then
it would return N/A. How would I set this up? I'm unclear what the
differences are between look_value, table_array, col_index_number and
range
lookup.

Thanks for your help

"Niek Otten" wrote:

Don't use LOOKUP(), use VLOOKUP() (or HLOOKUP()) instead. There you can
specify wheter or not the table is sorted, wheter an exact match should
be
returned, etc

--
Kind regards,

Niek Otten
Microsoft MVP - Excel

"Tom" wrote in message
...
I see that when using the lookup function, if the lookup value entered
does
not match anything in the lookup vector, the result vector returns as
the
next lowest value. Is there any way to change that so that if there is
no
match you get a #VALUE! result instead, or something other than the
next
lowest value?



  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 20
Default Lookup Question

Hi,

This is a feature of this function, which also implies that sort order is
important. You have a number of alternatives including but not limited to

VLOOKUP - you can set the last argument to FALSE which means exact match
MATCH with OFFSET - you can set the last argument of MATCH to 0 which mean
exact match
MATCH with INDEX

If this helps, please click the Yes button

Cheers,
Shane Devenshire
"Tom" wrote:

I see that when using the lookup function, if the lookup value entered does
not match anything in the lookup vector, the result vector returns as the
next lowest value. Is there any way to change that so that if there is no
match you get a #VALUE! result instead, or something other than the next
lowest value?



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Lookup question steve_m Excel Discussion (Misc queries) 5 November 6th 08 01:41 PM
LOOKUP Question WLMPilot Excel Discussion (Misc queries) 4 December 5th 07 12:56 AM
Lookup Question jam Excel Worksheet Functions 3 July 2nd 06 11:58 AM
Lookup question rk0909 Excel Discussion (Misc queries) 1 May 24th 06 07:26 PM
Lookup Question Mackay 1979 Excel Worksheet Functions 2 February 19th 05 01:11 PM


All times are GMT +1. The time now is 06:56 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"