![]() |
vlookup first 4 characters only in a column
Hi
Any help with the following would be greatly appreciated - I'm trying to do a vlookup whereby it only searches/has to match the first 4 characters in the utmost left column of the table and return the associated cell. My non working formula is: =VLOOKUP(A:A(left4),EmailList!A:C,3,FALSE) whereby the A:A(left4) is meant to be the first 4 characters from the left of the column. Thks Gus |
Try this:
=VLOOKUP(LEFT(A1,4),EmailList!A:C,3,FALSE) -- HTH, RD ============================================== Please keep all correspondence within the Group, so all may benefit! ============================================== "Gus" wrote in message ... Hi Any help with the following would be greatly appreciated - I'm trying to do a vlookup whereby it only searches/has to match the first 4 characters in the utmost left column of the table and return the associated cell. My non working formula is: =VLOOKUP(A:A(left4),EmailList!A:C,3,FALSE) whereby the A:A(left4) is meant to be the first 4 characters from the left of the column. Thks Gus |
Try the following...
=VLOOKUP(A1,LEFT(EmailList!A1:C100,4),3,0) ....confirmed with CONTROL+SHIFT+ENTER, not just ENTER, and where A1 contains your lookup value. Hope this helps! In article , Gus wrote: Hi Any help with the following would be greatly appreciated - I'm trying to do a vlookup whereby it only searches/has to match the first 4 characters in the utmost left column of the table and return the associated cell. My non working formula is: =VLOOKUP(A:A(left4),EmailList!A:C,3,FALSE) whereby the A:A(left4) is meant to be the first 4 characters from the left of the column. Thks Gus |
If Column A contains numbers, try:
=VLOOKUP(--LEFT(A1,4),EmailList!A:C,3,FALSE) -- HTH, RD ============================================== Please keep all correspondence within the Group, so all may benefit! ============================================== "RagDyeR" wrote in message ... Try this: =VLOOKUP(LEFT(A1,4),EmailList!A:C,3,FALSE) -- HTH, RD ============================================== Please keep all correspondence within the Group, so all may benefit! ============================================== "Gus" wrote in message ... Hi Any help with the following would be greatly appreciated - I'm trying to do a vlookup whereby it only searches/has to match the first 4 characters in the utmost left column of the table and return the associated cell. My non working formula is: =VLOOKUP(A:A(left4),EmailList!A:C,3,FALSE) whereby the A:A(left4) is meant to be the first 4 characters from the left of the column. Thks Gus |
Hi Domenic
The formula below returned the #N/A value but a manual calculation should have returned the value 2? Rgds Gus "Domenic" wrote: Try the following... =VLOOKUP(A1,LEFT(EmailList!A1:C100,4),3,0) ....confirmed with CONTROL+SHIFT+ENTER, not just ENTER, and where A1 contains your lookup value. Hope this helps! In article , Gus wrote: Hi Any help with the following would be greatly appreciated - I'm trying to do a vlookup whereby it only searches/has to match the first 4 characters in the utmost left column of the table and return the associated cell. My non working formula is: =VLOOKUP(A:A(left4),EmailList!A:C,3,FALSE) whereby the A:A(left4) is meant to be the first 4 characters from the left of the column. Thks Gus |
Try it this way:
=VLOOKUP(LEFT(A1,4)&"*",EmailList!A1:C100,3,0) This is a "regular" formula, entered with just ENTER, not an array formula. On Sat, 19 Feb 2005 09:11:03 -0800, Gus wrote: Hi Domenic The formula below returned the #N/A value but a manual calculation should have returned the value 2? Rgds Gus "Domenic" wrote: Try the following... =VLOOKUP(A1,LEFT(EmailList!A1:C100,4),3,0) ....confirmed with CONTROL+SHIFT+ENTER, not just ENTER, and where A1 contains your lookup value. Hope this helps! In article , Gus wrote: Hi Any help with the following would be greatly appreciated - I'm trying to do a vlookup whereby it only searches/has to match the first 4 characters in the utmost left column of the table and return the associated cell. My non working formula is: =VLOOKUP(A:A(left4),EmailList!A:C,3,FALSE) whereby the A:A(left4) is meant to be the first 4 characters from the left of the column. Thks Gus |
Thank you to all who replied and helped on this matter!
"Myrna Larson" wrote: Try it this way: =VLOOKUP(LEFT(A1,4)&"*",EmailList!A1:C100,3,0) This is a "regular" formula, entered with just ENTER, not an array formula. On Sat, 19 Feb 2005 09:11:03 -0800, Gus wrote: Hi Domenic The formula below returned the #N/A value but a manual calculation should have returned the value 2? Rgds Gus "Domenic" wrote: Try the following... =VLOOKUP(A1,LEFT(EmailList!A1:C100,4),3,0) ....confirmed with CONTROL+SHIFT+ENTER, not just ENTER, and where A1 contains your lookup value. Hope this helps! In article , Gus wrote: Hi Any help with the following would be greatly appreciated - I'm trying to do a vlookup whereby it only searches/has to match the first 4 characters in the utmost left column of the table and return the associated cell. My non working formula is: =VLOOKUP(A:A(left4),EmailList!A:C,3,FALSE) whereby the A:A(left4) is meant to be the first 4 characters from the left of the column. Thks Gus |
All times are GMT +1. The time now is 04:25 PM. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com