Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Bob Bob is offline
external usenet poster
 
Posts: 972
Default FirstName, LastName and vice versa

In columns X and Y of Sheet X, I have a list of names and numbers:

James, Lebron 82
O'Neal, Shaquille 80
Wade, Dwyane 79
Duncan, Tim 72

In column B of Sheet B the same names are listed in a different order with
firstname first:

Shaquille O'Neal
LeBron James
Tim Duncan
Dwyane Wade

In column C of Sheet B, I want to enter a formula that references the names
in Sheet X and returns the corresponding number for each name (ex: O'Neal =
80; Wade = 79, etc.)

Can anyone help?

Thanks,
Bob


What is the formula to do that?

thanks,
Bob
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,688
Default FirstName, LastName and vice versa

As long as the names are 2 words only (in both sheets):

=VLOOKUP(MID(B2&", "&B2,FIND(" ",B2)+1,LEN(B2)+1),X!X$2:Y$5,2,0)

Biff

"bob" wrote in message
...
In columns X and Y of Sheet X, I have a list of names and numbers:

James, Lebron 82
O'Neal, Shaquille 80
Wade, Dwyane 79
Duncan, Tim 72

In column B of Sheet B the same names are listed in a different order with
firstname first:

Shaquille O'Neal
LeBron James
Tim Duncan
Dwyane Wade

In column C of Sheet B, I want to enter a formula that references the
names
in Sheet X and returns the corresponding number for each name (ex: O'Neal
=
80; Wade = 79, etc.)

Can anyone help?

Thanks,
Bob


What is the formula to do that?

thanks,
Bob



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Bob Bob is offline
external usenet poster
 
Posts: 972
Default FirstName, LastName and vice versa

The problem is that sometimes a name can have three words, such as: Van Horn,
Keith. Thanks anyway.

"Biff" wrote:

As long as the names are 2 words only (in both sheets):

=VLOOKUP(MID(B2&", "&B2,FIND(" ",B2)+1,LEN(B2)+1),X!X$2:Y$5,2,0)

Biff

"bob" wrote in message
...
In columns X and Y of Sheet X, I have a list of names and numbers:

James, Lebron 82
O'Neal, Shaquille 80
Wade, Dwyane 79
Duncan, Tim 72

In column B of Sheet B the same names are listed in a different order with
firstname first:

Shaquille O'Neal
LeBron James
Tim Duncan
Dwyane Wade

In column C of Sheet B, I want to enter a formula that references the
names
in Sheet X and returns the corresponding number for each name (ex: O'Neal
=
80; Wade = 79, etc.)

Can anyone help?

Thanks,
Bob


What is the formula to do that?

thanks,
Bob




  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,688
Default FirstName, LastName and vice versa

I just tested this again and it will in fact work on 3 word names.

Try it out.

Biff

"bob" wrote in message
...
The problem is that sometimes a name can have three words, such as: Van
Horn,
Keith. Thanks anyway.

"Biff" wrote:

As long as the names are 2 words only (in both sheets):

=VLOOKUP(MID(B2&", "&B2,FIND(" ",B2)+1,LEN(B2)+1),X!X$2:Y$5,2,0)

Biff

"bob" wrote in message
...
In columns X and Y of Sheet X, I have a list of names and numbers:

James, Lebron 82
O'Neal, Shaquille 80
Wade, Dwyane 79
Duncan, Tim 72

In column B of Sheet B the same names are listed in a different order
with
firstname first:

Shaquille O'Neal
LeBron James
Tim Duncan
Dwyane Wade

In column C of Sheet B, I want to enter a formula that references the
names
in Sheet X and returns the corresponding number for each name (ex:
O'Neal
=
80; Wade = 79, etc.)

Can anyone help?

Thanks,
Bob


What is the formula to do that?

thanks,
Bob






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



All times are GMT +1. The time now is 11:11 AM.

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"