+ Reply to Thread
Results 1 to 10 of 10

How to generate automatic Family Unique Group ID - Tried with few formula

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

    How to generate automatic Family Unique Group ID - Tried with few formula

    Dear Forum,

    Good morning everyone. Today i have come up with different and complicated requirement (As far as my concern, not for the genius who around here) to learn. Model Data set has been attached with anticipate result message box for your kind notice.

    Explaining data set:

    Data set has few individuals details, those who come for bank for proposing loan for their requirement and the entire family has also proposed individually for their respective needs.

    Requirement: For analysis purpose, i want to get the data of "How many families have been sanctioned loan during this financial year".

    1. To meet this requirement, i would like to generate automatic unique family ID for each and every family. Based on count of Family ID, i can easily get No. of family details and total amount of benefits.

    2. To create Family ID, every individual detail has their spouse / parent name in "M" column. For example, If husband applies, he has mentioned his wife name and If wife applies, she has mentioned her husband name and If children applies, he /she mentioned his father name in the spouse / parent "M"column.

    3. The logic to create automatic family ID is, If wife / Children applies, they mention their husband / father name in the "M"Column. In that case, if husband name match with Column "C", automatically Family ID should be generated and the same Family ID should be displayed for Husband also. The same process should be adopt for while child applies.

    Additional Information: Already we have set automatic unique customer ID (Column H) for all the individual to propose loan at bank. This is entirely separate system and not at all related to this.

    I have tried with MATCH function and created helper column to generate ID. =IFERROR(IF(MATCH(M5,C:C,0),"Yes",""),"")

    HOPE PIVOT TABLE WON'T HELP IN THIS SITUATION, THOUGH I AM NOT PREFERRING IT.

    Kindly guide me and Thanks in advance.
    Bala
    Attached Files Attached Files

  2. #2
    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. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,830

    Re: How to generate automatic Family Unique Group ID - Tried with few formula

    Your problem here is that you cannot have both manual entry and a formula in a cell. You can heva a formula (INDEX MATCH) to return a family ID if one exists based on surname and name in column M, and that can return a blank if no match is found, but to enter a new family ID, it would have to be overwritten.
    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.

  3. #3
    Forum Expert
    Join Date
    06-08-2012
    Location
    Left the forum!
    MS-Off Ver
    Left the forum!
    Posts
    5,189

    Re: How to generate automatic Family Unique Group ID - Tried with few formula

    Array confirmed in N4, then filled down.

    =IF(M4="","",IF(MATCH(M4,C:C,0)>ROW(N4),"FID - "&TEXT(MAX(IFERROR(RIGHT(N$3:N3,5)+1,1)),"00000"),INDEX(N$3:N3,MATCH(M4,C$3:C3,0))))

    ...confirmed by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER. You will know the array is active when you see curly braces { } appear around your formula. If you do not CTRL+SHIFT+ENTER you will get an error or a clearly incorrect answer.

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

    Re: How to generate automatic Family Unique Group ID - Tried with few formula

    Dear Ms. Ali,

    Thanks for your understanding of my requirement. But Mr. Jason's formula helped me here. I will learn the logic, he applied and get back to you.

    Thanks for addressing my requirement.

    Bala

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

    Re: How to generate automatic Family Unique Group ID - Tried with few formula

    Dear Mr. Jason,

    Thanks a lot for addressing my complicated requirement and helping me. It works well. I have only one concern, the Family ID comes only once in their respective family members row. For example: Could you please see, Row No: 16 & 23, contains, Ms. Sonia Karmavath's details, when she visited first time (22.08.2014) Family ID displayed, but when she came 2nd time to bank on 19.09.2014 Family ID is not displayed.

    Is it the function of Index? or else. Could you please teach me on this?

    Million thanks

    Bala

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

    Re: How to generate automatic Family Unique Group ID - Tried with few formula

    Dear Ms. Ali,

    =IF(M5="","", - Logical test for blank cells, if M column does not have any name.

    IF(MATCH(M5,C:C,0)>ROW(N5), (Logical test for match the name M=C, but to be honest, do not understand why >Row(N5),


    "FID -"&TEXT(MAX(IFERROR(RIGHT(N$3:N4,5)+1,1)),"00000"), - Formula for generate Automatic ID


    INDEX(N$3:N4,MATCH(M5,C$3:C4,0)))) – Formula for getting table reference.

    I need your guidance to get clarify 2 things:

    1. Why >Row(N5)
    2. Why Family ID is not generated, while the family members entry comes 2nd time.

    Could you please teach me on this?

    Thanks in advance

    Bala

  7. #7
    Forum Expert
    Join Date
    06-08-2012
    Location
    Left the forum!
    MS-Off Ver
    Left the forum!
    Posts
    5,189

    Re: How to generate automatic Family Unique Group ID - Tried with few formula

    Row 23 is an individual application, not a family application.

    Parent name is missing in column M.


    You can work around it with this, but you really should be more consistent with your data and your requirements.

    =IF(M4="",IFERROR(INDEX($N$4:$N$63,MATCH(TRUE,IF($C$4:$C$59=C4,$M$4:$M$59<>""),0)),""),IF(MATCH(M4,C:C,0)>ROW(N4),"FID - "&TEXT(MAX(IFERROR(RIGHT(N$3:N3,5)+1,1)),"00000"),INDEX(N$3:N3,MATCH(M4,C$3:C3,0))))

    ...confirmed by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER. You will know the array is active when you see curly braces { } appear around your formula. If you do not CTRL+SHIFT+ENTER you will get an error or a clearly incorrect answer.

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

    Re: How to generate automatic Family Unique Group ID - Tried with few formula

    Dear Mr. Jason,

    yes, i am really sorry. yes i got it. Thanks a lot for your support.

    Bala

  9. #9
    Forum Expert
    Join Date
    06-08-2012
    Location
    Left the forum!
    MS-Off Ver
    Left the forum!
    Posts
    5,189

    Re: How to generate automatic Family Unique Group ID - Tried with few formula

    IF(MATCH(M5,C:C,0)>ROW(N5), (Logical test for match the name M=C, but to be honest, do not understand why >Row(N5),
    MATCH > ROW means ID has not yet been generated, so the formula needs to create one.

    If the ID has already been generated then the formula looks for the existing ID.

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

    Re: How to generate automatic Family Unique Group ID - Tried with few formula

    Dear Mr. Jason,

    Perfect ... I understood the formula. Million thanks.

    Thanks

+ 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. Formula to generate unique code
    By jamiem4 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 09-18-2015, 01:11 PM
  2. formula to generate the address of a cell which holds a unique value in workbook
    By MichaelPhilipsz in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-14-2014, 01:22 AM
  3. Formula using date and time to generate unique ID
    By penny in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 09-17-2013, 02:19 PM
  4. Hello, i am new joiner in Excel group family here
    By Rein1010 in forum Hello..Introduce yourself
    Replies: 1
    Last Post: 06-30-2013, 01:11 AM
  5. Formula to generate unique random numbers?!?
    By aims in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 04-07-2013, 03:14 PM
  6. [SOLVED] Need a Formula to give a group a unique number
    By rbpd5015 in forum Excel General
    Replies: 7
    Last Post: 05-15-2012, 11:59 AM
  7. Replies: 5
    Last Post: 11-16-2011, 01:25 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