+ Reply to Thread
Results 1 to 10 of 10

Sumifs multiple conditions

  1. #1
    Registered User
    Join Date
    02-16-2015
    Location
    Australia
    MS-Off Ver
    2010
    Posts
    6

    Sumifs multiple conditions

    Hi All,

    I have 4 columns
    a= Date
    b = Locations (irrelevant for this formula)
    c = type
    d = qty

    Im and trying to do a formula which will sum the qty column if date is a Monday to Saturday and the type column says WHB.

    I have tried

    =SUMIFS(D350:D370,A350:A370,WEEKDAY(A350:A370,2)<7,C350:C370,"WHB")

    It just returns zero but i know there is data there that satisfies the conditions, im thinking it has something to do with my weekday function.

    Any help would be appreciated.

    Thanks

  2. #2
    Valued Forum Contributor Naveed Raza's Avatar
    Join Date
    11-04-2012
    Location
    India, Hyderabad
    MS-Off Ver
    Excel, Access 2007/2010
    Posts
    1,338

    Re: Sumifs multiple conditions

    Hi Welcome to Excel Forum

    could you please provide sample workbook
    Thanks - Naveed
    -----------------------------
    If the suggestion helps you, then Click * to Add Reputation
    To Attach File: Go Advanced>>Manage Attachments>>Add Files (In Top Right Corner)>>SelectFiles>>.........Locate Your File(s)>>Upload Files>>Done (In Bottom Right)
    1. Use [code] code tags [\code]. It keeps posts clean, easy-to-read, and maintains VBA formatting.
    2. If you are happy with a solution to your problem, mark the thread as [SOLVED] using the tools at the top.

  3. #3
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,904

    Re: Sumifs multiple conditions

    =SUMPRODUCT(D350:D370,--(WEEKDAY(A350:A370,2)<7),--(C350:C370="WHB"))
    Try this
    Samba

    Say thanks to those who have helped you by clicking Add Reputation star.

  4. #4
    Registered User
    Join Date
    02-16-2015
    Location
    Australia
    MS-Off Ver
    2010
    Posts
    6

    Re: Sumifs multiple conditions

    TEST.xlsx

    Hope this works :/

  5. #5
    Registered User
    Join Date
    02-16-2015
    Location
    Australia
    MS-Off Ver
    2010
    Posts
    6

    Re: Sumifs multiple conditions

    you are amazing

    thankyou so much

  6. #6
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,904

    Re: Sumifs multiple conditions

    you are welcome and thanks for your feedback

  7. #7
    Registered User
    Join Date
    02-16-2015
    Location
    Australia
    MS-Off Ver
    2010
    Posts
    6

    Re: Sumifs multiple conditions

    So, what if it could say either WHB or STB? inconjunction with the date condition

  8. #8
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,904

    Re: Sumifs multiple conditions

    =sumproduct((d350:d370)*(weekday(a350:a370,2)<7)*(c350:c370={"whb","stb"}))
    try this

  9. #9
    Registered User
    Join Date
    02-16-2015
    Location
    Australia
    MS-Off Ver
    2010
    Posts
    6

    Re: Sumifs multiple conditions

    again thankyou

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

    Re: Sumifs multiple conditions

    See the attached file.

    I uses several helpcolumns to select in a pivot table.

    The pivot table is on the sheet pivot table.
    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.

+ 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] SUMIFS with multiple conditions Formula
    By rz6657 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 02-09-2015, 03:13 PM
  2. [SOLVED] Sumifs or Sumproduct With Multiple Conditions Help Please!
    By geepee in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-01-2013, 09:27 AM
  3. Multiple conditions - SumProduct, SumIfs, CountIfs - Which do I need?
    By Carcophan in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-08-2013, 01:43 PM
  4. Sum Mulitple Column based on the multiple Conditions using sumifs function
    By JEETKAMALARORA in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 12-20-2012, 03:24 AM
  5. sumifs multiple conditions stuck
    By kieranbop in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 10-31-2011, 07:13 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