+ Reply to Thread
Results 1 to 15 of 15

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

  1. #1
    Valued Forum Contributor
    Join Date
    11-26-2010
    Location
    usa
    MS-Off Ver
    Prefer Excel 2003 but 2007 is great!
    Posts
    611

    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(IND EX(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 05:30 PM.

  2. #2
    Valued Forum Contributor MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Seattle, WA
    MS-Off Ver
    Excel 2010
    Posts
    5,285

    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 * below to say thanks.

  3. #3
    Valued Forum Contributor
    Join Date
    11-26-2010
    Location
    usa
    MS-Off Ver
    Prefer Excel 2003 but 2007 is great!
    Posts
    611

    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 Moderator arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    4,371

    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.
    Cheers,
    Arlette

    If I 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
    Valued Forum Contributor
    Join Date
    11-26-2010
    Location
    usa
    MS-Off Ver
    Prefer Excel 2003 but 2007 is great!
    Posts
    611

    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
    Valued Forum Contributor MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Seattle, WA
    MS-Off Ver
    Excel 2010
    Posts
    5,285

    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?
    One test is worth a thousand opinions.
    Click the * below to say thanks.

  7. #7
    Valued Forum Contributor
    Join Date
    11-26-2010
    Location
    usa
    MS-Off Ver
    Prefer Excel 2003 but 2007 is great!
    Posts
    611

    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
    Valued Forum Contributor
    Join Date
    11-26-2010
    Location
    usa
    MS-Off Ver
    Prefer Excel 2003 but 2007 is great!
    Posts
    611

    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 Guru NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    32,636

    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...
    Microsoft MVP - Excel

    Where there is a will there are many ways. Pick One!


    Please read the Forum Rules

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

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

    Preferred Charities: Lupus Canada and Sick Kids Foundation.
    Feel Free to Donate if you want to, for the assistance you received today.

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

    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))))
    Microsoft MVP - Excel

    Where there is a will there are many ways. Pick One!


    Please read the Forum Rules

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

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

    Preferred Charities: Lupus Canada and Sick Kids Foundation.
    Feel Free to Donate if you want to, for the assistance you received today.

  11. #11
    Valued Forum Contributor
    Join Date
    11-26-2010
    Location
    usa
    MS-Off Ver
    Prefer Excel 2003 but 2007 is great!
    Posts
    611

    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 Guru NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    32,636

    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....
    Microsoft MVP - Excel

    Where there is a will there are many ways. Pick One!


    Please read the Forum Rules

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

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

    Preferred Charities: Lupus Canada and Sick Kids Foundation.
    Feel Free to Donate if you want to, for the assistance you received today.

  13. #13
    Valued Forum Contributor
    Join Date
    11-26-2010
    Location
    usa
    MS-Off Ver
    Prefer Excel 2003 but 2007 is great!
    Posts
    611

    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
    Valued Forum Contributor Haseeb A's Avatar
    Join Date
    05-24-2011
    Location
    India | Kwt
    MS-Off Ver
    2007
    Posts
    1,453

    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.
    HTH; Haseeb

    If your problem is solved, please say so clearly, and mark your thread as Solved:
    Forum Rules & How to Mark a thread as SOLVED

  15. #15
    Valued Forum Contributor
    Join Date
    11-26-2010
    Location
    usa
    MS-Off Ver
    Prefer Excel 2003 but 2007 is great!
    Posts
    611

    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.2.0