+ Reply to Thread
Results 1 to 10 of 10

Need help Sumifs on different sheet with criteria

  1. #1
    Registered User
    Join Date
    10-14-2021
    Location
    Germany
    MS-Off Ver
    2016
    Posts
    5

    Need help Sumifs on different sheet with criteria

    Hello everybody,
    first off all it is really nice to be a part of your community as a newbie in excel.
    I need some if possible for my excel workbook i have made and it drives me crazy
    I wont to count the working Hours off each member(named as Manpower) on different sheet.
    I maked a list of memmbers and i want to tell excel that ineed for each name on different sheets as Date
    to give me the summ off working Hours. I try to attach the testfile. For The first sheet it seems to work but how can i
    tell excel if i want for example anothe date to count with the same criteria as sheet1(07.10)?
    a littele help would be fantastic and i hope somebody answers.Sorry for my bad english by the way
    Attached Files Attached Files
    Last edited by thrilosgate7; 10-14-2021 at 06:35 PM. Reason: Attachment

  2. #2
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,466

    Re: Need help Sumifs on different sheet with criteria

    Using SUMPRODUCT(SUMIF(INDIRECT... to do this.
    G2:G3 contains list of sheet names. it can be expanded accross multi dates.
    In B2:
    Please Login or Register  to view this content.
    Drag down.
    Attached Files Attached Files
    Quang PT

  3. #3
    Registered User
    Join Date
    10-14-2021
    Location
    Germany
    MS-Off Ver
    2016
    Posts
    5

    Re: Need help Sumifs on different sheet with criteria

    Thanks for your quick answer but it doesnt work.
    I think i didnt explain correctly.
    Let me try.
    In the Workbook i have 2 sheets and it is for 2 different days.
    I want that on the sheet (Mitarbeiter)it means Employee in row B to summ the ours from the different sheet in row j.
    So if i select a name from the dropdown in k excel has to recognize the name and summ the ours in sheet mitrabeiter in row B for each employee.
    I dont now how to explain correctly because may englisch is not so well.
    Thx for your time and your help.

  4. #4
    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,215

    Re: Need help Sumifs on different sheet with criteria

    I don't understand your requirement: how can it sum the hours in "Mitrabeiter" as there is only one entry shown for a given "Manpower"?

    If you select a name in either of the 2 sheets, you will get the same result (?) from "Mitrabeiter".

    You need to show some example results

    Bebo's answer makes more sense to me: SUM all the sheets in "Mitrabeiter" for each name
    Last edited by JohnTopley; 10-15-2021 at 04:26 AM.
    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

  5. #5
    Registered User
    Join Date
    10-14-2021
    Location
    Germany
    MS-Off Ver
    2016
    Posts
    5

    Re: Need help Sumifs on different sheet with criteria

    thx for your answer but how can i sum all he sheets in Mitarbeiter for each name?
    I have tried the formula from bebo but it wont work.
    Thx in Advance!!

  6. #6
    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,215

    Re: Need help Sumifs on different sheet with criteria

    What does not work mean as it works in the file posted by Bebo? Do you get an error message?

    Perhaps change commas "," in the formula to semi-colons ";" .

  7. #7
    Registered User
    Join Date
    10-14-2021
    Location
    Germany
    MS-Off Ver
    2016
    Posts
    5

    Re: Need help Sumifs on different sheet with criteria

    I dont understand what this means : G2:G3 contains list of sheet names. it can be expanded accross multi dates.

  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,215

    Re: Need help Sumifs on different sheet with criteria

    G2:G3 are your sheet names which are used to retrieve data from each sheet in your workbook. As you add more sheets, you add the sheet names in G4 down and change the range in the formula below which SUMs all sheets

    =IF(A2="","",SUMPRODUCT(SUMIF(INDIRECT("'"&$G$2:$G$3&"'!$K$4:$K$12"),"*"&$A2&"*",INDIRECT("'"&$G$2:$G$3&"'!$j$4:$j$12"))))

    Alternative is to have a named range for sheet names: I called it "Sheets"

    =IF(A2="","",SUMPRODUCT(SUMIF(INDIRECT("'"&Sheets&"'!$K$4:$K$12"),"*"&$A2&"*",INDIRECT("'"&Sheets&"'!$j$4:$j$12"))))
    Attached Files Attached Files

  9. #9
    Registered User
    Join Date
    10-14-2021
    Location
    Germany
    MS-Off Ver
    2016
    Posts
    5

    Re: Need help Sumifs on different sheet with criteria

    Thank you so much bith off you it works.
    And it is for me an extra kick to learn excel.
    Thanks all for your time!!

  10. #10
    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,215

    Re: Need help Sumifs on different sheet with criteria

    You're welcome.

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as 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. Replies: 1
    Last Post: 04-09-2021, 11:09 AM
  2. [SOLVED] Usine sumifs to change criteria range column based on dynamic criteria
    By Luiscarlos in forum Excel General
    Replies: 5
    Last Post: 11-19-2020, 09:33 AM
  3. Replies: 0
    Last Post: 08-22-2017, 03:49 PM
  4. Replies: 5
    Last Post: 10-03-2016, 03:39 AM
  5. Fill arrays from sheet / SUMIFS / create & fill table based on multiple criteria
    By Dimitris254 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-03-2016, 09:43 AM
  6. Replies: 3
    Last Post: 11-21-2012, 04:57 PM
  7. Replies: 1
    Last Post: 05-16-2011, 05:00 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