+ Reply to Thread
Results 1 to 13 of 13

Using SUMIFS across Multiple sheets - Problem in re-opening

  1. #1
    Registered User
    Join Date
    06-21-2014
    Location
    Mumbai
    MS-Off Ver
    MS Office 2010
    Posts
    5

    Using SUMIFS across Multiple sheets - Problem in re-opening

    HI everyone,

    Using the SUMIFS function, I could successfully get the expected results from extracting data from 15 base separate excel files (from where the data will be extracted).
    However, whenever I am re-opening my master sheet(where I want the data to reflect) it gives me #VALUE!

    Only after opening all my 15 base sheets, my master sheet fetches data.

    Can anyone help me with some solution on the above problem ?
    Or can anyone suggest an alternative function to it ?

    Regards,
    Pankaj.Master Sheet Templete.xlsx

  2. #2
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.84 (24041420))
    Posts
    8,795

    Re: Using SUMIFS across Multiple sheets - Problem in re-opening

    Sumifs will not work on closed workbooks
    But Sumproduct() will - can you change the SUMIFS to use SUMPRODUCT(() , i'm not an expert with sumproduct() - so I may not be able to help - but if you post the formula here, i'm sure others will convert it for you
    Wayne
    if my assistance has helped, and only if you wish to , there is an "* Add Reputation" on the left hand side - you can add to my reputation here

    If you have a solution to your thread - Please mark your thread solved do the following: >
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

  3. #3
    Registered User
    Join Date
    06-21-2014
    Location
    Mumbai
    MS-Off Ver
    MS Office 2010
    Posts
    5

    Re: Using SUMIFS across Multiple sheets - Problem in re-opening

    Thanks for the reply.
    Please note the formula as mentioned below:

    =SUMIFS('[Neeraj Gupta.xls]Timesheet'!$F$4:$F$3000,'[Neeraj Gupta.xls]Timesheet'!$C$4:$C$3000,B5)+
    SUMIFS('[Ashmita Parab.xls]Timesheet'!$F$4:$F$3000,'[Ashmita Parab.xls]Timesheet'!$C$4:$C$3000,B5)+
    SUMIFS('[Fahad Ansari.xls]Timesheet'!$F$4:$F$3000,'[Fahad Ansari.xls]Timesheet'!$C$4:$C$3000,B5)

    I have posted the formula for fetching data from 3 separate sheets, for sake of understanding.

    As you said correctly that it does not work with closed sheets, I need an alternative to it as it is neither convenient nor possible at all times to open all the 15 sheets before opening the master sheet.

    Regards,
    Pankaj.

  4. #4
    Forum Expert Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: Using SUMIFS across Multiple sheets - Problem in re-opening

    Try

    =SUMPRODUCT('[Neeraj Gupta.xls]Timesheet'!$F$4:$F$3000*('[Neeraj Gupta.xls]Timesheet'!$C$4:$C$3000=B5))+
    SUMPRODUCT('[Ashmita Parab.xls]Timesheet'!$F$4:$F$3000*('[Ashmita Parab.xls]Timesheet'!$C$4:$C$3000=B5))+
    SUMPODUCT('[Fahad Ansari.xls]Timesheet'!$F$4:$F$3000*('[Fahad Ansari.xls]Timesheet'!$C$4:$C$3000=B5))

    @etaf
    Sumifs will not work on closed workbooks
    But Sumproduct() will -
    Didn't know that, thanks
    Life's a spreadsheet, Excel!
    Say thanks, Click *

  5. #5
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.84 (24041420))
    Posts
    8,795

    Re: Using SUMIFS across Multiple sheets - Problem in re-opening

    hope i'm right

  6. #6
    Registered User
    Join Date
    06-21-2014
    Location
    Mumbai
    MS-Off Ver
    MS Office 2010
    Posts
    5

    Re: Using SUMIFS across Multiple sheets - Problem in re-opening

    Thanks for the hint.

    But it SUMPRODUCT shall give me Sum of Products, unfortunately I only need pure summation only.

    Thanks anyways. Do let me know if there is any other way to get around this problem.

    Regards,
    Pankaj.

  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: Using SUMIFS across Multiple sheets - Problem in re-opening

    Quote Originally Posted by etaf View Post
    Sumifs will not work on closed workbooks
    Quote Originally Posted by etaf View Post
    hope i'm right
    You are!

    Off the top of my head, other functions that will not work on closed files:

    SUMIF(S)
    COUNTIF(S)
    AVERAGEIF(S)
    INDIRECT
    OFFSET
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

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

    Re: Using SUMIFS across Multiple sheets - Problem in re-opening

    Quote Originally Posted by pankaj.d.m View Post

    But it SUMPRODUCT shall give me Sum of Products, unfortunately I only need pure summation only.
    SUMPRODUCT can give you the same thing as SUMIF.

    Data Range
    A
    B
    C
    D
    1
    Yes
    95
    292
    2
    No
    86
    3
    No
    47
    4
    Maybe
    43
    5
    Yes
    70
    6
    Maybe
    50
    7
    Yes
    94
    8
    Yes
    33
    9
    No
    49
    10
    Maybe
    51
    11
    ------
    ------
    ------
    ------


    Entered in C1:

    =SUMPRODUCT(--(A1:A10="Yes"),B1:B10)

    Which is the same as:

    =SUMIF(A1:A10,"Yes",B1:B10)

  9. #9
    Registered User
    Join Date
    06-21-2014
    Location
    Mumbai
    MS-Off Ver
    MS Office 2010
    Posts
    5

    Re: Using SUMIFS across Multiple sheets - Problem in re-opening

    Thanks a ton Tony.

    Your proposed solution worked perfectly fine.

    May u please also confirm, if I need to put more than 1 condition to check while fetching data, is it possible using SUMPRODUCT function ?

    For eg. in ur example, say I need to fetch data with following condition.
    If the data says YES and If its above 70 --> Return value with summation of all the cells qualifying both conditions.

    Thanks once again.
    Regards,
    Pankaj.
    Last edited by pankaj.d.m; 06-23-2014 at 02:20 AM.

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

    Re: Using SUMIFS across Multiple sheets - Problem in re-opening

    Like this...

    =SUMPRODUCT(--(A1:A10="Yes"),--(B1:B10>70),B1:B10)

    Here's some more info on how powerful the SUMPRODUCT function is:

    http://xldynamic.com/source/xld.SUMPRODUCT.html

  11. #11
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Using SUMIFS across Multiple sheets - Problem in re-opening

    or use a pivot table for it.
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

  12. #12
    Registered User
    Join Date
    06-21-2014
    Location
    Mumbai
    MS-Off Ver
    MS Office 2010
    Posts
    5

    Re: Using SUMIFS across Multiple sheets - Problem in re-opening

    Thanks TONY.

    Ur suggestions are really helpful.

    Regards,
    Pankaj.

  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: Using SUMIFS across Multiple sheets - Problem in re-opening

    You're welcome. Thanks for 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. Does SUMIFS have issues with merged cells or across multiple sheets??
    By dumaser88 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 09-09-2014, 01:04 PM
  2. [SOLVED] SUMIFS with multiple criteria between sheets
    By PrncssJ in forum Excel Formulas & Functions
    Replies: 18
    Last Post: 03-24-2014, 01:31 PM
  3. Using a SUMIFS across multiple sheets with multiple criteria
    By Auto667 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 03-06-2013, 06:55 AM
  4. Replies: 2
    Last Post: 01-23-2013, 06:25 AM
  5. SUMIFS on Multiple Work Sheets
    By SeaTiger in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-01-2011, 04:56 AM

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