+ Reply to Thread
Results 1 to 12 of 12

Calculate total number on multiple criteria

  1. #1
    Forum Contributor
    Join Date
    09-30-2014
    Location
    Singapore
    MS-Off Ver
    2010
    Posts
    266

    Calculate total number on multiple criteria

    Hi
    I have a report with data on the first worksheet. I need to calculate the total in worksheet 2 based on the criteria of site in column A and shown in the helper column 2 (Create date). The total should be for the current month of may.
    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,152

    Re: Calculate total number on multiple criteria

    So we are looking at "Completion Date" not "Create Date"?

  3. #3
    Forum Contributor
    Join Date
    09-30-2014
    Location
    Singapore
    MS-Off Ver
    2010
    Posts
    266

    Re: Calculate total number on multiple criteria

    We are looking at create date.

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

    Re: Calculate total number on multiple criteria

    .. And Helper1 and Helper 2 are the same date: why do we need the helper data?

  5. #5
    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,152

    Re: Calculate total number on multiple criteria

    None of the "Create dates" are in May so your expected results are wrong (if you do mean created in May).

  6. #6
    Forum Contributor
    Join Date
    09-30-2014
    Location
    Singapore
    MS-Off Ver
    2010
    Posts
    266

    Re: Calculate total number on multiple criteria

    Sry for the confusion. Yes we can use helper 1 for the create date.

  7. #7
    Forum Contributor
    Join Date
    09-30-2014
    Location
    Singapore
    MS-Off Ver
    2010
    Posts
    266

    Re: Calculate total number on multiple criteria

    I have readjusted the data as attached.
    Attached Files Attached Files

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

    Re: Calculate total number on multiple criteria

    Try

    in C3

    =SUMPRODUCT((worksheet1!$A$2:$A$100=$B3)*(MONTH(worksheet1!$B$2:$B$100)=5))

    Copy down

    Change 5 to required month number

  9. #9
    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,152

    Re: Calculate total number on multiple criteria

    ..and make sure "Site" is consistent : "Site1" vs "Site 1"

  10. #10
    Forum Contributor
    Join Date
    09-30-2014
    Location
    Singapore
    MS-Off Ver
    2010
    Posts
    266

    Re: Calculate total number on multiple criteria

    Hi, It worked. Can I check if I need to add an additonal criteria in this formula to not include "cancelled" conditions in column O, where would i add this? There are total of 3 conditions (Open/Closed/Cancelled)

  11. #11
    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,152

    Re: Calculate total number on multiple criteria

    Try

    =SUMPRODUCT((worksheet1!$A$2:$A$100=$B3)*(MONTH(worksheet1!$B$2:$B$100)=5)*(worksheet1!$O$2:$O$100<>"Cancelled"))

    and I suggest you make column O entries using Data Validation LIST with Open, Closed, Cancelled

  12. #12
    Forum Contributor
    Join Date
    09-30-2014
    Location
    Singapore
    MS-Off Ver
    2010
    Posts
    266

    Re: Calculate total number on multiple criteria

    Thanks John. That helps.

+ 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. Calculate total number of submissions
    By Shamz41 in forum Excel General
    Replies: 1
    Last Post: 01-16-2017, 06:14 AM
  2. [SOLVED] How to get total price with multiple criteria based on (ORDER NUMBER) and (DATE)?
    By yaseralhosani in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 12-06-2016, 11:20 PM
  3. [SOLVED] total number of months calculate
    By arindamsenaxa in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 12-07-2015, 06:01 AM
  4. Calculate % of total based on date criteria
    By ikench in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 08-25-2015, 01:09 PM
  5. [SOLVED] COUNTIF number to calculate multiple criteria
    By warrior2411 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 04-02-2015, 01:46 PM
  6. Calculate number of departures between dates based on multiple criteria
    By IndigoIrish in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 12-18-2012, 03:22 PM
  7. Multiple criteria sum to calculate total amount per annum"
    By chunlee in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-27-2010, 08:30 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