+ Reply to Thread
Results 1 to 5 of 5

Sum based on 3 criteria with 1 criteria range spanning over multiple columns

  1. #1
    Registered User
    Join Date
    09-02-2019
    Location
    Stockholm
    MS-Off Ver
    Windows 10
    Posts
    2

    Sum based on 3 criteria with 1 criteria range spanning over multiple columns

    Hi,

    I need to sum the hours of a column based on multiple criteria. I tried a SUMIFS function but the problem is that the criteria range for one of the criterion spans over more than one column. The information is imported through a query so therefore it's in a different sheet. See attached file.

    So based on an input cell "Enter project nb" I want it to summarise all the hours based on 1) the project nb 2) the resource 3) Sprint week nb.
    When a project nb belongs to more than one sprint week, the export automatically divides it as can be seen in the file.

    Not sure how to proceed
    Attached Files Attached Files
    Last edited by f_nm; 09-02-2019 at 03:33 PM.

  2. #2
    Forum Expert
    Join Date
    09-25-2015
    Location
    Milan Italy
    MS-Off Ver
    office 365
    Posts
    1,781

    Re: Sum based on 3 criteria with 1 criteria range spanning over multiple columns

    It would help if you attached a sample Excel workbook.

    To do this, click on Go Advanced (below the Edit Window) while you are composing a reply, then scroll down to and click on Manage Attachments and the Upload window will open. Click on Browse and navigate to (and double-click) the file icon that you want to attach, then click on Upload and then on Close this Window to return to the Edit window. When you have finished composing your post, click on Submit Post.

    Do not try to use the Paperclip icon, as this does not work on this forum.

  3. #3
    Registered User
    Join Date
    09-02-2019
    Location
    Stockholm
    MS-Off Ver
    Windows 10
    Posts
    2

    Re: Sum based on 3 criteria with 1 criteria range spanning over multiple columns

    Thanks! I've adjusted it now Attached it in the post.
    Last edited by f_nm; 09-02-2019 at 03:36 PM.

  4. #4
    Forum Expert
    Join Date
    12-11-2011
    Location
    Netherlands
    MS-Off Ver
    office 365
    Posts
    3,289

    Re: Sum based on 3 criteria with 1 criteria range spanning over multiple columns

    With an extra column and this sumifs formula it would fix your problem (I hope)
    Please Login or Register  to view this content.
    Attached Files Attached Files
    Willem
    English is not my native language sorry for errors
    Please correct me if I'm completely wrong

  5. #5
    Forum Expert
    Join Date
    09-25-2015
    Location
    Milan Italy
    MS-Off Ver
    office 365
    Posts
    1,781

    Re: Sum based on 3 criteria with 1 criteria range spanning over multiple columns

    Sheet1

    C6=SUMPRODUCT((Sheet2!$B$3:$B$7=Sheet1!$B$2)*(Sheet2!$E$3:$E$7=Sheet1!$B6)*(Sheet2!$F$3:$H$7=Sheet1!C$5)*(Sheet2!$D$3:$D$7))
    Last edited by CARACALLA; 09-02-2019 at 04:40 PM.

+ 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] sum multiple columns based on 3 criteria
    By rossi_69 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-08-2017, 03:16 PM
  2. Replies: 1
    Last Post: 09-03-2013, 07:41 PM
  3. [SOLVED] Add a 1 based on multiple criteria in other columns
    By jbear536 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 07-30-2013, 01:28 PM
  4. [SOLVED] Copy/Paste multiple columns as values based on another columns criteria
    By Dgp2012 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 07-28-2013, 06:50 AM
  5. Replies: 10
    Last Post: 02-19-2013, 12:05 PM
  6. Replies: 0
    Last Post: 09-15-2012, 02:56 AM
  7. Criteria based on multiple columns
    By mjhopler in forum Excel General
    Replies: 4
    Last Post: 10-22-2009, 03:43 PM

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