+ Reply to Thread
Results 1 to 5 of 5

Help with SUMIFS or SUMPRODUCT

  1. #1
    Registered User
    Join Date
    02-09-2015
    Location
    Erie, PA
    MS-Off Ver
    2013
    Posts
    17

    Help with SUMIFS or SUMPRODUCT

    I am attempting to sum column C cells if column B cells fall between specific time of day.
    My formula =SUMIFS(C1:C12753,B1:B12753,">=10:00:00 AM",B1:B12753,"<=11:00:00 AM") regardless how I change the times returns 0.Book1.xlsx

  2. #2
    Forum Expert Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2013, 2016, O365
    Posts
    6,996

    Re: Help with SUMIFS or SUMPRODUCT

    Col_B contains DATES and time.
    Try something like this:
    Please Login or Register  to view this content.
    Is that something you can work with?
    Ron
    Former Microsoft MVP - Excel (2006 - 2015)
    Click here to see the Forum Rules

  3. #3
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Help with SUMIFS or SUMPRODUCT

    The issue is that column B has a date attached to it also even though it is formatted not to show it. You need to strip that date off first. Try SUMPRODUCT

    =SUMPRODUCT($C$1:$C$12753, --(MOD($B$1:$B$12753,1)>="10:00 AM"+0), --(MOD($B$1:$B$12753,1)<="11:00 AM"+0))
    Does that work for you?
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  4. #4
    Registered User
    Join Date
    02-09-2015
    Location
    Erie, PA
    MS-Off Ver
    2013
    Posts
    17

    Re: Help with SUMIFS or SUMPRODUCT

    Quote Originally Posted by Ron Coderre View Post
    Col_B contains DATES and time.
    Try something like this:
    Please Login or Register  to view this content.
    Is that something you can work with?
    That appears to be working...Thank You!

  5. #5
    Forum Expert Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2013, 2016, O365
    Posts
    6,996

    Re: Help with SUMIFS or SUMPRODUCT

    We stumbled on a math error in Excel that happens occaissionally, probably due to the limitations of binary math.

    In your list, two entries have a time of 10 AM (B3151 and B4356) and one entry has a time of 11 AM (B7993)...BUT they are not included in the total!

    If you apply the MOD function to those 10 AM items, it returns: 0.416666666664241
    Yet, the decimal value for 10 AM is: 0.416666666666667...so, no match

    Consequently, the total is off by 64 (2 + 26 + 36)
    It should be: 88,206

    This formula returns the correct value:
    Please Login or Register  to view this content.

+ 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 or Sumifs
    By adamsc57 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-15-2015, 09:10 PM
  2. [SOLVED] SUMPRODUCT v SUMIFS
    By D_N_L in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 12-24-2013, 09:48 AM
  3. [SOLVED] SUMPRODUCT(SUMIFS) How do I use them?
    By boon-yao.tek in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 08-20-2013, 05:10 AM
  4. sumifs or sumproduct
    By goodboy in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-10-2013, 09:53 AM
  5. Sumproduct/sumifs?
    By MjRmatt in forum Excel General
    Replies: 4
    Last Post: 07-30-2010, 08:09 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