+ Reply to Thread
Results 1 to 7 of 7

sum across worksheets if contents of two columns meet criteria

  1. #1
    Forum Contributor
    Join Date
    02-07-2013
    Location
    London
    MS-Off Ver
    Excel 2019
    Posts
    105

    sum across worksheets if contents of two columns meet criteria

    Hi Everyone.

    Can anyone look into the attached file and tell me how to sum across the whole workbook if column A and J of each worksheet meets criteria from "payments" sheet.
    I want to check how much we got paid by the council on a date I'll enter manually, to see if all the payments were entered.
    And how much I invoiced our clients on a date I'll also input myself.

    Wish I knew this kind of formulas but whenever I try I get a headache as I look at formulas I never done before and try to "crack" the code to use for my own purposes.
    Once one of you guys helped me create formula like this(which maybe helpful in this case):

    =SUMIFS(INDIRECT(TEXT($D$1-7, "DD.MM")&"!O:O"),INDIRECT(TEXT($D$1-7, "DD.MM")&"!D:D"),D45,INDIRECT(TEXT($D$1-7, "DD.MM")&"!E:E"),E45)

    for my other file.

    I'm only starting my journey to learn Indirect and Match formulas, so no idea yet.. how to nest functions in it.
    Any help greatly appreciated.

    More details in the attached workbook.
    Attached Files Attached Files

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: sum across worksheets if contents of two columns meet criteria

    You will need to create a list somewhere in the sheet of all the sheetnames to incorporate.... then assuming the list is in say X1:X10 of your active sheet, try:

    =SUMPRODUCT(SUMIFS(INDIRECT("'"&$X$1:$X$10&"'!I:I"),INDIRECT("'"&$X$1:$X$10&"'!A:A"),"council",INDIRECT("'"&$X$1:$X$10&"'!J:J"),A4))

    copied down

    and similar for the other column.
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Forum Contributor
    Join Date
    02-07-2013
    Location
    London
    MS-Off Ver
    Excel 2019
    Posts
    105

    Re: sum across worksheets if contents of two columns meet criteria

    Thank you NBVC will try that! That should give me amounts breakdown per name even, since names of the tabs correspond to my residents names.
    Is there a way to sum only the amounts getting info from date client and amount columns across the tabs tho?

  4. #4
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: sum across worksheets if contents of two columns meet criteria

    That will sum all the names together, not by individual.

  5. #5
    Forum Contributor
    Join Date
    02-07-2013
    Location
    London
    MS-Off Ver
    Excel 2019
    Posts
    105

    Re: sum across worksheets if contents of two columns meet criteria

    Actually what I need is to sum all the council payments from dates I enter in column B of my active sheet

    so sum I across sheets if their column A says "council" and column J equals date I enter in B of my active sheet.
    then another formula has to
    sum all amounts across the worksheets if their column H equals date from column E of active sheet and column A says "client"

  6. #6
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: sum across worksheets if contents of two columns meet criteria

    My formulas will do that.

    see attached... I had to add/revise some of your data to show a non zero result.
    Attached Files Attached Files

  7. #7
    Forum Contributor
    Join Date
    02-07-2013
    Location
    London
    MS-Off Ver
    Excel 2019
    Posts
    105

    Re: sum across worksheets if contents of two columns meet criteria

    You're the best!!!!

    but the thing is(now i figured), i'll be moving residents out of the file each time they left and cleared their balance so the sums of council wont be matching actual monies received or invoices from older dates, so guess have to skip this part . I'm happy tho that I'll be able to check how much i invoiced of lets say 13/08/2013 or how much i received from the council ( for income monitoring purposes )

    I guess I'll have to limit myself to checking current invoices/payments then recording them manualy.

    I don't have any ideas of how to do it so that it works despite me moving residents out of the file (to Residents "name of the care home" leavers file)

    Thanks for your time NBVC reputation up and have a wonderful day!

+ 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. Sum column if 2 other columns meet text and date criteria
    By alanelizabeth in forum Excel General
    Replies: 4
    Last Post: 12-30-2012, 10:13 AM
  2. [SOLVED] Clearing cell contents that meet certain criteria for a very large selection
    By Pippin66 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-20-2012, 09:42 PM
  3. Replies: 3
    Last Post: 11-10-2011, 04:24 PM
  4. SumIf two columns meet criteria
    By adam2308 in forum Excel General
    Replies: 3
    Last Post: 11-22-2009, 10:32 AM
  5. count rows that meet two criteria in two different columns?
    By dsk3808 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 06-28-2006, 04:20 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