Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 10
Default Formatting a lookup

I have an invoice set up where it looks up the item number off of the upc,
however some of the upc's on the products don't match the ones in the
computer. Right now excell brings up the closest match to the upc. I would
like it if thier was a way that it would bring up nothing or an error if the
upc doesn't match exactally. The formula i'm using is:
=IF(A200, LOOKUP(C20,UPC!H:H,UPC!B:B),"")
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,836
Default Formatting a lookup

Try this:
VLOOKUP(lookup_value,table_array,col_index_num,ran ge_lookup)

Look at the last argument in the function; range_lookup
Range_lookup A logical value that specifies whether you want VLOOKUP to
find an exact match or an approximate match:

If TRUE or omitted, an exact or approximate match is returned. If an exact
match is not found, the next largest value that is less than lookup_value is
returned.
The values in the first column of table_array must be placed in ascending
sort order; otherwise, VLOOKUP may not give the correct value. You can put
the values in ascending order by choosing the Sort command from the Data menu
and selecting Ascending. For more information, see Default sort orders.

If FALSE, VLOOKUP will only find an exact match. In this case, the values in
the first column of table_array do not need to be sorted. If there are two or
more values in the first column of table_array that match the lookup_value,
the first value found is used. If an exact match is not found, the error
value #N/A is returned.

Does that work for you?
Ryan--
--
RyGuy


"Heather C" wrote:

I have an invoice set up where it looks up the item number off of the upc,
however some of the upc's on the products don't match the ones in the
computer. Right now excell brings up the closest match to the upc. I would
like it if thier was a way that it would bring up nothing or an error if the
upc doesn't match exactally. The formula i'm using is:
=IF(A200, LOOKUP(C20,UPC!H:H,UPC!B:B),"")

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 10
Default Formatting a lookup

I Still cannot get it to work

"ryguy7272" wrote:

Try this:
VLOOKUP(lookup_value,table_array,col_index_num,ran ge_lookup)

Look at the last argument in the function; range_lookup
Range_lookup A logical value that specifies whether you want VLOOKUP to
find an exact match or an approximate match:

If TRUE or omitted, an exact or approximate match is returned. If an exact
match is not found, the next largest value that is less than lookup_value is
returned.
The values in the first column of table_array must be placed in ascending
sort order; otherwise, VLOOKUP may not give the correct value. You can put
the values in ascending order by choosing the Sort command from the Data menu
and selecting Ascending. For more information, see Default sort orders.

If FALSE, VLOOKUP will only find an exact match. In this case, the values in
the first column of table_array do not need to be sorted. If there are two or
more values in the first column of table_array that match the lookup_value,
the first value found is used. If an exact match is not found, the error
value #N/A is returned.

Does that work for you?
Ryan--
--
RyGuy


"Heather C" wrote:

I have an invoice set up where it looks up the item number off of the upc,
however some of the upc's on the products don't match the ones in the
computer. Right now excell brings up the closest match to the upc. I would
like it if thier was a way that it would bring up nothing or an error if the
upc doesn't match exactally. The formula i'm using is:
=IF(A200, LOOKUP(C20,UPC!H:H,UPC!B:B),"")

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,836
Default Formatting a lookup

If you send it to me I will try to get it working and send it back to you.
om

Remove the xxx part (it's only to confuse spammers, not to confuse you).

Ryan---


--
RyGuy


"Heather C" wrote:

I Still cannot get it to work

"ryguy7272" wrote:

Try this:
VLOOKUP(lookup_value,table_array,col_index_num,ran ge_lookup)

Look at the last argument in the function; range_lookup
Range_lookup A logical value that specifies whether you want VLOOKUP to
find an exact match or an approximate match:

If TRUE or omitted, an exact or approximate match is returned. If an exact
match is not found, the next largest value that is less than lookup_value is
returned.
The values in the first column of table_array must be placed in ascending
sort order; otherwise, VLOOKUP may not give the correct value. You can put
the values in ascending order by choosing the Sort command from the Data menu
and selecting Ascending. For more information, see Default sort orders.

If FALSE, VLOOKUP will only find an exact match. In this case, the values in
the first column of table_array do not need to be sorted. If there are two or
more values in the first column of table_array that match the lookup_value,
the first value found is used. If an exact match is not found, the error
value #N/A is returned.

Does that work for you?
Ryan--
--
RyGuy


"Heather C" wrote:

I have an invoice set up where it looks up the item number off of the upc,
however some of the upc's on the products don't match the ones in the
computer. Right now excell brings up the closest match to the upc. I would
like it if thier was a way that it would bring up nothing or an error if the
upc doesn't match exactally. The formula i'm using is:
=IF(A200, LOOKUP(C20,UPC!H:H,UPC!B:B),"")

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 35,218
Default Formatting a lookup

So you match C20 against UPC!H:H and return the value in column B?

=if(a200,index(upc!b:b,match(c20,upc!h:h,0),"")



Heather C wrote:

I have an invoice set up where it looks up the item number off of the upc,
however some of the upc's on the products don't match the ones in the
computer. Right now excell brings up the closest match to the upc. I would
like it if thier was a way that it would bring up nothing or an error if the
upc doesn't match exactally. The formula i'm using is:
=IF(A200, LOOKUP(C20,UPC!H:H,UPC!B:B),"")


--

Dave Peterson


  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,388
Default Formatting a lookup

Hi Heather,
Try this small modification to your formula:
=IF(A200, LOOKUP(C20,UPC!H:H,UPC!B:B,0),"")
Regards - Dave.

"Heather C" wrote:

I have an invoice set up where it looks up the item number off of the upc,
however some of the upc's on the products don't match the ones in the
computer. Right now excell brings up the closest match to the upc. I would
like it if thier was a way that it would bring up nothing or an error if the
upc doesn't match exactally. The formula i'm using is:
=IF(A200, LOOKUP(C20,UPC!H:H,UPC!B:B),"")

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
formatting a lookup Heather C[_2_] Excel Discussion (Misc queries) 4 April 25th 08 05:24 PM
Conditional formatting using lookup [email protected] Excel Discussion (Misc queries) 1 July 28th 06 01:41 PM
lookup function formatting Ben Excel Discussion (Misc queries) 1 July 6th 06 08:42 PM
Keep formatting with lookup table Julie Excel Discussion (Misc queries) 6 February 24th 06 06:16 PM
lookup certain formatting Waynef Excel Discussion (Misc queries) 1 October 8th 05 01:26 PM


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

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

About Us

"It's about Microsoft Excel"