Closed Thread
Results 1 to 6 of 6

Conditional summing across multiple sheets

  1. #1
    Registered User
    Join Date
    07-29-2015
    Location
    USA
    MS-Off Ver
    2010
    Posts
    35

    Conditional summing across multiple sheets

    Hi,

    I am trying to sum the same cell across multiple sheets, but want to incorporate a summing criteria. Ordinarily I would use '1:3'!C23 (for example) to sum the same cell (C23) across sheets 1 to 3.

    However, say C23 on sheet 2 doesn't fit my criteria (such as cell C1 on all sheets being the name of a client), yet C23 on sheets 1 and 3 do - is it possible to use this type of formula and incorporate a criteria such that the result would be sum('1'!C23,'3'!C23)?

    So, this is the formula I came up with after reading multiple threads:

    =SUMPRODUCT(SUMIF(INDIRECT("`"&PropertyList&"`!$A$2"),"Crestline",INDIRECT("`"&PropertyList&"`!C12")))

    And then updated to

    =SUMPRODUCT(SUMIF(INDIRECT("`"&PropertyList1&"`!$A$2"),"Crestline",INDIRECT("`"&PropertyList1&CELL("address",C12))))

    After all that work, I still get #ref error.... I went to "evaluate formula" and it seems to work fine until -INDIRECT("`"&PropertyList1&"`!$A$2")- this part shows #ref at the end of the step.

    Do you guys see anything odd or wrong in the formula?

    Please let me know.
    Thank you in advance.
    Capture.JPGCapture1.JPG

  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,719

    Re: Conditional summing across multiple sheets

    The single quote marks look wrong - you need the straight type ('), not the angled type (`).
    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 daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675

    Re: Conditional summing across multiple sheets

    Your single quotes around sheet names don’t look like the right type, I’d advise you to check those

    Also the second formula is missing quote+exclamation after 2nd Property List
    Audere est facere

  4. #4
    Registered User
    Join Date
    07-29-2015
    Location
    USA
    MS-Off Ver
    2010
    Posts
    35

    Re: Conditional summing across multiple sheets

    That worked!!!!! Thank you so much guys!!!!
    Another question!
    IF I want to make this two or more criteria instead of meeting one criteria, how should I modify the formula?

  5. #5
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675

    Re: Conditional summing across multiple sheets

    With more criteria you can use SUMIFS function. The syntax is essentially the same except the range to sum comes first. You can set up the references using INDIRECT in exactly the same way

  6. #6
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,929

    Re: Conditional summing across multiple sheets

    Welcome to the Forum, unfortunately this is a duplicate post and as such will now be closed, you may continue in your other thread.

    Thread Closed.

    https://www.excelforum.com/excel-for...le-sheets.html
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

Closed Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Conditional summing across multiple sheets
    By green4000 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 11-25-2017, 01:33 AM
  2. Summing over multiple sheets
    By thespasticone in forum Excel Charting & Pivots
    Replies: 2
    Last Post: 07-18-2016, 01:19 AM
  3. Summing across multiple sheets
    By bqheng in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 12-15-2014, 11:33 PM
  4. Summing across multiple sheets
    By markvdh in forum Excel General
    Replies: 19
    Last Post: 02-16-2011, 10:34 AM
  5. Summing Across Multiple Sheets
    By nawas in forum Excel General
    Replies: 2
    Last Post: 12-01-2009, 08:17 AM
  6. [SOLVED] Summing Across Multiple Sheets
    By Liam in forum Tips and Tutorials
    Replies: 3
    Last Post: 01-15-2007, 05:30 PM
  7. [SOLVED] Conditional summing across several sheets
    By Eastland in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-16-2006, 04:35 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