+ Reply to 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.

  2. #2
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,463

    Re: Conditional summing across multiple sheets

    Not testing, but have you tried INDIRECT within INDIRECT?
    Replace CELL(...,C12) with INDIRECT(CELL(...,C12))
    Quang PT

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

    Re: Conditional summing across multiple sheets

    That didn't seem to work. Just fyi. I do not have any issue with second half of the formula (second indirect formula). THe problem lies in the first indirect formula when I ran the "evaluate formula". When I take each step of (INDIRECT("`"&PropertyList1&"`!$A$2"), it opens up the multiple tabs fine and add A2 on each name (i.e. indirect('Sheet1'$A$2, 'Sheet2$A$2, etc...) then when I take the next step, indirect goes away and shows this ( #ref, #ref, #ref, #ref....)
    Last edited by green4000; 11-24-2017 at 03:35 AM. Reason: Photo attached

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

    Re: Conditional summing across multiple sheets


  5. #5
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,169

    Re: Conditional summing across multiple sheets

    Attach a sample workbook (not image).

    Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate.

    Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window.

  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

    Green, please do not post duplicate threads. I have closed your other 1, you can continue here

    Thanks
    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

+ 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. Summing over multiple sheets
    By thespasticone in forum Excel Charting & Pivots
    Replies: 2
    Last Post: 07-18-2016, 01:19 AM
  2. Summing across multiple sheets
    By bqheng in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 12-15-2014, 11:33 PM
  3. Summing across multiple sheets.
    By Calugasi in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-28-2014, 05:45 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

Tags for this Thread

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