+ Reply to Thread
Results 1 to 10 of 10

Formula to summarize data from certain sheets only

  1. #1
    Valued Forum Contributor
    Join Date
    01-18-2007
    Location
    Georgia
    MS-Off Ver
    2010
    Posts
    4,434

    Formula to summarize data from certain sheets only

    Hello:

    Please refer to attached file.
    I have month data as shown in monthly sheet.
    I need to summarize the data in Summary Sheet depending on value in cell A1.
    In this example A1 is Mar.
    So i need formula in highlighted cell to add value from each month until month shown in cell A1.
    In this example, i would need to add Jan,Feb and Mar values.
    I have manually added in SUmmary Sheet, cell B3 as shown.

    Let me know if you have any questions.
    Thanks.

    Riz
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    06-08-2012
    Location
    Left the forum!
    MS-Off Ver
    Left the forum!
    Posts
    5,189

    Re: Formula to summarize data from certain sheets only

    Try

    =SUMPRODUCT(SUBTOTAL(9,INDIRECT(TEXT(29*ROW(INDIRECT("1:"&MONTH("1"&$A$1))),"mmm")&"!RC",0)))
    Last edited by jason.b75; 07-21-2018 at 03:23 PM.

  3. #3
    Valued Forum Contributor
    Join Date
    01-18-2007
    Location
    Georgia
    MS-Off Ver
    2010
    Posts
    4,434

    Re: Formula to summarize data from certain sheets only

    Hello Jason:

    Thanks a lot, it works but difficult to understand the formula for my data use.
    What is 9 and 29 is referring to?

    My data in Jan,Feb,Mar.....sheet which needs to be added at B633 down.

    Let me know if any questions

    Riz
    Last edited by rizmomin; 07-21-2018 at 05:03 PM.

  4. #4
    Forum Expert
    Join Date
    06-08-2012
    Location
    Left the forum!
    MS-Off Ver
    Left the forum!
    Posts
    5,189

    Re: Formula to summarize data from certain sheets only

    You can enter that formula in any cell on the summary sheet and it will sum the exact same cell from every sheet from Jan up to the month specified in A1 without making any changes to the formula.

    The way I read your question from the example file is that B3 in the summary should total B3 from the other sheets, C5 should total C5 from the other sheets Z9 should total Z9 from the others, etc.

    9 is a parameter in subtotal, 1 = average, 2 = count, 9 = sum (there are more which you can see if you look at the help file for subtotal).

    29 is just a multiplier used to convert an array of {1,2,3} up to 12 into months. Neither of these should be changed.

  5. #5
    Valued Forum Contributor
    Join Date
    01-18-2007
    Location
    Georgia
    MS-Off Ver
    2010
    Posts
    4,434

    Re: Formula to summarize data from certain sheets only

    Hello Jason:
    I am sorry but my situation is different.
    Please refer to attatched sheet.
    Data is in row 633.
    Would appreciate your help to modify the formula to pick up and add data from each sheet from row 633.
    Let me know if any questions.
    Riz
    Attached Files Attached Files

  6. #6
    Forum Expert
    Join Date
    06-08-2012
    Location
    Left the forum!
    MS-Off Ver
    Left the forum!
    Posts
    5,189

    Re: Formula to summarize data from certain sheets only

    If the data is always going to start in row 633 then try

    =SUMPRODUCT(SUBTOTAL(9,INDIRECT(TEXT(29*ROW(INDIRECT("1:"&MONTH("1"&$A$1))),"mmm")&"!R[630]C",0)))

    Data in row 633, formula in row 3. 633 - 3 = 630

  7. #7
    Valued Forum Contributor
    Join Date
    01-18-2007
    Location
    Georgia
    MS-Off Ver
    2010
    Posts
    4,434

    Re: Formula to summarize data from certain sheets only

    Hello Jason:

    Thanks i think this should work.
    I will contact you if any other requirement for this tread.
    Thanks
    Riz

  8. #8
    Valued Forum Contributor
    Join Date
    01-18-2007
    Location
    Georgia
    MS-Off Ver
    2010
    Posts
    4,434

    Re: Formula to summarize data from certain sheets only

    Hello jason:

    I am sorry, last requirement.
    In summary sheet, i wanted to start the data from column C instead of column B.
    I inserted blank column but gives wrong result.
    Refer to attached sheet.
    Please help modfiy

    Thanks

    Riz
    Attached Files Attached Files

  9. #9
    Forum Expert
    Join Date
    06-08-2012
    Location
    Left the forum!
    MS-Off Ver
    Left the forum!
    Posts
    5,189

    Re: Formula to summarize data from certain sheets only

    So formula in column C gets data from column B in the other sheets?

    =SUMPRODUCT(SUBTOTAL(9,INDIRECT(TEXT(29*ROW(INDIRECT("1:"&MONTH("1"&$A$1))),"mmm")&"!R[630]C[-1]",0)))

    The last bit of the formula uses R1C1 notation, which (in my opinion) is the easiest way to create relative references when using INDIRECT.

    The number in the square brackets after R denotes the number of rows offset from the formula, 0 = same row, -1 = row above, 1 = row below.
    The number in the square brackets after C denotes the number of columns offset from the formula, 0 = same column, -1 = 1 column left, 2 = 2 columns right.

    So R[630]C[-1] looks to the cell 630 rows down and 1 column left of the formula.

  10. #10
    Valued Forum Contributor
    Join Date
    01-18-2007
    Location
    Georgia
    MS-Off Ver
    2010
    Posts
    4,434

    Re: Formula to summarize data from certain sheets only

    Hello jason:

    i think i got i, once again thank you so much for your time.
    Riz

+ 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. [SOLVED] Need to summarize data from multiple sheets
    By jwagri in forum Excel Formulas & Functions
    Replies: 28
    Last Post: 05-10-2018, 04:31 PM
  2. [SOLVED] How to get summarize data from Various Sheets in a single sheet
    By purav82 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 10-28-2017, 09:08 AM
  3. [SOLVED] How to Summarize / Consolidate Data from Source Datas or One Pivot from multiple sheets
    By PMH2384 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 06-21-2016, 07:16 AM
  4. Formula to summarize from different sheets
    By rizmomin in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 06-09-2016, 10:14 AM
  5. Formula to summarize text from different sheets into a summary sheet?
    By PWBPSBB in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-22-2016, 03:34 PM
  6. Summarize data from columns in multiple sheets to a single datasheet of rows
    By pfi in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 06-20-2014, 10:52 AM
  7. Summarize data from different sheets in the last sheet
    By maxfesca in forum Excel General
    Replies: 1
    Last Post: 03-25-2008, 01:08 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