VLOOKUP and LEFT to match text?

L

LTUser54

Hey, kids! I'm back, with yet another attempt at frustration usin
Excel!
Oh, boy, what fun!!!!

In case you missed the last episode, I am trying to match names in
columns of text (that don't really match except for last name). Yo
would think this is a realtively easy task, but I've been trying thi
off and on (mostly on) since 11 AM...

Here's my newest failure:

=VLOOKUP(LEFT(H4,4),LEFT(B$4:B$32,4),1,FALSE)

Result is not the first 4 characters of the last name as I hoped
instead I get a #VALUE message. Note: H as LN only, b4:b32 has a tex
formatted LN,FN Middle Initial.

Can anyone tell me what I'm doing wrong? I can't figure this out a
all.

pleease, please please help...

Mark
Boston, M
 
S

SteveG

Mark,

This array formula worked for me.

=INDEX(B1:B4,MATCH(H1,LEFT(B1:B4,FIND(",",B1:B4,1)-1),0))

Commit with Ctrl - Shift - Enter simultaneously, not just enter. If
you do it right the formula will have {} around it in the formula bar.
This formula assumes that the LN,FN are separated by a comma. This
matches the entire last name rather than just the first 4 characters.



HTH

Steve
 
M

mark.diaz

Biff -

YOU ARE AN EXCEL GOD!!!

I am not worthy!!!!!!!!!!!

I added in $ to the range it it works beautifully! Well done, dude, I
humbly bow to your expertise!

Mark
 
M

mark.diaz

SteveG -

What a great array formula!

Thank you so much for posting this.

I really appreciate it! Very cool, indeed!

Mark
 
B

Biff

I am not worthy!!!!!!!!!!!

LOL

Well, that makes 2 of us!

You're welcome and thanks for the feedback.

Biff
 

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