+ Reply to Thread
Results 1 to 5 of 5

Last Name First Name Formula

  1. #1
    Registered User
    Join Date
    04-25-2019
    Location
    Philadelphia, PA
    MS-Off Ver
    2016
    Posts
    3

    Last Name First Name Formula

    Hi All,

    New member from Philly. I am working with data from the city of Philadelphia, my biggest issue is the Owner Name column has both first name last name and last name first name with no rhyme or reason. For example one cell has John A Smith and the other has Smith A John, completely inconsistent. I reached out to the contact at the city to inquire if there was a certain date when they changed the order of names, but I checked manually and it seems completely random.

    1. I did text to column (original name in column A)
    2. I tried to determine whether column B or C was a first name based on the FirstNames tab in the document
    3. I have a First Name Output which is the desired result for first name highlighted in green
    4. I am having trouble where the vlookup detected two first names and I do not how to tell the if formula to put the correct name

    I know I am close, could someone help me cross the finish line?

    Do you think there's a better way to do this?

    I would like to try to keep the FirstName tab as the vlookup because there are clearly first names that should be last names in my case.

    Thank you,
    Jake
    Attached Files Attached Files
    Last edited by AliGW; 04-25-2019 at 04:36 PM.

  2. #2
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: Last Name First Name Formula

    Hello and welcome to the workbook.

    See attachment.

    Please Login or Register  to view this content.
    Please Login or Register  to view this content.
    This formula got about 80% of the names sorted correctly.

    The other 20% are shown as blank and were not found in the FirstNames worksheet.
    A lot of those are company names.
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    04-25-2019
    Location
    Philadelphia, PA
    MS-Off Ver
    2016
    Posts
    3

    Re: Last Name First Name Formula

    63falcondude

    This is amazing, thank you so much for your help and quick reply!!!!

  4. #4
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: [SOLVED] Last Name First Name Formula

    Happy to help. Thanks for the rep!

    By the way, to mark your thread as solved, you can select Thread Tools from the menu link above and mark this thread as SOLVED instead of changing your thread title.

  5. #5
    Registered User
    Join Date
    04-25-2019
    Location
    Philadelphia, PA
    MS-Off Ver
    2016
    Posts
    3

    Re: [SOLVED] Last Name First Name Formula

    Thank you again!

+ 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. Replies: 3
    Last Post: 01-10-2019, 09:34 AM
  2. Replies: 5
    Last Post: 02-16-2018, 06:50 AM
  3. Replies: 8
    Last Post: 09-22-2017, 05:41 AM
  4. Excel formula bar to display the result of the formula , not the formula?
    By max_max in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 12-18-2016, 07:15 PM
  5. Replies: 11
    Last Post: 06-06-2014, 03:34 PM
  6. how to hide formula in formula box, view lookup result in formula box?
    By vengatvj in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-14-2013, 04:06 PM

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