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 » New Users
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Lookup



 
 
Thread Tools Display Modes
  #1  
Old August 13th, 2009, 12:52 PM posted to microsoft.public.excel.newusers
Tarig
external usenet poster
 
Posts: 29
Default Lookup

Hi,

I have a long code that contains shorter codes that I wish to look them up
with similar codes in another sheet, is there anyway that I can do this in
one step lookup rather than splitting up these long codes?

Thanks
--
tarig
  #2  
Old August 13th, 2009, 01:01 PM posted to microsoft.public.excel.newusers
eduardo
external usenet poster
 
Posts: 2,131
Default Lookup

Hi,
could you please post an example, thanks

"Tarig" wrote:

Hi,

I have a long code that contains shorter codes that I wish to look them up
with similar codes in another sheet, is there anyway that I can do this in
one step lookup rather than splitting up these long codes?

Thanks
--
tarig

  #3  
Old August 13th, 2009, 01:22 PM posted to microsoft.public.excel.newusers
Tarig
external usenet poster
 
Posts: 29
Default Lookup

Long Code in Sheet 1
Code Description
25-50-658-1234 Product (A) in warehouse (X)
25-51-785-4521 Product (B) in Warehouse (Y)

Short Codes in sheet 2
Code Description
50-658 Warehouse (X)
51-785 Warehouse (Y)

I want to lookup the short codes in sheet 2 to get their respective
descriptions in sheet 1.

--
tarig


"Eduardo" wrote:

Hi,
could you please post an example, thanks

"Tarig" wrote:

Hi,

I have a long code that contains shorter codes that I wish to look them up
with similar codes in another sheet, is there anyway that I can do this in
one step lookup rather than splitting up these long codes?

Thanks
--
tarig

  #4  
Old August 13th, 2009, 01:42 PM posted to microsoft.public.excel.newusers
eduardo
external usenet poster
 
Posts: 2,131
Default Lookup

Hi,
Let's say your partial code starts in A2 in B2 enter

=INDEX(sheet1!B:B,MATCH("*"&A1&"*",sheet1!A:A,0))

if you are not using excel 2007 enter

=INDEX(sheet1!B1:B3000,MATCH("*"&A1&"*",sheet1!A1: A3000,0))

"Tarig" wrote:

Long Code in Sheet 1
Code Description
25-50-658-1234 Product (A) in warehouse (X)
25-51-785-4521 Product (B) in Warehouse (Y)

Short Codes in sheet 2
Code Description
50-658 Warehouse (X)
51-785 Warehouse (Y)

I want to lookup the short codes in sheet 2 to get their respective
descriptions in sheet 1.

--
tarig


"Eduardo" wrote:

Hi,
could you please post an example, thanks

"Tarig" wrote:

Hi,

I have a long code that contains shorter codes that I wish to look them up
with similar codes in another sheet, is there anyway that I can do this in
one step lookup rather than splitting up these long codes?

Thanks
--
tarig

  #5  
Old August 13th, 2009, 06:50 PM posted to microsoft.public.excel.newusers
Tarig
external usenet poster
 
Posts: 29
Default Lookup

Hi,

It didn't work!

I need the lookup/match results in the sheet that contains the long codes so
that I can figure out how much stock I have in my different warehouses
--
tarig


"Eduardo" wrote:

Hi,
Let's say your partial code starts in A2 in B2 enter

=INDEX(sheet1!B:B,MATCH("*"&A1&"*",sheet1!A:A,0))

if you are not using excel 2007 enter

=INDEX(sheet1!B1:B3000,MATCH("*"&A1&"*",sheet1!A1: A3000,0))

"Tarig" wrote:

Long Code in Sheet 1
Code Description
25-50-658-1234 Product (A) in warehouse (X)
25-51-785-4521 Product (B) in Warehouse (Y)

Short Codes in sheet 2
Code Description
50-658 Warehouse (X)
51-785 Warehouse (Y)

I want to lookup the short codes in sheet 2 to get their respective
descriptions in sheet 1.

--
tarig


"Eduardo" wrote:

Hi,
could you please post an example, thanks

"Tarig" wrote:

Hi,

I have a long code that contains shorter codes that I wish to look them up
with similar codes in another sheet, is there anyway that I can do this in
one step lookup rather than splitting up these long codes?

Thanks
--
tarig

 




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 02:29 PM.


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