+ Reply to Thread
Results 1 to 9 of 9

Need a formula to extract name of fathers and place them in the same rows with mothers

  1. #1
    Registered User
    Join Date
    04-11-2020
    Location
    Monterey
    MS-Off Ver
    2013
    Posts
    4

    Need a formula to extract name of fathers and place them in the same rows with mothers


    So I have ~130k rows with names of kids, mostly 2 rows per kid (about 65k kids) with same info in each 2 rows however one has the father's name and the other mother's name. I want to have only one row per kid with one colum with mother's name and other column with father's name. However not all rows are in the same order father-mother sequence, some of them hare mother-father and other are single mom or single dad.

    I have been traying several ifs/ands formulas but cannot discriminate either the order nor if is a single mom as the sequence of rows (in pairs) which do not apply when finding a kid with single mom/dad.

    Driving me nuts. Hope someone can help.

    Many thanks in advance.

    P.S. Excuse my English as its a 2nd tounge.

    =IF(AND(E2=E3,G2="DAD",G3="Mom"),H2,H3).
    names.png
    Attached Files Attached Files

  2. #2
    Registered User
    Join Date
    03-22-2020
    Location
    Malaysia
    MS-Off Ver
    2013 and 365 Pro Plus
    Posts
    56

    Re: Need a formula to extract name of fathers and place them in the same rows with mothers

    I'm sure someone else will come with better formula...

    I don't want to use Index or match, just personal preference

    at cell I2

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    at cell J2

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    drag down to fill the formula

  3. #3
    Registered User
    Join Date
    04-11-2020
    Location
    Monterey
    MS-Off Ver
    2013
    Posts
    4

    Re: Need a formula to extract name of fathers and place them in the same rows with mothers

    Thank you Biex, I will try this after dinner time. I really appreciate your effort mate. I will let you know. Regards.

  4. #4
    Registered User
    Join Date
    03-22-2020
    Location
    Malaysia
    MS-Off Ver
    2013 and 365 Pro Plus
    Posts
    56

    Re: Need a formula to extract name of fathers and place them in the same rows with mothers

    sure, just to be clear, I created the formula base on your screenshot... not base on your excel sample...

    if you need formula base on your sample, just tell here ok?
    Last edited by AliGW; 04-12-2020 at 01:51 AM. Reason: Please don’t quote unnecessarily!

  5. #5
    Registered User
    Join Date
    03-22-2020
    Location
    Malaysia
    MS-Off Ver
    2013 and 365 Pro Plus
    Posts
    56

    Re: Need a formula to extract name of fathers and place them in the same rows with mothers

    if you wish using your own formula on column I...

    you may use only this formula on J2

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    drag down to fill formula

  6. #6
    Registered User
    Join Date
    04-11-2020
    Location
    Monterey
    MS-Off Ver
    2013
    Posts
    4

    Re: Need a formula to extract name of fathers and place them in the same rows with mothers

    Thanks again Biex, I did try your second formula above but didn't work (the one to be used on J2). Your first post formula looks promising. Only thing is that for some reason excel gets very slow in resolving, I have not tried yet with 130K records.
    I will get back tomorrow with the outcome. Again thanks for your support. Blessings.

  7. #7
    Registered User
    Join Date
    03-22-2020
    Location
    Malaysia
    MS-Off Ver
    2013 and 365 Pro Plus
    Posts
    56

    Re: Need a formula to extract name of fathers and place them in the same rows with mothers

    1. the second formula only work if you using your own formula on column I
    2. using formula for a large data will slow down excel, because the formula that i gave you eliminate the use of helper column... maybe if we use helper column, it will improve the calculation. if you want to try with helper column, i could help...
    3. for the data that is too large, i suggest using VBA... which i hope someone here will help with that.
    Last edited by AliGW; 04-12-2020 at 02:19 AM. Reason: Please don't quote unnecessarily!

  8. #8
    Registered User
    Join Date
    04-11-2020
    Location
    Monterey
    MS-Off Ver
    2013
    Posts
    4

    Thumbs up Re: Need a formula to extract name of fathers and place them in the same rows with mothers

    Biex,
    Your formula did the trick. I wanted to appreciate your help.
    You a are such a great person.
    Hope I can help someone else just like you did.
    Many many thanks again, blessing for you and yours.
    Cheers mate.

  9. #9
    Registered User
    Join Date
    03-22-2020
    Location
    Malaysia
    MS-Off Ver
    2013 and 365 Pro Plus
    Posts
    56

    Re: Need a formula to extract name of fathers and place them in the same rows with mothers

    The formula could be improve and optimize further more... If God will, I will try to optimize it....

    You are most welcome...

+ 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. place formula but skip rows
    By ammartino44 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-19-2015, 08:19 PM
  2. No. of Rows determination to place formula in new col
    By sdsmithinc in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 02-15-2015, 08:46 PM
  3. VBA to place formula in non empty rows
    By Chrisbrough88 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-28-2014, 09:58 AM
  4. [SOLVED] Formula to extract date from certain place.
    By rizmomin in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 08-14-2014, 10:27 AM
  5. Replies: 4
    Last Post: 01-18-2014, 03:24 AM
  6. Happy Fathers' Day
    By NBVC in forum The Water Cooler
    Replies: 7
    Last Post: 06-20-2010, 08:47 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