+ Reply to Thread
Results 1 to 7 of 7

Formula to populate a table based on two criterion

Hybrid View

  1. #1
    Registered User
    Join Date
    05-04-2018
    Location
    nairobi
    MS-Off Ver
    ms office 2010
    Posts
    15

    Formula to populate a table based on two criterion

    Hi.
    I have a sheet with names of persons and amounts borrowed and dates in a sheet named LOAN LEDGER. Each person is allocated a whole page. I was to populate this information on a different sheet, based on two criterion, NAME of the person and DATE which the amount was given, probably by matching. Can anyone please help. Attached is a worksheet with sample results. Thanks
    Attached Files Attached Files
    Last edited by KIBAAKO; 09-21-2018 at 01:15 PM. Reason: DIDN'T ATTACH THE REQUIRED FILE

  2. #2
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: Formula to populate a table based on two criterion

    After removing the trailing space after TOM in cell B3 (i.e. change "TOM " to "TOM"), and correcting the spelling in B4, try this in C3:

    =IFERROR(1/(1/SUMIFS(LOAN_LEDGER!$E:$E,LOAN_LEDGER!$A:$A,$B3,LOAN_LEDGER!$C:$C,C$2)),"")

    Drag to the right and down.

  3. #3
    Registered User
    Join Date
    05-04-2018
    Location
    nairobi
    MS-Off Ver
    ms office 2010
    Posts
    15
    Thanks. It worked perfectly

  4. #4
    Registered User
    Join Date
    05-04-2018
    Location
    nairobi
    MS-Off Ver
    ms office 2010
    Posts
    15

    Re: Formula to populate a table based on two criterion

    Hi.
    I had requested for help with a formula, for which I was assisted with it i.e.
    =IFERROR(1/(1/SUMIFS(LOAN_LEDGER!$E:$E,LOAN_LEDGER!$A:$A,$B3,LOAN_LEDGER!$C:$C,C$2)),"")
    The formula worked but there is still one more hurdle, this more condition that, IF PURPOSE (cell B in LOAN_LEDGER worksheet ) is empty, then the corresponding cell in the populated worksheet should also remain empty. Attached is a worksheet with sample results. Thanks
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    05-04-2018
    Location
    nairobi
    MS-Off Ver
    ms office 2010
    Posts
    15

    Re: Formula to populate a table based on two criterion

    Hi.
    Please am humbly requesting someone to assist me in the above post.
    Thanks

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

    Re: Formula to populate a table based on two criterion

    You can just add that condition to the SUMIFS, i.e.:

    =IFERROR(1/(1/SUMIFS(LOAN_LEDGER!$E:$E,LOAN_LEDGER!$A:$A,$B3,LOAN_LEDGER!$C:$C,C$2,LOAN_LEDGER!$B:$B,"<>")),"")

    Hope this helps.

    Pete

    EDIT: Ah! Beaten to it

  7. #7
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: Formula to populate a table based on two criterion

    Including this into the original formula should do what you are looking for.

    =IFERROR(1/(1/SUMIFS(LOAN_LEDGER!$E:$E,LOAN_LEDGER!$A:$A,$B3,LOAN_LEDGER!$B:$B,"<>",LOAN_LEDGER!$C:$C,C$2)),"")

+ 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. Replies: 3
    Last Post: 11-22-2016, 06:11 AM
  2. VBA code to populate a formula based on a table ( ID // Name)
    By speedyacct in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 10-09-2014, 02:19 PM
  3. Find value based on item number (first criterion) and date (second criterion)
    By ivan.stajin in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-19-2014, 10:47 AM
  4. Cut and paste row(s) from a table to another table based on criterion
    By olivierpbeland in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 12-20-2012, 09:09 AM
  5. [SOLVED] How to sum entries in a table based on a given criterion
    By avp3000 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-23-2012, 04:29 AM
  6. [SOLVED] Can't Get Excel To return data based on 2 criterion from Pivot Table
    By thecuteonexoxo in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-27-2012, 01:35 PM
  7. Formula to Populate table based on 3 input values
    By Senthilerp in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 08-18-2009, 01:19 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