#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 57
Default Text lookup

I have multiple sheets in one XLS file. Some 4-character codes repeat on
different sheets. I am trying to figure out how I can reference one sheet's
4-character code to suse the same descriptor in another sheet so there is
consistency. A sample follows:

A B
Descriptor 1 AAAA
Descriptor 2 AAAB
Descriptor 3 AAAC
Descriptor 4 BBBB
Descriptor 5 BBBA

I would like to be able to put in AAAC (col B) in another sheet and have
Descriptor 3 returned to me in column A.

I want to believe this is possible, I just haven't been able to figure it out.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,344
Default Text lookup

Hi Scott,

You can use VLOOKUP if the code you are looking up is in the first column of
the lookup range, but as shown below your's is not. So you can use something
like MATCH and OFFSET or MATCH and INDEX or even MATCH and INDIRECT.

Suppose the table you showed below starts in cell A1

A B
Descriptor 1 AAAA
Descriptor 2 AAAB
Descriptor 3 AAAC
Descriptor 4 BBBB
Descriptor 5 BBBA


is in Sheet1 and on Sheet2 in cell A2 you enter AAAC and you want Descriptor
3 to appear in cell B2, then in B2 enter the formula

=INDEX(Sheet1!$A$1:$A$5,MATCH(A2,Sheet1!$B$1:$B$5, ))
--
Thanks,
Shane Devenshire


"Scott A" wrote:

I have multiple sheets in one XLS file. Some 4-character codes repeat on
different sheets. I am trying to figure out how I can reference one sheet's
4-character code to suse the same descriptor in another sheet so there is
consistency. A sample follows:

A B
Descriptor 1 AAAA
Descriptor 2 AAAB
Descriptor 3 AAAC
Descriptor 4 BBBB
Descriptor 5 BBBA

I would like to be able to put in AAAC (col B) in another sheet and have
Descriptor 3 returned to me in column A.

I want to believe this is possible, I just haven't been able to figure it out.

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 57
Default Text lookup

Shane,

VLOOKUP cannot work for me. I did fail to mention it is not sorted (I
cannot have it sorted due to the data). The INDEX, MATCH solution works
though. I tried working with one or the other but not both.

Thank you for the solution. It is exactly what I need.

Scott

"ShaneDevenshire" wrote:

Hi Scott,

You can use VLOOKUP if the code you are looking up is in the first column of
the lookup range, but as shown below your's is not. So you can use something
like MATCH and OFFSET or MATCH and INDEX or even MATCH and INDIRECT.

Suppose the table you showed below starts in cell A1

A B
Descriptor 1 AAAA
Descriptor 2 AAAB
Descriptor 3 AAAC
Descriptor 4 BBBB
Descriptor 5 BBBA


is in Sheet1 and on Sheet2 in cell A2 you enter AAAC and you want Descriptor
3 to appear in cell B2, then in B2 enter the formula

=INDEX(Sheet1!$A$1:$A$5,MATCH(A2,Sheet1!$B$1:$B$5, ))
--
Thanks,
Shane Devenshire


"Scott A" wrote:

I have multiple sheets in one XLS file. Some 4-character codes repeat on
different sheets. I am trying to figure out how I can reference one sheet's
4-character code to suse the same descriptor in another sheet so there is
consistency. A sample follows:

A B
Descriptor 1 AAAA
Descriptor 2 AAAB
Descriptor 3 AAAC
Descriptor 4 BBBB
Descriptor 5 BBBA

I would like to be able to put in AAAC (col B) in another sheet and have
Descriptor 3 returned to me in column A.

I want to believe this is possible, I just haven't been able to figure it out.

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
2 criteria lookup of text. Return text form column 3. SUMPRODUCT t zzxxcc Excel Worksheet Functions 2 August 26th 08 11:04 PM
Search, find or lookup defined text in text string zzxxcc Excel Worksheet Functions 9 September 6th 07 09:37 PM
LOOKUP text return text [email protected] Excel Worksheet Functions 5 May 22nd 07 06:38 PM
lookup a text cell and return text Cristi R Excel Discussion (Misc queries) 4 August 2nd 06 02:41 PM
How do I LOOKUP text values Amber C-W Excel Worksheet Functions 4 July 20th 05 05:27 PM


All times are GMT +1. The time now is 07:23 PM.

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"