+ Reply to Thread
Results 1 to 4 of 4

How do I match names if the first and last name of a table are in two columns?

  1. #1
    Registered User
    Join Date
    02-28-2015
    Location
    California, USA
    MS-Off Ver
    2010
    Posts
    52

    How do I match names if the first and last name of a table are in two columns?

    Hello. I am taking data from two separate sources. One is from Fan Graphs which displays batter names (first and last) in one column and important stats of that batter in the next few columns. Another is taken from Fan Duel which has the first name in 1 column, the last name in the second column, and their salary in the 3rd column.

    What I'd like to do is to merge these two tables together. The problem I'm having is when I do a filter to alphabetize them, they don't match up because there are more names on the Fan Duel Table and the last names in the Fan Graphs don't line up (for example, there are 5 Alex's, but when you compare the last names side by side, some of them don't line up because of shortcuts in nicknames, like instead of Alexander, it's Alex). You will see that in the example in the attachments. Now there are hundreds of batters here so I tried copying and pasting them and trying to line them up one by one but that took hours of work. This is something that I do on the daily: exporting these graphs so I can compare salaries and stats so copying and pasting is just too time consuming and doesn't give me time to analyze these charts.

    I have heard that there is a way to set up a sheet where I can use a function that would allow me to match up the names even if they aren't exactly the same. The problem is I don't know how to do that, and I'm guessing it wouldn't be your standard function given that you need to match 1 column with two columns. I thought this would be the best place to ask to do that sort of thing. If I can program excel to match up these names together, it would definitely be easier for me to do a vlookup/index function to put the salaries and stats side by side, along with the names of the batters in one column.

    Thanks for your help.
    Attached Files Attached Files

  2. #2
    Registered User
    Join Date
    06-22-2015
    Location
    Hilversum, Netherlands
    MS-Off Ver
    2007
    Posts
    12

    Re: How do I match names if the first and last name of a table are in two columns?

    Hi Jim,
    I have found a formula that I think will answer most of your question, see attachment. Only the nicknames part is not covered. I think it will be difficult to determine for Excel if it is a nickname or a complete other person.
    It this of any help?
    Best regards,
    Maarten
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    02-28-2015
    Location
    California, USA
    MS-Off Ver
    2010
    Posts
    52

    Re: How do I match names if the first and last name of a table are in two columns?

    Awesome! That is exactly what I needed Maarten! I previously wasn't aware of the formula that you used to combine the two columns of first and last name in one column. I think I can take it from here! Thank you very much again.

    All the best,

    Jim

  4. #4
    Registered User
    Join Date
    02-28-2015
    Location
    California, USA
    MS-Off Ver
    2010
    Posts
    52

    Re: How do I match names if the first and last name of a table are in two columns?

    I have another problem the I came upon. I'm actually going to be using a different list of names that only has 30 of the pitchers, but I'll also be using fan graphs that lists the 174 pitchers in the league. What I want to do is have Team, Runs, Money Line, O/U, L30 IP, L30 K/9 etc etc (this is under the PITCHERS sheet) all in one sheet. I had no problem putting Vegas Odds to my PITCHERS worksheet but I'm having problems putting the L30 IP, L30 K/9 etc. etc. from the PITCHERS STATS L30 to PITCHERS sheet. Since the players have -R or -L next to their names it's not allowing me to transfer the correct data for L30 IP. It's giving me a totally different value from the one that I need. How do I work with this? Thanks
    Attached Files Attached Files

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Index Match Match Formula DOESN'T WORK WITH TABLES/TABLE NAMES ??
    By Underling in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-04-2014, 09:01 PM
  2. Compare two columns and insert codes, where it finds match with names
    By marina_lk in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-07-2013, 08:44 PM
  3. VB Macro to match names in columns A and B
    By haleakala17 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-22-2012, 10:22 PM
  4. Match names in pivot table and copy value
    By SarahPintal in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-02-2011, 09:53 AM
  5. [SOLVED] match names in 2 different columns
    By Mike in forum Excel General
    Replies: 6
    Last Post: 05-26-2006, 10:50 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1