Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
brantty
 
Posts: n/a
Default How can I find items that have a certain prefix and define?

I have one file (file A) that has many items and these items all begin with
different prefixes(ex. aaa123456). I have another file (file B)that can
identify what the prefix means. This file B has the 3-digit prefix in
column A, the full name of the prefix in column B. How can I add a new
column in File A that has the full name of the prefix by creating a formula
to look at File A, and if it contains a prefix that is on File B, it will add
the corresponding name to that row?
  #2   Report Post  
Roger Govier
 
Posts: n/a
Default

Not sure whether your File A and File B are separate sheets in the same
workbook, or separate XLS Workbooks.
Assuming they are on Sheet1 and Sheet2 of the same workbook, then in your
new column in File A (Sheet1) enter
=VLOOKUP(LEFT(A1,3),Sheet2!$A$1:$A$100,2,0)
Change ranges to suit.

If they are different workbooks, using Sheet1 in each book then you would
need
=VLOOKUP(LEFT(A1,3),[File B.xls]Sheet1!$A$1:$A$100,2,0)
Again substitute ranges to suit and your correct filename for File B

--
Regards

Roger Govier


"brantty" wrote in message
...
I have one file (file A) that has many items and these items all begin with
different prefixes(ex. aaa123456). I have another file (file B)that can
identify what the prefix means. This file B has the 3-digit prefix in
column A, the full name of the prefix in column B. How can I add a new
column in File A that has the full name of the prefix by creating a
formula
to look at File A, and if it contains a prefix that is on File B, it will
add
the corresponding name to that row?



  #3   Report Post  
brantty
 
Posts: n/a
Default

Roger, You are correct that I am using Sheet 1 and Sheet 2. Can you help
explain this a little more for me? In sheet 1 column A, is a number that
begins with 3 letters. In Sheet 2, Coulmn A is a list of the three letters.
In Sheet 2 column C is the full name that these three letters mean. How can
I get the full name of the 3 letters to show up next to item in Sheet 1 that
has the 3 letter prefix.

EX
Sheet 1, A2: AAC123456
Sheet 2, A2: AAC
Sheet 2, C2: Advanced Aero Client

Thanks, Ty

"Roger Govier" wrote:

Not sure whether your File A and File B are separate sheets in the same
workbook, or separate XLS Workbooks.
Assuming they are on Sheet1 and Sheet2 of the same workbook, then in your
new column in File A (Sheet1) enter
=VLOOKUP(LEFT(A1,3),Sheet2!$A$1:$A$100,2,0)
Change ranges to suit.

If they are different workbooks, using Sheet1 in each book then you would
need
=VLOOKUP(LEFT(A1,3),[File B.xls]Sheet1!$A$1:$A$100,2,0)
Again substitute ranges to suit and your correct filename for File B

--
Regards

Roger Govier


"brantty" wrote in message
...
I have one file (file A) that has many items and these items all begin with
different prefixes(ex. aaa123456). I have another file (file B)that can
identify what the prefix means. This file B has the 3-digit prefix in
column A, the full name of the prefix in column B. How can I add a new
column in File A that has the full name of the prefix by creating a
formula
to look at File A, and if it contains a prefix that is on File B, it will
add
the corresponding name to that row?




  #4   Report Post  
Roger Govier
 
Posts: n/a
Default


Change the formula to
=VLOOKUP(LEFT(A2,3),Sheet2!$A$2:$A$100,3,0)

Note the 3 in this formula as opposed to the 2 as posted earlier. I had
thought your fullname was in column B of Shhet2 not in column C.


--
Regards

Roger Govier


"brantty" wrote in message
...
Roger, You are correct that I am using Sheet 1 and Sheet 2. Can you help
explain this a little more for me? In sheet 1 column A, is a number that
begins with 3 letters. In Sheet 2, Coulmn A is a list of the three
letters.
In Sheet 2 column C is the full name that these three letters mean. How
can
I get the full name of the 3 letters to show up next to item in Sheet 1
that
has the 3 letter prefix.

EX
Sheet 1, A2: AAC123456
Sheet 2, A2: AAC
Sheet 2, C2: Advanced Aero Client

Thanks, Ty

"Roger Govier" wrote:

Not sure whether your File A and File B are separate sheets in the same
workbook, or separate XLS Workbooks.
Assuming they are on Sheet1 and Sheet2 of the same workbook, then in your
new column in File A (Sheet1) enter
=VLOOKUP(LEFT(A1,3),Sheet2!$A$1:$A$100,2,0)
Change ranges to suit.

If they are different workbooks, using Sheet1 in each book then you would
need
=VLOOKUP(LEFT(A1,3),[File B.xls]Sheet1!$A$1:$A$100,2,0)
Again substitute ranges to suit and your correct filename for File B

--
Regards

Roger Govier


"brantty" wrote in message
...
I have one file (file A) that has many items and these items all begin
with
different prefixes(ex. aaa123456). I have another file (file B)that
can
identify what the prefix means. This file B has the 3-digit prefix in
column A, the full name of the prefix in column B. How can I add a new
column in File A that has the full name of the prefix by creating a
formula
to look at File A, and if it contains a prefix that is on File B, it
will
add
the corresponding name to that row?






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
How do I find the cell address of the 2nd largest of a set? Mr. Snrub Excel Discussion (Misc queries) 4 May 30th 05 12:53 PM
Excel has a "Find Next" command but no "Find Previous" command. Michael Fitzpatrick Excel Discussion (Misc queries) 2 January 10th 05 11:45 PM
Find Count of Items with certain criteria Tucson Guy Excel Discussion (Misc queries) 3 January 1st 05 02:11 PM
where can I find a sample home inventory that list all items i ma. lanier Excel Discussion (Misc queries) 2 December 28th 04 09:54 AM
How do I find out what items are in one list but not in another l. Michelle Craig Excel Discussion (Misc queries) 2 December 22nd 04 08:32 PM


All times are GMT +1. The time now is 07:00 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"