+ Reply to Thread
Results 1 to 20 of 20

Family members grouping by eldest

  1. #1
    Registered User
    Join Date
    01-22-2015
    Location
    London
    MS-Off Ver
    Microsoft office 2010
    Posts
    26

    Smile Family members grouping by eldest

    Hello Everyone,
    I'm looking for some help here.
    I have list of family members on my spreadsheet that have been identified by their family and individual id's. Also i have their first name, surname and age's. I need help in getting the below result:
    - In column F i'd like to get the result family name in there for ex: Man family. This needs be done by first finding the oldest age from each family groups and then using their surname of the eldest member and adding "family" after the surname.

    I've attached the spreadsheet to have a look at.

    I look forward to your solutions

    Thank you

    MAK
    Attached Files Attached Files

  2. #2
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,316

    Re: Family members grouping by eldest

    Hi MAK,

    Basically it sounds like you are saying the list needs to be rearranged based on age. A pivot table can make quick work of that.
    Attached Files Attached Files
    HTH
    Regards, Jeff

  3. #3
    Registered User
    Join Date
    01-22-2015
    Location
    London
    MS-Off Ver
    Microsoft office 2010
    Posts
    26

    Re: Family members grouping by eldest

    Hi Jeff,
    Thank you so much for this, but i was looking to avoid doing via pivot. Any chance this can be done by formula's.

    Regards
    Mak

  4. #4
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,316

    Re: Family members grouping by eldest

    Hi Mak,

    At least for me, this is above my ability with formulas, but I have asked for help. In your sample, can you update it to show what you expect?

  5. #5
    Registered User
    Join Date
    01-22-2015
    Location
    London
    MS-Off Ver
    Microsoft office 2010
    Posts
    26

    Re: Family members grouping by eldest

    Hi Jeff,
    The results to be shown the same way you did using Pivot, enclosed is the sheet with results. I was hoping to find a way through formula's where after finding the largest age within a family group it would use that family members surname and add "family" in the results for each member of that family.

    Regards
    MAK
    Attached Files Attached Files

  6. #6
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,316

    Re: Family members grouping by eldest

    Hi Mak,

    I don't quite understand why you have to look for the oldest in the group when they are all with the same Surname.

    In your last example, F2 copied down >> =D2&" "&"Family"

    Again, not sure what the oldest age has to do with the Surname, but I could be missing something.
    Last edited by jeffreybrown; 03-12-2020 at 10:44 AM.

  7. #7
    Registered User
    Join Date
    01-22-2015
    Location
    London
    MS-Off Ver
    Microsoft office 2010
    Posts
    26

    Re: Family members grouping by eldest

    Hi Jeff,
    so sorry, my mistake i didn't clarify my query properly and neither did my spreadsheet. There will be family members with different surnames (some having their father's name and some mother's name as a surname) within a family. I've been asked to bring the eldest family members surname as the family name for the whole family.
    for example:
    A crazy 10yrs
    B cram 12yrs
    F crazy 34yrs
    K cram 32yrs
    Since the eldest member is F crazy 34yrs the result should be
    A crazy 10yrs Crazy family
    B cram 12yrs Crazy family
    F crazy 34yrs Crazy family
    K cram 32yrs Crazy family

    hope this is more clear now.
    My apologies again

    Regards
    MAK

  8. #8
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,316

    Re: Family members grouping by eldest

    Please update you spreadsheet example versus typed out text.

  9. #9
    Registered User
    Join Date
    01-22-2015
    Location
    London
    MS-Off Ver
    Microsoft office 2010
    Posts
    26

    Re: Family members grouping by eldest

    Hi Jeff,
    as requested

    regards

    MAK
    Attached Files Attached Files

  10. #10
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,078

    Re: Family members grouping by eldest

    How about
    =INDEX($D$2:$D$13,AGGREGATE(15,6,(ROW($D$2:$D$13)-ROW($D$2)+1)/($E$2:$E$13=MAX(IF($A$2:$A$13=A2,$E$2:$E$13))),1))&" Family"

  11. #11
    Registered User
    Join Date
    01-22-2015
    Location
    London
    MS-Off Ver
    Microsoft office 2010
    Posts
    26

    Re: Family members grouping by eldest

    expected results
    Attached Files Attached Files

  12. #12
    Registered User
    Join Date
    01-22-2015
    Location
    London
    MS-Off Ver
    Microsoft office 2010
    Posts
    26

    Re: Family members grouping by eldest

    Great Thanks for this, but when i copied it to the remaining cells its giving me same surname+family for every single person on the sheet. am i doing something wrong here

  13. #13
    Registered User
    Join Date
    01-22-2015
    Location
    London
    MS-Off Ver
    Microsoft office 2010
    Posts
    26

    Re: Family members grouping by eldest

    Quote Originally Posted by Fluff13 View Post
    How about
    =INDEX($D$2:$D$13,AGGREGATE(15,6,(ROW($D$2:$D$13)-ROW($D$2)+1)/($E$2:$E$13=MAX(IF($A$2:$A$13=A2,$E$2:$E$13))),1))&" Family"
    ok, ok, my bad...it works...me dumbo needed to copy it as an array ....DUH!!!

  14. #14
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,078

    Re: Family members grouping by eldest

    You're welcome & thanks for the feedback.

  15. #15
    Registered User
    Join Date
    01-22-2015
    Location
    London
    MS-Off Ver
    Microsoft office 2010
    Posts
    26

    Re: Family members grouping by eldest

    Quote Originally Posted by Fluff13 View Post
    You're welcome & thanks for the feedback.
    Just before you go, a small duplicate error has happened, i've enclosed the results where this has happened highlighted in yellow.
    Attached Files Attached Files

  16. #16
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,316

    Re: Family members grouping by eldest

    Try this one adjustment

    =INDEX($D$2:$D$11,AGGREGATE(15,6,(ROW($D$2:$D$11)-ROW($D$2)+1)/(($A$2:$A$11=A2)*($E$2:$E$11=MAX(IF($A$2:$A$11=A2,$E$2:$E$11)))),1))&" Family"

  17. #17
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,078

    Re: Family members grouping by eldest

    Oops, forgot about the possibility of matching ages, but Jeff has sorted that.

  18. #18
    Registered User
    Join Date
    01-22-2015
    Location
    London
    MS-Off Ver
    Microsoft office 2010
    Posts
    26

    Re: Family members grouping by eldest

    Quote Originally Posted by jeffreybrown View Post
    try this one adjustment

    =index($d$2:$d$11,aggregate(15,6,(row($d$2:$d$11)-row($d$2)+1)/(($a$2:$a$11=a2)*($e$2:$e$11=max(if($a$2:$a$11=a2,$e$2:$e$11)))),1))&" family"
    "great it works all fine now, appreciate the help!"

  19. #19
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,316

    Re: Family members grouping by eldest

    Hi Mak,

    Glad you now have a solution to push your project on. We are happy to help and thank you for the feedback.

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

  20. #20
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,078

    Re: Family members grouping by eldest

    Glad we could help & thanks for the feedback

+ 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. Randomly assign family members for gift exchange
    By ohammah in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 12-02-2018, 12:20 AM
  2. vba to count family members
    By winmaxservices1 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-17-2016, 06:38 AM
  3. Grouping Sibling ID into Family ID
    By F4N in forum Excel General
    Replies: 3
    Last Post: 05-05-2016, 06:36 PM
  4. [SOLVED] How to insert no. of rows under main rows according to no. of family members....?
    By Indra Rai in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-11-2014, 09:04 AM
  5. Filter family members
    By mulderm in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 06-19-2013, 12:02 PM
  6. Replies: 7
    Last Post: 03-29-2013, 04:42 PM
  7. Excel 2007 : Grouping members of cube
    By mrt115 in forum Excel General
    Replies: 0
    Last Post: 10-16-2008, 07:11 AM

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