+ Reply to Thread
Results 1 to 10 of 10

Summing the values from multiple sheets with date condition

  1. #1
    Registered User
    Join Date
    04-20-2018
    Location
    India
    MS-Off Ver
    MS office 2016
    Posts
    31

    Summing the values from multiple sheets with date condition

    Hello,

    I am setting up the summary sheet for the investment that is being done into different schemes. I want to get this all sum of all the entries for the month across all the schemes.

    So, in table against Column C for a particular month formula should add all the entries those are in the multiple sheets in the same workbook. Attaching the for working.

    Also, I have highlighted the entries which should add up.

    Thanks n advance.

    Rushi.
    Attached Files Attached Files

  2. #2
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,211

    Re: Summing the values from multiple sheets with date condition

    Please try at C2
    =SUM(SUMIFS(INDIRECT("sheet"&{1,2,3,4,5}&"!C2:C26"),INDIRECT("sheet"&{1,2,3,4,5}&"!B2:B26"),">="&B2,INDIRECT("sheet"&{1,2,3,4,5}&"!B2:B26"),"<"&EDATE(B2,1)))

  3. #3
    Registered User
    Join Date
    04-20-2018
    Location
    India
    MS-Off Ver
    MS office 2016
    Posts
    31

    Post Re: Summing the values from multiple sheets with date condition

    Bo_Ry,

    Amazingly wow, It worked superbly in this sheet.

    But if I have every sheet named differently like in the attached file here then formula shows error. Please suggest some solution to this...

    Thanks,
    Rushi.
    Attached Files Attached Files

  4. #4
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,211

    Re: Summing the values from multiple sheets with date condition

    Key you sheet name in H2:H6

    C2
    =SUMPRODUCT(SUMIFS(INDIRECT($H$2:$H$6&"!C2:C26"),INDIRECT($H$2:$H$6&"!B2:B26"),">="&B2,INDIRECT($H$2:$H$6&"!B2:B26"),"<"&EDATE(B2,1)))
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    04-20-2018
    Location
    India
    MS-Off Ver
    MS office 2016
    Posts
    31

    Post Re: Summing the values from multiple sheets with date condition

    Hello,

    I did as you have asked but this isn't working... Hope I am not doing anything wrong.

    Could you please review the attached file once.

    Thanks,
    Rushi.
    Attached Files Attached Files

  6. #6
    Forum Expert Alf's Avatar
    Join Date
    03-13-2004
    Location
    Gothenburg/Mullsjoe, Sweden
    MS-Off Ver
    Excel 2019 and not sure I like it
    Posts
    4,758

    Re: Summing the values from multiple sheets with date condition

    It seems like this formula don't like tab name with spaces in as well as the "&" char so try change range H2:H6 and tab name to

    ABSL_Tax_relief_96
    BOIAXA_Tax_Advantage
    CanRob_Emerging_Eq
    Kotak_Std_Multicap
    L_T_Emerging_Businesses
    Alf

  7. #7
    Registered User
    Join Date
    04-20-2018
    Location
    India
    MS-Off Ver
    MS office 2016
    Posts
    31

    Re: Summing the values from multiple sheets with date condition

    Hello,

    This has worked. Thanks a lot!!

  8. #8
    Forum Expert Alf's Avatar
    Join Date
    03-13-2004
    Location
    Gothenburg/Mullsjoe, Sweden
    MS-Off Ver
    Excel 2019 and not sure I like it
    Posts
    4,758

    Re: Summing the values from multiple sheets with date condition

    You are welcome and thanks for feedback

    And hopefully Bo when he is back from the sunny beaches where he spends his time in the lap of luxury (yes I'm envious ) may have a better solution to this problem.

    Alf

  9. #9
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,211

    Re: Summing the values from multiple sheets with date condition

    C2
    =SUMPRODUCT(SUMIFS(INDIRECT("'"&$H$2:$H$6&"'!C2:C26"),INDIRECT("'"&$H$2:$H$6&"'!B2:B26"),">="&B2,INDIRECT("'"&$H$2:$H$6&"'!B2:B26"),"<"&EDATE(B2,1)))


    Sheet name with space needs single quote wrap on the 'sheet name'.

  10. #10
    Registered User
    Join Date
    04-20-2018
    Location
    India
    MS-Off Ver
    MS office 2016
    Posts
    31

    Re: Summing the values from multiple sheets with date condition

    Hello,

    First of all, Sorry if reopening the old thread. Don't know if it is allowed as per forum rules.

    Reason I reopened this thread is because, the formula works perfect with current number of sheets. But If I add new sheet then formula doesn't add the numbers from newly added sheet. Hope if you could help in this.

    Thanks a tom in advance.
    Rushi.
    Last edited by rishiambekar; 04-30-2020 at 08:46 AM.

+ 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. Replies: 1
    Last Post: 06-09-2016, 05:10 PM
  2. [SOLVED] Code for summing values until condition met in each cell in a range
    By Liisukas in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-03-2015, 08:31 AM
  3. Summing variable values across variable sheets in multiple columns
    By rdelosh74 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-27-2014, 02:16 PM
  4. [SOLVED] Summing month to date of values in multiple columns
    By oshodibo in forum Excel Formulas & Functions
    Replies: 16
    Last Post: 08-21-2013, 08:13 AM
  5. Summing values in named ranges based on dates, multiple sheets!
    By giggsteve8 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 04-02-2013, 01:42 PM
  6. Summing of Matching Values for condition
    By bdb1974 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-10-2009, 05:48 PM
  7. Summing Values accross multiple sheets
    By randell.graybill in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-01-2009, 05:17 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