+ Reply to Thread
Results 1 to 13 of 13

Data Calculation From Multiple Sheet In Range

  1. #1
    Registered User
    Join Date
    07-31-2012
    Location
    Buffalo, United States
    MS-Off Ver
    MS Office 2007, 2010, 2013
    Posts
    59

    Data Calculation From Multiple Sheet In Range

    This is my previous problem and it work: http://www.excelforum.com/excel-form...-argument.html

    However, when I try to sum the data of range A1:A5, it only show the sum on first sheet. But when I check the formula with F9 it did bring all data over. Below is the formula I use, any idea?

    =SUMIF(INDIRECT("'"&'Summary'!A1:A20&"'!A1:A5"),"<1000")
    Last edited by jackgan; 05-12-2014 at 10:50 AM.

  2. #2
    Forum Expert
    Join Date
    04-22-2013
    Location
    .
    MS-Off Ver
    .
    Posts
    4,418

    Re: Sum Data From Multiple Sheet In Range

    You need an additional function to enclose that as per Tony's post #9 in the thread you linked.

    This formula:
    =SUMIF(INDIRECT("'"&'Summary'!A1:A20&"'!A1:A5"),"<1000")
    will return the array of the answers from each sheet, so you need to enclosure it within another function to add up the results, i.e.:
    =SUMPRODUCT(SUMIF(INDIRECT("'"&'Summary'!A1:A20&"'!A1:A5"),"<1000"))

  3. #3
    Registered User
    Join Date
    07-31-2012
    Location
    Buffalo, United States
    MS-Off Ver
    MS Office 2007, 2010, 2013
    Posts
    59

    Re: Sum Data From Multiple Sheet In Range

    Thanks, it now did sum the data from multiple sheet. But just the value on A1 instead of A1:A5.

  4. #4
    Forum Expert
    Join Date
    04-22-2013
    Location
    .
    MS-Off Ver
    .
    Posts
    4,418

    Re: Sum Data From Multiple Sheet In Range

    Take a look at the example
    Attached Files Attached Files

  5. #5
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Sum Data From Multiple Sheet In Range

    Here's a small sample file that demonstrates this:

    SUMIF across sheets.xlsx
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  6. #6
    Registered User
    Join Date
    07-31-2012
    Location
    Buffalo, United States
    MS-Off Ver
    MS Office 2007, 2010, 2013
    Posts
    59

    Re: Sum Data From Multiple Sheet In Range

    Now I understand. Can you show me also if I just want to SUM, MIN, MAX, AVERAGE without any criteria?

  7. #7
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Sum Data From Multiple Sheet In Range

    Without any conditions you can just do a normal SUM, MIN, MAX, AVERAGE:

    =SUM(Sheet2:Sheet5!A1:A5)

    =MIN(Sheet2:Sheet5!A1:A5)

    =MAX(Sheet2:Sheet5!A1:A5)

    =AVERAGE(Sheet2:Sheet5!A1:A5)

  8. #8
    Registered User
    Join Date
    07-31-2012
    Location
    Buffalo, United States
    MS-Off Ver
    MS Office 2007, 2010, 2013
    Posts
    59

    Re: Sum Data From Multiple Sheet In Range

    What if I will change the sheet name later? The sheet name might be rename without number in it.

  9. #9
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Sum Data From Multiple Sheet In Range

    The formula(s) will automatically update to include the new sheet name.

  10. #10
    Registered User
    Join Date
    07-31-2012
    Location
    Buffalo, United States
    MS-Off Ver
    MS Office 2007, 2010, 2013
    Posts
    59

    Re: Sum Data From Multiple Sheet In Range

    Is that mean if I have multiple sheet with non-consistent name then I must start with the consistent sheet name and rename it later? Also can you show me to do the calculation using INDIRECT, if possible? Thanks by the way!

  11. #11
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Sum Data From Multiple Sheet In Range

    Here's another way that should make things easier for you.

    Create a "sheet sandwich".

    Insert a new sheet to the immediate left of the first sheet
    you want to include in the calculation. Name this sheet Start.

    Insert a new sheet to the immediate right of the last sheet
    you want to include in the calculation. Name this sheet End.

    Let's assume you want to sum cell A1 on each sheet. The
    formula would be:

    =SUM(Start:End!A1)

    Each sheet that is physically located between the Start sheet and the End sheet (inclusive) will be included in the calculation.

    \Sheet1/\Sheet2/\Start/\Sheet3/\Sheet4/\Sheet5/\End/

    When you add new sheets that need to be included in the
    calculation just put them between the Start sheet and the
    End sheet.

  12. #12
    Registered User
    Join Date
    07-31-2012
    Location
    Buffalo, United States
    MS-Off Ver
    MS Office 2007, 2010, 2013
    Posts
    59

    Re: Sum Data From Multiple Sheet In Range

    Genius!!! That's exactly what I need!!! Thanks Tony and ragulduy for the help!

  13. #13
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Sum Data From Multiple Sheet In Range

    You're welcome. We appreciate the feedback!

+ 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] Consolidate Data from 1 Range on 1 Sheet in Multiple Workbooks to Master Workbook Sheet
    By Jennasis in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-10-2013, 06:11 AM
  2. [SOLVED] Getting a formula to read multiple worksheet data (same cell range in each sheet)
    By Bonzopookie in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 04-28-2013, 10:46 PM
  3. [SOLVED] Copy range from multiple sheets, into a master sheet and moving over by variable col range
    By g1eagle in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 08-23-2012, 01:36 PM
  4. [SOLVED] Copy range from multiple files in multiple folders to single sheet in master WB
    By Royzer in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 07-18-2012, 03:40 PM
  5. copy data from a range in multiple sheet to master sheet
    By kumaramitoujjain in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-26-2010, 01:30 AM

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