+ Reply to Thread
Results 1 to 7 of 7

Show the first name of text rather than the full name

  1. #1
    Forum Contributor
    Join Date
    11-01-2014
    Location
    London, England
    MS-Off Ver
    Mac 2016
    Posts
    108

    Show the first name of text rather than the full name

    I have a list of names like James John Jones, in one cell. I need a formula which will just pick up 'James'. I need it to separate up to the first space. However, if there is more than one person with the first name it needs to show the first and second name. So If there were two people called James, it should show as James John.


    Thanks

  2. #2
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,447

    Re: Show the first name of text rather than the full name

    Attach a sample workbook. Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and use the paperclip icon to open the upload window.

    View Pic

  3. #3
    Forum Expert shukla.ankur281190's Avatar
    Join Date
    05-17-2014
    Location
    Lucknow, India
    MS-Off Ver
    Office 365
    Posts
    3,935

    Re: Show the first name of text rather than the full name

    Assuming A1 cell having the naming
    Perhaps

    B1=IF(LEN(A1)-LEN(SUBSTITUTE(A1," ",""))>=2,TRIM(LEFT(SUBSTITUTE(A1," ",REPT(" ",50)),100)),LEFT(A1,FIND(" ",A1)-1))
    If I helped, Don't forget to add reputation (click on the little star ★ at bottom of this post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)

  4. #4
    Forum Contributor
    Join Date
    11-01-2014
    Location
    London, England
    MS-Off Ver
    Mac 2016
    Posts
    108

    Re: Show the first name of text rather than the full name

    I have tried from my PC and mac to use the attachment button and it doesn't work. There maybe a problem with the website. I will Try again later. In the meantime here is what i put together

    Original List
    Ayomi Helen Gregson-Lloyd
    Sami Grzelecki
    Janelle Angela Hamilton
    Janelle Susan Hamilton
    Shiya-Louise Hassan
    Kimberly Hazlewood
    Seron Heathcote

    Result 1
    Ayomi
    Sami
    Janelle
    Janelle
    Shiya-Louise
    Kimberly
    Seron

    Result 2
    Ayomi
    Sami
    Janelle Angela
    Janelle Susan

    Shiya-Louise
    Kimberly
    Seron


    I can work with the result 1 list, but would prefer result 2 if it is possible.

  5. #5
    Forum Expert shukla.ankur281190's Avatar
    Join Date
    05-17-2014
    Location
    Lucknow, India
    MS-Off Ver
    Office 365
    Posts
    3,935

    Re: Show the first name of text rather than the full name

    try

    Result1 B1=LEFT(A1,FIND(" ",A1)-1)
    Result2 C1=IF(SUMPRODUCT(--($E$1:$E$7=E1))>=2,TRIM(LEFT(SUBSTITUTE(A1," ",REPT(" ",50)),100)),LEFT(A1,FIND(" ",A1)-1))


    Drag down.

  6. #6
    Forum Contributor
    Join Date
    11-01-2014
    Location
    London, England
    MS-Off Ver
    Mac 2016
    Posts
    108

    Re: Show the first name of text rather than the full name

    Thanks Anukur

  7. #7
    Forum Expert shukla.ankur281190's Avatar
    Join Date
    05-17-2014
    Location
    Lucknow, India
    MS-Off Ver
    Office 365
    Posts
    3,935

    Re: Show the first name of text rather than the full name

    Glad it helps you

+ 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. [SOLVED] Show first 20 characters - full words only
    By james19 in forum Excel Formulas & Functions
    Replies: 19
    Last Post: 04-23-2015, 01:58 AM
  2. Full screen but show status bar?
    By dazbear in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-19-2014, 05:15 PM
  3. Show Full Array of Covar Function
    By bengnn in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-14-2013, 05:42 PM
  4. Dropdown to show full row, not single value
    By alexburn in forum Excel General
    Replies: 3
    Last Post: 01-19-2011, 03:06 PM
  5. Replies: 2
    Last Post: 07-24-2006, 02:10 PM
  6. increase rowheight to show imported text in full excel 2000 VBA
    By jonrpullen in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-07-2006, 12:20 PM
  7. [SOLVED] Show Full Menus
    By Simon Shaw in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-06-2005, 12: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