+ Reply to Thread
Results 1 to 20 of 20

How to extract list of unique individuals from the master data set - Reg.

  1. #1
    Forum Contributor
    Join Date
    08-19-2016
    Location
    Chennai, India
    MS-Off Ver
    2007
    Posts
    300

    How to extract list of unique individuals from the master data set - Reg.

    Hello good morning everyone,

    Kindly help me in generate only unique list from the data set. The model data set have been attached for your reference. The data set is a dynamic data entry sheet, which has list of persons to visit counseling center and aims to cover daily visitors.

    Requirement as below:

    1. Need to find out only unique individuals from the data set. I have created a helper column, which shows result of number of visit by each individual. Based on that, i have done the count value also. . I have used this formula "=COUNTIFS($G$2:$G$28,1)" in "K2 column".

    2. Now, i want to generate only those unique individual list between two dates in the table "I5:M5". I have tried the following formula in "I5" column.

    =IFERROR(SMALL(IF(C2:C32=Helper,IF(B2:B32>=I2,IF(B2:B32<=J2,ROW(B2:B32)-1))),ROW(B1)),"")

    Kindly help me.

    Thanks in advance
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: How to extract list of unique individuals from the master data set - Reg.

    i4 =if(and(B4>=$K$4,B4<=$L$4),"Yes","") and drag down

    result G4 =IF(AND(H4=1,I4="yes"),"yes","") and drag down

    G1 =SUBTOTAL(103,$G$4:$G$34)

    and filter in G3 on Yes.

    See the attached file.
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

  3. #3
    Forum Contributor
    Join Date
    08-19-2016
    Location
    Chennai, India
    MS-Off Ver
    2007
    Posts
    300

    Re: How to extract list of unique individuals from the master data set - Reg.

    Dear Mr. oeldere,

    Thanks for your efforts and support.

    Since "H" Column is there and i am getting my desired result (Unique count) in M4. Then what is the purpose of "G" and "I" Column. More over my basic requirement is extracting list of those unique count in the table, which is in the attachment K to O column.

    Kindly help me for that.

    Regards

  4. #4
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: How to extract list of unique individuals from the master data set - Reg.

    why not use the built in filter in Excel (as offered in my solution).

  5. #5
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2405 (Windows 11 23H2 64-bit)
    Posts
    81,430

    Re: How to extract list of unique individuals from the master data set - Reg.

    Quote Originally Posted by oeldere View Post
    why not use the built in filter in Excel (as offered in my solution).
    I think because the question is how to EXTRACT a list, not FILTER a list.

    Sorry, but I don't have time for this today. However, looking at the OPs file, there is no INDEX function in the formula he has tried to use, so that will need remedying. If nobody else chips in before I'm back, I'll have a look later. Is this list meant to be sorted? And if so, how - by name or by date?
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  6. #6
    Forum Contributor
    Join Date
    08-19-2016
    Location
    Chennai, India
    MS-Off Ver
    2007
    Posts
    300

    Re: How to extract list of unique individuals from the master data set - Reg.

    Dear Ms. Ali,

    Thanks for your reply and guidance. I need it by name only.

    Thanks

  7. #7
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: How to extract list of unique individuals from the master data set - Reg.

    @AliGW

    Hi Ali, thanks for your comment.

    I don't read in the question, it had to be an extract of the data.


    But as you already been noticed, a lot of forummembers ask for a solution THEY think is the best on their problem.

    Adding a differant approach is often an eye-opener.

    The differant approach is often, on the long term, a better solution.

    I think a filter on the data, if the example represents the real data, is a good (maybe better) solution.

  8. #8
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2405 (Windows 11 23H2 64-bit)
    Posts
    81,430

    Re: How to extract list of unique individuals from the master data set - Reg.

    But as you already been noticed, a lot of forummembers ask for a solution THEY think is the best on their problem.

    Adding a differant approach is often an eye-opener.
    Yes, I understand that, but the OP had already rejected your suggestion of a filter once, so I think he wants to do it his way. Have you looked at his file and the layout of the data? Anyway, I must dash!

  9. #9
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,813

    Re: How to extract list of unique individuals from the master data set - Reg.

    Put this array* formula in I5:

    =IFERROR(INDEX(C$2:C$32,SMALL(IF((G$2:G$32=1)*(B$2:B$32>=$I$2)*(B$2:B$32<=$J$2),ROW(B$2:B$32)-1),ROW(B1))),"")

    then copy down.

    *NOTE: an array formula needs to be committed using the key combination of Ctrl-Shift-Enter (CSE), rather than the usual < Enter >.

    Hope this helps.

    Pete

  10. #10
    Forum Contributor
    Join Date
    05-06-2016
    Location
    Cluj, Romania
    MS-Off Ver
    2007-2010
    Posts
    220

    Re: How to extract list of unique individuals from the master data set - Reg.

    Hi,
    Try this in I5 and drag to right and down, it is array formula, use Ctrl+Shift+Enter
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    does not require helper column
    se attached

  11. #11
    Forum Contributor
    Join Date
    08-19-2016
    Location
    Chennai, India
    MS-Off Ver
    2007
    Posts
    300

    Re: How to extract list of unique individuals from the master data set - Reg.

    Dear Mr. Pete,

    Thanks for your support and guidance. This formula only returns name and not other details, as i structured in the table. Hope, i have to change the index value.

    Great and looking forward to learn from you lot.

    Regards

  12. #12
    Forum Contributor
    Join Date
    08-19-2016
    Location
    Chennai, India
    MS-Off Ver
    2007
    Posts
    300

    Re: How to extract list of unique individuals from the master data set - Reg.

    Dear Mr. Tudy,

    Thanks a lot and it works well. I want to learn from you lot. how the formula has been framed logically? Could you please refer some books to learn array formula.

    Million thanks.

    Bala

  13. #13
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2405 (Windows 11 23H2 64-bit)
    Posts
    81,430

    Re: How to extract list of unique individuals from the master data set - Reg.

    @Bala - I thought you wanted your extracted list in name order?

  14. #14
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,813

    Re: How to extract list of unique individuals from the master data set - Reg.

    Sorry, I thought you only wanted the name. Put this array* formula in I5 instead:

    =IFERROR(INDEX(B$2:B$32,SMALL(IF(($G$2:$G$32=1)*($B$2:$B$32>=$I$2)*($B$2:$B$32<=$J$2),ROW($B$2:$B$32)-1),ROW(B1))),"")

    then you can copy across and down as required. Use the Format Painter icon to copy the formats from B2:F2 to the new table.

    Hope this helps.

    Pete

  15. #15
    Forum Contributor
    Join Date
    05-06-2016
    Location
    Cluj, Romania
    MS-Off Ver
    2007-2010
    Posts
    220

    Re: How to extract list of unique individuals from the master data set - Reg.

    Hi Bala,
    I think the best way to learn is the exercises. On this fornum you find the most and get assistance if you do not understand something. Just ask.

  16. #16
    Forum Contributor
    Join Date
    08-19-2016
    Location
    Chennai, India
    MS-Off Ver
    2007
    Posts
    300

    Re: How to extract list of unique individuals from the master data set - Reg.

    Dear Ms. Ali,

    thanks for your reply. Yes i wanted to be in name order and Mr. Pete and Mr.Tudy supported me in this requirement.

    Looking forward your support and guidance.

    Regards

  17. #17
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,813

    Re: How to extract list of unique individuals from the master data set - Reg.

    If that takes care of your original question, please select Thread Tools from the menu above your first post and mark this thread as SOLVED.

    Also, since you are relatively new to the forum, you might like to know that you can directly thank those who have helped you by clicking on the small "star" icon located in the lower left corner of a post that you have found to be helpful (not just in this thread - for any post that has helped you). This also adds to the reputation of the poster (the small green bars in the poster's profile).

    Pete

  18. #18
    Forum Contributor
    Join Date
    08-19-2016
    Location
    Chennai, India
    MS-Off Ver
    2007
    Posts
    300

    Thumbs up Re: How to extract list of unique individuals from the master data set - Reg.

    Dear Mr. Pete,

    I am really sorry for this, i already given the reputation as well as marked as SOLVED. since new to this forum, few options are really unknown to me. Please do not mind and i will cautiously do it in next time.
    Your guidance also extremly helped me during this process.

    Regards

  19. #19
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2405 (Windows 11 23H2 64-bit)
    Posts
    81,430

    Re: How to extract list of unique individuals from the master data set - Reg.

    Quote Originally Posted by bala04msw View Post
    Dear Ms. Ali,

    thanks for your reply. Yes i wanted to be in name order and Mr. Pete and Mr.Tudy supported me in this requirement.

    Looking forward your support and guidance.

    Regards
    I have tried both and neither sorts the list alphabetically, which is what I thought you wanted. With Tudy's formula they are in date order. As long as you are happy with this, then that's fine!

  20. #20
    Forum Contributor
    Join Date
    08-19-2016
    Location
    Chennai, India
    MS-Off Ver
    2007
    Posts
    300

    Re: How to extract list of unique individuals from the master data set - Reg.

    Ms. Ali,

    Yes i am happy with Mr. Tudy's formula and both Mr. Pete's formula. Both are working and meets my requirement. Thanks for your concern and guidance.

    Bala

+ 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] How to extract list of individuals from master document between two dates
    By bala04msw in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 08-21-2016, 03:24 AM
  2. Replies: 4
    Last Post: 01-31-2014, 06:22 AM
  3. Replies: 15
    Last Post: 11-11-2013, 08:21 PM
  4. extract data from a master list
    By indesh in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-29-2013, 12:27 AM
  5. [SOLVED] Auto extract data from master list into other sheets based off of month
    By dsklein85 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 07-18-2013, 06:23 PM
  6. Email merge unique messages to groups and individuals
    By RagingWahoo in forum Excel General
    Replies: 3
    Last Post: 10-12-2012, 01:15 PM
  7. Extract Data From a list with unique value
    By sunflowers in forum Excel Formulas & Functions
    Replies: 13
    Last Post: 12-22-2011, 08:47 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