+ Reply to Thread
Results 1 to 10 of 10

Should I use Sumifs or Sum product.

  1. #1
    Registered User
    Join Date
    02-18-2014
    Location
    Florida
    MS-Off Ver
    Excel 2007
    Posts
    14

    Should I use Sumifs or Sum product.

    Hello All,

    I am trying to calculate the total amount of kilos for a specific date with a given time range.
    As well as the average time they have been handled with in the same specifications.

    attached is a sample sheet of the info I am working with but I cant seem to get the formulas to work.

    Can someone please help!!!!!!!

    Thank you! Book1.xlsx

  2. #2
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,435

    Re: Should I use Sumifs or Sum product.

    Some ranges in your SUMIFS are different: change all to row 14 to 41
    B2=SUMIFS($G$14:$G$41,$B$14:$B$41,">=08:00:00",$D$14:$D$41,"<=16:30:00",$A$14:$A$41,B1)
    Quang PT

  3. #3
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Should I use Sumifs or Sum product.

    you can also use cell references for the time


    =SUMIFS($G$14:$G$41,$B$14:$B$41,">="&$I$4,$D$14:$D$41,"<="&$I$5,$A$14:$A$41,B1)
    If you like my answer please click on * Add Reputation
    Don't forget to mark threads as "Solved" if your problem has been resolved

    "Nothing is so firmly believed as what we least know."
    --Michel de Montaigne

  4. #4
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,690

    Re: Should I use Sumifs or Sum product.

    You need to make sure that the ranges are the same - for example, in B2:

    =SUMIFS($G$14:$G$41,$B$14:$B$41,">=08:00:00",$D$14:$D$41,"<=16:30:00",$A$14:$A$41,B1)

    (you had $13:..$40 for the first 3 ranges).

    Hope this helps.

    Pete

  5. #5
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,435

    Re: Should I use Sumifs or Sum product.

    BTW, if there is "over midnight" counted, date and time range must be combinated by SUMPRODUCT, like this:
    =SUMPRODUCT((date_range+time_range>=date1+time1)*(date_range+time_range<=date2+time2)*value_range)

  6. #6
    Registered User
    Join Date
    02-18-2014
    Location
    Florida
    MS-Off Ver
    Excel 2007
    Posts
    14

    Re: Should I use Sumifs or Sum product.

    Ok perfect so that worked great. now another question , if you look at the next range the times go over until the next day. It should not give me any problems with calculating the total amount of kilos but it will with the average times. Im guessing on the average column (E) I need to insert a formula so that it will go over to the next day and still give me the same time kilos were handled..

    any ideas on that formula?

    Thanks so much for all your help.

  7. #7
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,690

    Re: Should I use Sumifs or Sum product.

    Bebo has already anticipated that question - see Post #5.

    Pete

  8. #8
    Registered User
    Join Date
    02-18-2014
    Location
    Florida
    MS-Off Ver
    Excel 2007
    Posts
    14

    Re: Should I use Sumifs or Sum product.

    Thank you!!!! I just skipped right over it!

  9. #9
    Registered User
    Join Date
    02-18-2014
    Location
    Florida
    MS-Off Ver
    Excel 2007
    Posts
    14

    Re: Should I use Sumifs or Sum product.

    Now as I am not exactly the pro at this can you show me how it works in the book I attached. Sorry. I still get really confused with the sumproduct formula.

    Thanks!!!!!

  10. #10
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,435

    Re: Should I use Sumifs or Sum product.

    OK.
    Try in B2:
    Please Login or Register  to view this content.
    B3:
    Please Login or Register  to view this content.
    Adjust time for B4 and B5

+ 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. SUMIFS Puzzle - Trying to avoid adding multiple SUMIFS to get valid result
    By haldavid in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 01-09-2013, 03:42 PM
  2. [SOLVED] Sumifs, problem with the formula: =sumifs(c10:c200,<=today(),0)
    By Faustocruz in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 10-08-2012, 04:26 AM
  3. [SOLVED] Find Product Details in Another Sheet based on Product ID and Copy some Fields From there
    By kevalkothari in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 08-29-2012, 10:43 AM
  4. [SOLVED] Need Function that will find ordered product, and display the product code in a 2nd workbk
    By rollerden in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-21-2012, 08:52 AM
  5. [SOLVED] SUMIFS to total product A and B
    By Subject_Name_Here in forum Excel General
    Replies: 5
    Last Post: 05-26-2012, 11:56 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