+ Reply to Thread
Results 1 to 8 of 8

Ho do I extract just first name and count the most popular names?

  1. #1
    Registered User
    Join Date
    07-17-2014
    Location
    Europe
    MS-Off Ver
    2010
    Posts
    25

    Question Ho do I extract just first name and count the most popular names?

    Hi guys,

    I would like to extract just the first name from the fields of this format:

    Jack Stukenborg
    Rob Cerqueira
    Alex Cornett
    Bill Godec
    Alice Webb
    Rob Washko
    George Gonzalez

    and then count the most popular names. Could please anyone help me with the best approach to accomplish this task?

    Thank you in advance!

    Attaching a sample file.
    client_name.xlsx

  2. #2
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: Ho do I extract just first name and count the most popular names?

    In B2 Cell

    =IFERROR(LEFT(TRIM(A2),FIND(" ",TRIM(A2))-1),"")

    Drag it down..

    Don't know what you are trying to say with the below statement will be helpful if you tell/show the expected result

    count the most popular name


    If your problem is solved, then please mark the thread as SOLVED>>Above your first post>>Thread Tools>>
    Mark your thread as Solved


    If the suggestion helps you, then Click *below to Add Reputation

  3. #3
    Valued Forum Contributor
    Join Date
    12-02-2012
    Location
    Melbourne, VIC
    MS-Off Ver
    Excel 2016
    Posts
    750

    Re: Ho do I extract just first name and count the most popular names?

    See attached. client_name2.xlsx
    Hope this is what you wanted.

  4. #4
    Registered User
    Join Date
    07-17-2014
    Location
    Europe
    MS-Off Ver
    2010
    Posts
    25

    Re: Ho do I extract just first name and count the most popular names?

    Thank you Sixthsense !
    This formula works great for me! Now I want to count the number of appearance of each name. Like in the example above, there are 2 appearances of the name Rob. I would expect the result like this:
    Name
    Rob 2
    Bill 10
    Jen 4
    Alex 25


    Thanks!

  5. #5
    Registered User
    Join Date
    07-17-2014
    Location
    Europe
    MS-Off Ver
    2010
    Posts
    25

    Re: Ho do I extract just first name and count the most popular names?

    Quote Originally Posted by jewelsharma View Post
    See attached. Attachment 333643
    Hope this is what you wanted.
    Thank you jewelsharma!!

  6. #6
    Registered User
    Join Date
    07-17-2014
    Location
    Europe
    MS-Off Ver
    2010
    Posts
    25

    Re: Ho do I extract just first name and count the most popular names?

    Quote Originally Posted by jewelsharma View Post
    See attached. Attachment 333643
    Hope this is what you wanted.
    jewelsharma, wondering how can I see top 20 most common names according to your approach?

    Thank you!

  7. #7
    Valued Forum Contributor
    Join Date
    12-02-2012
    Location
    Melbourne, VIC
    MS-Off Ver
    Excel 2016
    Posts
    750

    Re: Ho do I extract just first name and count the most popular names?

    Mate,
    May I suggest you mark this thread as "Closed" (considering that your original request has been answered to your satisfaction). Ideally, a follow-up query should be raised via a new thread and provide a link to this thread.

    Anyways, to find top 20, we can take a couple of approaches.
    1. Edit: Create a non-duplicate list of first names. Else the same name would be repeated many-times over.
    2. Evaluate frequencies as before and then sort the non-duplicate list in descending order of frequency. So highest frequencies would come to the top.
    3. Use Rank formula to rank the frequencies of the non-duplicate list based on highest frequency = Rank 1, next highest Rank 2 and so on...; and then sort based on Rank (lowest on top).

    Unfortunately, the data in your original sheet is very limited to showcase either of these approaches. However, if you have a larger dataset - you can try it yourself.
    Last edited by jewelsharma; 07-21-2014 at 02:27 AM. Reason: Forgot to include a step.

  8. #8
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: Ho do I extract just first name and count the most popular names?

    In C2 Cell

    =IF(B2="","",VALUE(COUNTIF($B$2:$B$8,B2)&"."&ROWS($1:1)))

    Drag it down..



    In F2 Cell

    =IFERROR(INDEX($B$2:$B$8,MATCH(LARGE($C$2:$C$8,ROWS($1:1)),$C$2:$C$8,0)),"")

    Drag it down..
    Last edited by :) Sixthsense :); 07-21-2014 at 02:31 AM.

+ 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: 10-28-2012, 09:22 PM
  2. Find top 5 most popular
    By fwhite in forum Excel General
    Replies: 9
    Last Post: 11-15-2010, 02:47 PM
  3. Most Popular Entry by Month
    By tomlancaster in forum Excel General
    Replies: 3
    Last Post: 08-11-2009, 08:34 AM
  4. Showing the top 3 most popular names
    By tomlancaster in forum Excel General
    Replies: 9
    Last Post: 07-22-2009, 10:34 AM
  5. Extract unique names (names could be little different)
    By Richard Flame in forum Excel General
    Replies: 1
    Last Post: 05-31-2007, 09:04 AM

Tags for this Thread

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