#1   Report Post  
Posted to microsoft.public.excel.misc
Cam Cam is offline
external usenet poster
 
Posts: 165
Default VLOOKUP help

Hi,

How do I setup VLOOKUP so that it looks up the 1st three letter of the cell
in a column, then put other information in other column on the corresponding
row.
Data sample:
Worksheet 1 Worksheet 2
A A B C (column)

1 1AB-005 1AB 114 A
2 2ER-515 4BR 115 B
3 4BR-006 2ER 116 C

VLOOKUP(A1, worksheet2!A1:C3, 2, FALSE)

Lookup worksheet 1 2ER####, if the frist 3 letter match column A in
worksheet 2, then return the corresponding row that matches in column B = 116.

Thanks for any tips
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 964
Default VLOOKUP help

Try this:

=VLOOKUP(LEFT(A1,3),worksheet2!A1:C3,2,FALSE)

HTH,
Elkar


"Cam" wrote:

Hi,

How do I setup VLOOKUP so that it looks up the 1st three letter of the cell
in a column, then put other information in other column on the corresponding
row.
Data sample:
Worksheet 1 Worksheet 2
A A B C (column)

1 1AB-005 1AB 114 A
2 2ER-515 4BR 115 B
3 4BR-006 2ER 116 C

VLOOKUP(A1, worksheet2!A1:C3, 2, FALSE)

Lookup worksheet 1 2ER####, if the frist 3 letter match column A in
worksheet 2, then return the corresponding row that matches in column B = 116.

Thanks for any tips

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 93
Default VLOOKUP help

one easy way is to use:
vlookup(left(A1,3)
this would look up the left three characters
this assumes that the left three characters would be unique

"Cam" wrote:

Hi,

How do I setup VLOOKUP so that it looks up the 1st three letter of the cell
in a column, then put other information in other column on the corresponding
row.
Data sample:
Worksheet 1 Worksheet 2
A A B C (column)

1 1AB-005 1AB 114 A
2 2ER-515 4BR 115 B
3 4BR-006 2ER 116 C

VLOOKUP(A1, worksheet2!A1:C3, 2, FALSE)

Lookup worksheet 1 2ER####, if the frist 3 letter match column A in
worksheet 2, then return the corresponding row that matches in column B = 116.

Thanks for any tips

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
Combine VLOOKUP and IF function so #NA isn't returned as a value from VLOOKUP buffgirl71 Excel Discussion (Misc queries) 12 November 14th 06 11:36 PM
Vlookup -=VLOOKUP(F9,LookUp1!$A$2:$B$1504,2,FALSE) MikeR-Oz New Users to Excel 1 March 22nd 06 09:01 AM
IF(a1="x",(vlookup 18K rows,2,false),(vlookup 18K,3,false)) RAM? bchilt Excel Worksheet Functions 6 January 20th 06 09:21 AM
IF(AND(val1=VLOOKUP( );val2>=VLOOKUP( );val2<=VLOOKUP( );VLOOKUP( Oso Excel Worksheet Functions 2 January 26th 05 06:56 AM
Vlookup info being used without vlookup table attached? Excel Worksheet Functions 0 January 25th 05 10:43 AM


All times are GMT +1. The time now is 02:20 PM.

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"