+ Reply to Thread
Results 1 to 6 of 6

SUMIF or SUMPRODUCT multiple conditions formula

  1. #1
    Forum Contributor
    Join Date
    02-19-2013
    Location
    UK
    MS-Off Ver
    Excel 2019
    Posts
    677

    SUMIF or SUMPRODUCT multiple conditions formula

    Hi all,

    I use the following formula to sum values if they fall between 05:00 to 06:00 hrs.
    Where column 'B' is time and Column C arte values.
    It works great.

    Please Login or Register  to view this content.
    I want to add multiple conditions to sum.
    I have attached the test file.

    If anyone can kindly help please.

    Kind regards

    Attached Files Attached Files

  2. #2
    Forum Expert NeedForExcel's Avatar
    Join Date
    03-16-2013
    Location
    Pune, India
    MS-Off Ver
    Excel 2016:2019, MS 365
    Posts
    3,873

    Re: SUMIF or SUMPRODUCT multiple conditions formula

    Here!

    In L21 - =SUMPRODUCT(--(HOUR(B2:B11)=5),--(C2:C11=1),D2:D11)

    In L23 - =SUMPRODUCT(--(HOUR(B2:B11)=5),--(C2:C11=1),--(D2:D11=1),E2:E11)
    Cheers!
    Deep Dave

  3. #3
    Forum Expert
    Join Date
    12-09-2014
    Location
    Trakai, Lithuania
    MS-Off Ver
    2016
    Posts
    1,296

    Re: SUMIF or SUMPRODUCT multiple conditions formula

    Formula: copy to clipboard
    Please Login or Register  to view this content.

  4. #4
    Forum Contributor
    Join Date
    02-19-2013
    Location
    UK
    MS-Off Ver
    Excel 2019
    Posts
    677

    Re: SUMIF or SUMPRODUCT multiple conditions formula

    Hi Need for excel
    Great work indeed.
    All works well.
    Just one question.... If any of the column that I am referring to is a date then ,
    To refer to particular month the formula will be ?? example is for Month of May = 5

    Please Login or Register  to view this content.
    Is this correct?
    I am closing the thread as solved.
    I have clicked *** to thank you.

    Also Czeslaw , Thank you for your help. It also works well.
    I have clicked *** to thank you.
    Thanks again all
    Kind regards

  5. #5
    Forum Expert cbatrody's Avatar
    Join Date
    04-15-2014
    Location
    Dubai
    MS-Off Ver
    Microsoft Office 365 ProPlus
    Posts
    2,136

    Re: SUMIF or SUMPRODUCT multiple conditions formula

    Hi,

    You have dates in column A, so you need to modify your formula as following:

    =SUMPRODUCT(--(HOUR(B2:B11)=5),--(MONTH(A2:A11)=5),--(D2:D11=1),E2:E11)

  6. #6
    Forum Contributor
    Join Date
    02-19-2013
    Location
    UK
    MS-Off Ver
    Excel 2019
    Posts
    677

    Re: SUMIF or SUMPRODUCT multiple conditions formula

    Hi Cbatrody,
    Great help.
    It works well
    Thanks

+ 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] Sumproduct with multiple conditions
    By rowena229 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 06-16-2014, 09:36 AM
  2. Excel formula to sumproduct but with multiple conditions
    By Dani8826 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-07-2014, 04:25 AM
  3. Multiple (3) SUMPRODUCT conditions
    By timjames in forum Excel General
    Replies: 2
    Last Post: 11-03-2011, 03:17 PM
  4. SUMIF or an array formula - matching multiple conditions
    By Jason_2112 in forum Excel General
    Replies: 2
    Last Post: 01-14-2009, 06:03 PM
  5. 3 Conditions - SUMIF or SUMPRODUCT or...?
    By Madrabbitwoman in forum Excel General
    Replies: 15
    Last Post: 01-06-2009, 01:30 PM
  6. Sum with multiple conditions:SUMPRODUCT
    By will.00 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 06-06-2007, 03:51 AM
  7. [SOLVED] Using multiple conditions in formula like countif(), sumif()
    By 0-0 Wai Wai ^-^ in forum Excel General
    Replies: 14
    Last Post: 11-10-2005, 04:10 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