+ Reply to Thread
Results 1 to 10 of 10

SumIF with mutiple criteria

  1. #1
    Registered User
    Join Date
    09-05-2017
    Location
    London
    MS-Off Ver
    2013
    Posts
    17

    SumIF with mutiple criteria

    Currently got sumif (=SUMIF(A3:A100,T2,D3:D100)) to workout how much of a product (listed in column A) has not been delivered on the first day of a 5 day working week (columns D, G, J, M, P) but am struggling to find how to sum for every subequent work day so i have an up todate figure of how much has not been sent. I am unable to use a final column to sum everything since these columns start off with a negative value for what is due and get adjusted based on expected and delivered figures in the adjacent columns
    Last edited by joey1; 09-05-2017 at 05:44 PM.

  2. #2
    Forum Expert
    Join Date
    03-23-2004
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    7,064

    Re: SumIF with mutiple criteria

    Not saying I'll answer this but can you post a sample file since you haven't specified enough info, e.g. what is T2 ?

    Post a sample spreadsheet with expected results, remove any sensitive data, create a mockup example if necessary.
    Use the Go Advanced option at the bottom of the page then scroll down to Manage Attachments as the "paperclip" method does not work on this forum.
    Regards
    Special-K

    Ensure you describe your problem clearly, I have little time available to solve these problems and do not appreciate numerous changes to them.

  3. #3
    Registered User
    Join Date
    09-05-2017
    Location
    London
    MS-Off Ver
    2013
    Posts
    17

    Re: SumIF with mutiple criteria

    Been busy so not had time to reply earlier but managed to solve it. Can someone check the attachement, in case there is any improvement i can make.
    Attached Files Attached Files
    Last edited by joey1; 10-31-2017 at 05:41 PM.

  4. #4
    Forum Expert leelnich's Avatar
    Join Date
    03-20-2017
    Location
    Delaware, USA
    MS-Off Ver
    Office 2016
    Posts
    2,807

    Re: SumIF with mutiple criteria

    Joey1- attachment unsuccessful.

    To attach a workbook:
    Click Edit Post (or just start a new reply.)
    Click Go Advanced
    Scroll down to Manage Attachments and click.
    Now click Browse, find your file, then click Upload. Simple!
    Clicking the Add Reputation star below helpful posts is a great way to show your appreciation.
    Please mark your threads as SOLVED upon conclusion (Thread Tools above Post # 1). - Lee

  5. #5
    Registered User
    Join Date
    09-05-2017
    Location
    London
    MS-Off Ver
    2013
    Posts
    17

    Re: SumIF with mutiple criteria

    Should work this time.

    Want to know if i can simplify the formula, as with some products i have 2 codes i have to use, which means i have to extend the formula to include this additional product code.
    Attached Files Attached Files
    Last edited by joey1; 11-09-2017 at 04:55 PM.

  6. #6
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,562

    Re: SumIF with mutiple criteria

    If I am understanding correctly then the following should yield the expected values:
    For "Ordered", D9:D11, use: =IF(C9="","",SUMPRODUCT((E$1:S$1<=A$1)*(RIGHT(E$2:S$2,5)="order")*(C$3:C$5=C9)*(E$3:S$5)))
    For "Delivered", E9:E11, use: =IF(C9="","",SUMPRODUCT((E$1:S$1<=A$1)*(RIGHT(E$2:S$2,3)="del")*(C$3:C$5=C9)*(E$3:S$5)))
    For "Discrepancy", F9:F11, use: =IF(C9="","",SUMPRODUCT((E$1:S$1<=A$1)*(E$2:S$2="Variance")*(C$3:C$5=C9)*(E$3:S$5)))
    For "Scheduled", G9:G11, use: =IF(C9="","",-SUMPRODUCT((E$1:S$1>=A$1)*(E$2:S$2="Variance")*(C$3:C$5=C9)*(E$3:S$5)))
    Let us know if you have any questions.
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

  7. #7
    Forum Expert leelnich's Avatar
    Join Date
    03-20-2017
    Location
    Delaware, USA
    MS-Off Ver
    Office 2016
    Posts
    2,807

    Re: SumIF with mutiple criteria

    Presuming these definitions apply:
    "Ordered" = scheduled to be delivered on or before today (D9 and down):
    Please Login or Register  to view this content.
    "Delivered" = actually delivered on or before today (E9 and down):
    Please Login or Register  to view this content.
    "Discrepancy" (F9 and down):
    Please Login or Register  to view this content.
    "Scheduled"= scheduled to be delivered in FUTURE (G9 and down):
    Please Login or Register  to view this content.
    Attached Files Attached Files

  8. #8
    Registered User
    Join Date
    09-05-2017
    Location
    London
    MS-Off Ver
    2013
    Posts
    17

    Re: SumIF with mutiple criteria

    leelnich, thats just what i was looking for.

    However how do i add another product code to formula? say for instance i want both product on the example sheet added together, as if they were the same product.


    Thanks

  9. #9
    Registered User
    Join Date
    09-05-2017
    Location
    London
    MS-Off Ver
    2013
    Posts
    17

    Re: SumIF with mutiple criteria

    solved it, by simply adding ($B$3:$B$5=$B10).

    Thanks again for the help.

  10. #10
    Forum Expert leelnich's Avatar
    Join Date
    03-20-2017
    Location
    Delaware, USA
    MS-Off Ver
    Office 2016
    Posts
    2,807

    Re: SumIF with mutiple criteria

    You're most welcome! If complete, please mark your thread as SOLVED (Thread Tools up top). Thanks -Lee

+ 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] COUNTIF mutiple criteria in a single range, but with mutiple ranges.
    By Janbi in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 12-19-2016, 06:31 AM
  2. Mutiple SUMIF conditions - help needed please
    By iantix in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 10-18-2016, 05:03 AM
  3. SUMIF totaling mutiple columns
    By scooterboygnu in forum Excel General
    Replies: 2
    Last Post: 09-01-2011, 05:14 AM
  4. SUMIF function with mutiple SUM_RANGE values
    By shep85 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 09-01-2010, 02:18 PM
  5. sum for mutiple returns - formula needed. sumif?
    By mheinmiller in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 11-11-2008, 06:17 PM
  6. Help please with sumif when mutiple ranges
    By Paul Marsh in forum Excel General
    Replies: 8
    Last Post: 09-01-2005, 10:12 PM
  7. SUMIF with Mutiple Ranges & Criteria
    By PokerZan in forum Excel General
    Replies: 5
    Last Post: 08-04-2005, 05:31 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