+ Reply to Thread
Results 1 to 16 of 16

Sumifs multiple sheets

  1. #1
    Registered User
    Join Date
    04-02-2015
    Location
    Bulgaria
    MS-Off Ver
    MS Office 2016
    Posts
    7

    Sumifs multiple sheets

    Hello,
    Please someone to help me with the below formula:

    SUMPRODUCT(SUMIFS(INDIRECT("'"&sheets&"'!"&"S15:S73"),INDIRECT("'"&sheets&"'!"&"U15:U73"),E$2,INDIRECT("'"&sheets&"'!K7"),$C3,INDIRECT("'"&sheets&"'!K10"),{"703-GB","703 EDIE BULK"}))*60

    The result from the formula is an error #VALUE!. I have checked the formula several times, but I can't find any mistake.

    I've attached the file with the example.

    Thanks in advance for your help
    Attached Files Attached Files

  2. #2
    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,208

    Re: Sumifs multiple sheets

    All the ranges must be same dimensions: 2 of yours are single cells.

    It is not clear what you are trying to do.

  3. #3
    Forum Expert avk's Avatar
    Join Date
    07-12-2007
    Location
    India
    MS-Off Ver
    Microsoft Office 2013
    Posts
    3,223

    Re: Sumifs multiple sheets

    In "sumif" Sheet in "E3"
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Array formula shift+ctrl+enter
    copy paste across.


    atul


    If my answer (or that of other members) has helped you, please say "Thanks" by clicking the Add Reputation button at the foot of one of their posts.

    Also: if your problem is solved, please take the time to mark your thread as SOLVED by going to the top of your first post, selecting "Thread Tools" and then "Mark thread as solved".

  4. #4
    Registered User
    Join Date
    04-02-2015
    Location
    Bulgaria
    MS-Off Ver
    MS Office 2016
    Posts
    7

    Re: Sumifs multiple sheets

    Quote Originally Posted by JohnTopley View Post
    All the ranges must be same dimensions: 2 of yours are single cells.

    It is not clear what you are trying to do.
    Hello JohnTopley,
    What I am trying with this formula is:
    Imagine you have to fill the stoppages of one machine. The stoppages A,B,C.....
    You have three working shifts: 1,2,3. But also on this line you are producing different kind of products (different formats).
    What I am trying to do is to sum the time by stoppages, by shift and by kind of product. As you can see from the formula for this machine the formats are 703-GB and 703 EDIE BULK. All other possible formats must be excluded.
    So if I have for example in cell K10 a format different from the mentioned above, the formula shouldn't sum the requested information (time, stoppages, shift)
    If you have any idea how to manage this it will be perfect.

  5. #5
    Registered User
    Join Date
    04-02-2015
    Location
    Bulgaria
    MS-Off Ver
    MS Office 2016
    Posts
    7

    Re: Sumifs multiple sheets

    Quote Originally Posted by avk View Post
    In "sumif" Sheet in "E3"
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Array formula shift+ctrl+enter
    copy paste across.
    Hello avk,
    The SUMIF formula doesn't work for me. I need more than one criteria and because of that I should use SUMIFS.
    Thanks anyway for your reply.

  6. #6
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Sumifs multiple sheets

    is that what you want to achieve?
    Please Login or Register  to view this content.
    edit: I forgot multiply by 60 - corrected
    Last edited by sandy666; 06-23-2017 at 08:27 AM.

  7. #7
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Sumifs multiple sheets

    SUMIFS () does not love array mode (CSE or SUMPRODUCT) so you need to divide SUMIFS () into SUMIF () the right number of times.

    maybe this one (check for ranges)
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    and now you can (should) use Control+Shift+Enter but no SUMPRODUCT

  8. #8
    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,208

    Re: Sumifs multiple sheets

    You cannot simply compare K7 to C3 OR k10 to 703-GB and 703 EDIE BULK: you need compare to ranges like S15:S73.


    I am still no wiser!

  9. #9
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Sumifs multiple sheets

    Because I don't know what result you want to achieve, maybe this one:
    Please Login or Register  to view this content.
    with:
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    And you do not need to use apostrophes because your sheet names do not contain spaces
    Last edited by sandy666; 06-23-2017 at 08:53 AM.

  10. #10
    Registered User
    Join Date
    04-02-2015
    Location
    Bulgaria
    MS-Off Ver
    MS Office 2016
    Posts
    7

    Re: Sumifs multiple sheets

    Quote Originally Posted by sandy666 View Post
    Because I don't know what result you want to achieve, maybe this one:
    Please Login or Register  to view this content.
    with:
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    And you do not need to use apostrophes because your sheet names do not contain spaces
    Hello sandy666,
    This formula doesn't work for me, because what I want is to sum S15:S73 from all sheets if the three conditions are available at the same time ( but not one of them). Some kind like sumif + and function...
    Sum S15:S73 if K7=C3 and K10={"703-GB","703 EDIE BULK"} and U15:73=E2.
    In your formulas you are summing the results from the three conditions.
    Thanks anyway.

  11. #11
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Sumifs multiple sheets

    Ok, could you show expected results?

  12. #12
    Registered User
    Join Date
    04-02-2015
    Location
    Bulgaria
    MS-Off Ver
    MS Office 2016
    Posts
    7

    Re: Sumifs multiple sheets

    Quote Originally Posted by sandy666 View Post
    Ok, could you show expected results?
    Hello sandy666,
    As attached you can find the requested result.

    Regards,
    Aneliya
    Attached Files Attached Files

  13. #13
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Sumifs multiple sheets

    1st and important, like John said in post#2 all ranges must be the same size

    cite from MS
    The Criteria_range argument must contain the same number of rows and columns as the Sum_range argument.
    so formula is (with reorganization your data a little)
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    columns V & W are hidden
    Attached Files Attached Files
    Last edited by sandy666; 06-26-2017 at 05:16 AM. Reason: file updated

  14. #14
    Registered User
    Join Date
    04-02-2015
    Location
    Bulgaria
    MS-Off Ver
    MS Office 2016
    Posts
    7

    Re: Sumifs multiple sheets

    Quote Originally Posted by sandy666 View Post
    1st and important, like John said in post#2 all ranges must be the same size

    cite from MS

    so formula is (with reorganization your data a little)
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    columns V & W are hidden

    Thank you a lot for the help. It works.
    Thanks to all of you and especially to sandy666.

  15. #15
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Sumifs multiple sheets

    If that takes care of your original question, please click on Add Reputtion (bottom left corner of the post of the person(s) who helped you) Thanks.

  16. #16
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Sumifs multiple sheets

    Thanks for the feedback and mark thread solved

+ 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] SUMIFS across multiple sheets using multiple criteria function not working
    By ghostly1 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 04-03-2017, 04:41 PM
  2. sumifs using ID over multiple sheets
    By Phillystones in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-05-2016, 01:42 PM
  3. [SOLVED] SUMIFS across multiple sheets
    By keith740 in forum Excel General
    Replies: 12
    Last Post: 06-08-2015, 04:51 PM
  4. Replies: 5
    Last Post: 02-06-2015, 08:44 PM
  5. [Question] Sumifs multiple sheets with flexible sheets reference
    By tranhaithang in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 12-29-2014, 04:53 AM
  6. Replies: 2
    Last Post: 01-23-2013, 06:25 AM
  7. SUMIFS on Multiple Work Sheets
    By SeaTiger in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-01-2011, 04:56 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