vlookup first 4 characters only in a column

G

Guest

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
 
R

RagDyeR

Try this:

=VLOOKUP(LEFT(A1,4),EmailList!A:C,3,FALSE)

--

HTH,

RD
==============================================
Please keep all correspondence within the Group, so all may benefit!
==============================================



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
 
D

Domenic

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!
 
R

RagDyeR

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!
==============================================


Try this:

=VLOOKUP(LEFT(A1,4),EmailList!A:C,3,FALSE)

--

HTH,

RD
==============================================
Please keep all correspondence within the Group, so all may benefit!
==============================================



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
 
G

Guest

Hi Domenic

The formula below returned the #N/A value but a manual calculation should
have returned the value 2?

Rgds
Gus
 
M

Myrna Larson

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top