+ Reply to Thread
Results 1 to 15 of 15

show names of ppl once (from a list of duplicates)

  1. #1
    Forum Contributor
    Join Date
    11-26-2010
    Location
    usa
    MS-Off Ver
    Office 365
    Posts
    1,233

    show names of ppl once (from a list of duplicates)

    hello all

    i have a list of ppl (they have multiple entries)

    i tried this formula however it is listing the people's name twice on some instance.....the reason im using this formula is bc the list will expand as ppl will add their names in....so im hoping this formula can keep picking the names once....pls help!!

    *see attached*

    =IF(ROWS($5:5)>COUNTIF(Master!$H$2:$H$463,Calculations!$A$4),NA(),INDEX(Master!$K$2:$K$463,SMALL(INDEX(ROW(Master!$H$2:$H$463)+(Master!$H$2:$H$463<>Calculations!$A$4)*10^10,0),ROWS($5:5))))
    Attached Files Attached Files
    Last edited by jw01; 01-27-2012 at 06:30 PM.

  2. #2
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,352

    Re: show names of ppl once (from a list of duplicates)

    Hi jw01,
    I don't think I understand the question. Do you want to count the number of times a persons name appears in the list? If so you could do a simple Countif() function where the range is the whole column.

    If you are dealing with expanding data that grows, the normal answer is to do that with a Dynamic Named Range in your formula. See
    http://www.beyondtechnology.com/geeks007.shtml or http://www.ozgrid.com/Excel/DynamicRanges.htm

    If you are trying to select the correct row a name is in then you may need a helper column to count the number of the same names above each name.

    hope this helps
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  3. #3
    Forum Contributor
    Join Date
    11-26-2010
    Location
    usa
    MS-Off Ver
    Office 365
    Posts
    1,233

    Re: show names of ppl once (from a list of duplicates)

    hello

    basically i have the names of the ppl listed in the master sheet "column H"....they names are listed multiple times

    in my "calculation sheet"...i want the formula to list their name only once....i thought the formula i have would accomplish taht..but for some reason its not working...ur thoughts?

  4. #4
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,167

    Re: show names of ppl once (from a list of duplicates)

    You have another option - You can either -
    - Copy your columns with names to a different sheet/workbook and perform a Remove Duplicates action on it (Data -> Remove Duplicates)
    or
    -Copy your columns with names to a different sheet/workbook and perform a Advanced Filter action on it (Data -> Advanced -> select Copy to another location / Filter list in place-> select List range & criteria range -> Unique records only.

    If this is too manual to repeat each time your data changes, you can have a macro setup to do it. At a click of a button, you can get it done.
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

  5. #5
    Forum Contributor
    Join Date
    11-26-2010
    Location
    usa
    MS-Off Ver
    Office 365
    Posts
    1,233

    Re: show names of ppl once (from a list of duplicates)

    i did the "remove duplicates" however....because the sheet will be expanding i.e. ppl will be entering their data in...i would like the formula to simply show me the names once....know what i mean?

    any thoughts on that? thx u so much

  6. #6
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,352

    Re: show names of ppl once (from a list of duplicates)

    Did you try or learn Dynamic Named Ranges?
    Do you want a helper column to count the number of times a name appears?
    Is an event macro anything you would consider or do you want a relative simple Excel worksheet function?

  7. #7
    Forum Contributor
    Join Date
    11-26-2010
    Location
    usa
    MS-Off Ver
    Office 365
    Posts
    1,233

    Re: show names of ppl once (from a list of duplicates)

    hey marvin

    i have no issues with the defined name portion....but the issue is....

    how can i apply taht to create a list? i.e. the help columns to show the name appear only once?

    i dont want a macro...thxs

  8. #8
    Forum Contributor
    Join Date
    11-26-2010
    Location
    usa
    MS-Off Ver
    Office 365
    Posts
    1,233

    Re: show names of ppl once (from a list of duplicates)

    i placed this formula in column F5 on the calculation sheet

    but im getting some N/A errors

    {=INDEX(Master!$K$2:$K$463,LARGE(IF(ISNA(MATCH(Master!$K$2:$K$463,F$4:F4,0)),IF(Master!$K$2:$K$463<>"",ROW(Master!$K$2:$K$463)-ROW(Master!$K$2)+1)),INT(RAND()*(ROW()+ROW(F$4))+1)))}

    it is listing the names....but its causing some issue...there are blanks in my data....any thoughts?

  9. #9
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: show names of ppl once (from a list of duplicates)

    Try:

    =LOOKUP(REPT("z",255),CHOOSE({1,2},"",INDEX(Master!$K$2:$K$463,MATCH(0, INDEX(COUNTIF($B$4:$B4,Master!$K$2:$K$463),0),0))))

    confirmed with CTRL+SHIFT+ENTER not just ENTER and copied down...

    convert the K2:K463 to a dynamic range if you want to add names on the fly...
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  10. #10
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: show names of ppl once (from a list of duplicates)

    This one eliminates any blank rows within the data

    =LOOKUP(REPT("z",10),CHOOSE({1,2},"",INDEX(Master!$K$2:$K$463,MATCH(0, INDEX((Master!$K$2:$K$463<>"")*(COUNTIF($B$4:$B4,Master!$K$2:$K$463)),0),0))))

  11. #11
    Forum Contributor
    Join Date
    11-26-2010
    Location
    usa
    MS-Off Ver
    Office 365
    Posts
    1,233

    Re: show names of ppl once (from a list of duplicates)

    hello nbvc

    when i tried your first formula...it works...but shows a blank

    but when i tried your second formula.....it only shows me 31 ppl? vs. 48 that should be shown....ur thoughts? thx u sir!

  12. #12
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: show names of ppl once (from a list of duplicates)

    you are right... but, unfortunately I've gotta take off... so I'll have get back to it later... or you can either not have them in the original data or live with it as one of the returned results... otherwise, if nobody comes up with it, I will look at it over the weekend....

  13. #13
    Forum Contributor
    Join Date
    11-26-2010
    Location
    usa
    MS-Off Ver
    Office 365
    Posts
    1,233

    Re: show names of ppl once (from a list of duplicates)

    here is the attached

    i have made the range dynamic, its called "Name_"

    however with the second formula that you mentioned removes the blanks...its only showing 31 ppl....ur thoughts? thxs again!
    Attached Files Attached Files

  14. #14
    Forum Guru
    Join Date
    05-24-2011
    Location
    India
    MS-Off Ver
    365
    Posts
    2,243

    Re: show names of ppl once (from a list of duplicates)

    if you are looking for extract unique names, this should work with CTRL+SHIFT+ENTER

    =LOOKUP(REPT("z",255),CHOOSE({1,2},"",INDEX(Name_,MATCH(1,IF(Name_<>"",IF(ISNA(MATCH(Name_,B$4:B4,0)),1)),0))))

    copy down.
    Regards,
    Haseeb Avarakkan

    __________________________________
    "Feedback is the breakfast of champions"

  15. #15
    Forum Contributor
    Join Date
    11-26-2010
    Location
    usa
    MS-Off Ver
    Office 365
    Posts
    1,233

    Re: show names of ppl once (from a list of duplicates)

    you guys are the best!!!!!!

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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