+ Reply to Thread
Results 1 to 7 of 7

sum across multiple worksheets with data sitting in variable cells

  1. #1
    Registered User
    Join Date
    08-02-2018
    Location
    Australia
    MS-Off Ver
    2016
    Posts
    4

    sum across multiple worksheets with data sitting in variable cells

    I think I may need to use the sumproduct, sumif and indirect formula but haven't used it before so need someone to explain each element to me.

    I have a summary worksheet which I want to sum data from all the other worksheets within the one document. The columns in the worksheets are all in the same place but the data against each row is not necessarily in the same row number on each worksheet. Therefore, I need to be able to easily pull together (without using the link formula and without index/matching every worksheet) the numbers from each worksheet that correspond to the column title and row title and sum within the cell.


    Any assistance outlining what each of the formulas actually do would be great so I can remember it for the future. I have tried to attach the file with no luck. If you need me to any tips on this also appreciated.
    Attached Files Attached Files

  2. #2
    Forum Expert azumi's Avatar
    Join Date
    12-10-2012
    Location
    YK, Indonesia
    MS-Off Ver
    Excel 2019
    Posts
    2,367

    Re: sum across multiple worksheets with data sitting in variable cells

    Put in F18 and copied down and cross

    =IFERROR(SUMPRODUCT(SUMIF(INDIRECT("'"&{6370,6520,6570,6610,7060,7070,7140,"714A",7260,7400,7520,7570,"757A","757B",7740,7820,6220}&"'!A4:A89"),$A18,INDIRECT("'"&{6370,6520,6570,6610,7060,7070,7140,"714A",7260,7400,7520,7570,"757A","757B",7740,7820,6220}&"'!F4:F89"))),"")
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    08-02-2018
    Location
    Australia
    MS-Off Ver
    2016
    Posts
    4

    Re: sum across multiple worksheets with data sitting in variable cells

    Thank you so much. I really appreciate it. If you have time can you tell me the following:

    How do I copy it to the columns on either side. When I try my normal copy actions it won't automatically update according to the data on the other worksheets but instead update with the data that is in 2018YTD Actual.

    Also, can you tell me what the symbols within the formula are doing. I am learning Excel mostly via google and this forum so any guidance, if you have time about what each of the symbols do would be greatly appreciated.

  4. #4
    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: sum across multiple worksheets with data sitting in variable cells

    Whats wrong with the way you are doing it in C18?
    Are the rows likely to change?
    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

  5. #5
    Registered User
    Join Date
    08-02-2018
    Location
    Australia
    MS-Off Ver
    2016
    Posts
    4

    Re: sum across multiple worksheets with data sitting in variable cells

    I just realised I needed to change the column range within the formula so have done that and all is working well now.

  6. #6
    Registered User
    Join Date
    08-02-2018
    Location
    Australia
    MS-Off Ver
    2016
    Posts
    4

    Re: sum across multiple worksheets with data sitting in variable cells

    Apologies FDibbins. Yes the columns do change which is why how I was summing in C18 wasn't working.

  7. #7
    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: sum across multiple worksheets with data sitting in variable cells

    Quote Originally Posted by Unisbm View Post
    Apologies FDibbins. Yes the columns do change which is why how I was summing in C18 wasn't working.
    I think you mean rows?

+ 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. Need to merge cells based on a variable on multiple worksheets
    By sparkyster in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-27-2018, 02:51 PM
  2. [SOLVED] copy common cells and variable range from multiple worksheets to single master workbook
    By tg7384 in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 04-15-2014, 03:05 PM
  3. VBA Transferring Data Cells to multiple worksheets
    By Siimo in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-06-2013, 05:52 AM
  4. Replies: 1
    Last Post: 11-11-2013, 04:27 PM
  5. [SOLVED] Need help with formula to sum certain cells in multiple worksheets depending on a variable
    By niftysquirrel in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-20-2013, 12:12 PM
  6. consolidate data from multiple files/worksheets when data in variable location
    By Aaron_Tram in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-21-2013, 12:49 PM
  7. replicated data in multiple cells on multiple worksheets
    By nam in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 04-30-2007, 11:08 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