+ Reply to Thread
Results 1 to 6 of 6

sum of values between 2 time band

  1. #1
    Registered User
    Join Date
    02-27-2012
    Location
    UK
    MS-Off Ver
    Excel 365
    Posts
    65

    sum of values between 2 time band

    I some how managed to solve myself after searching & looking and finally got help through one of the DonkeyOte old post.


    i have a formula in my sheet which works well for time band beginning with a smaller time band & ends with a larger time band.

    i can have a sum based for time value between 8:00 PM to 11:00 PM but if values ranges between 8:00 PM to 1:00 AM it gives 0 values.

    i tried with couple of formula but both couldn't calculate the desired result.

    =SUMIFS(AK9:AK39,A9:A39,">="&W42,A9:A39,"<"&Z42)

    =SUMPRODUCT(--($A$3:$A$10>=E12), --($A$3:$A$10<F12), $K$3:$K$10)

    can any one look into the attached sheet. i have put expected result along with time band values.
    Attached Files Attached Files
    Last edited by tabkaz; 03-20-2015 at 09:43 AM.

  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: sum of values between 2 time band

    Hi,

    Give this a try -

    Please Login or Register  to view this content.
    Cheers!
    Deep Dave

  3. #3
    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: sum of values between 2 time band

    I am sorry, that might returning incorrect answer.. Can you let me know if the formula is OK?
    Last edited by NeedForExcel; 03-20-2015 at 05:21 AM.

  4. #4
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.84 for Mac MS 365
    Posts
    8,499

    Re: sum of values between 2 time band

    how about this =SUMIFS(B9:B15,A9:A15,">=8:00:00 pm",A9:A15,"<=11:00:00 pm") ?
    Make contributors happy, click on the "* Add Reputation" as a way to say thank you.
    Sam Capricci

  5. #5
    Registered User
    Join Date
    02-27-2012
    Location
    UK
    MS-Off Ver
    Excel 365
    Posts
    65

    Re: sum of values between 2 time band

    I have chked but its not working when i change time band. for example if i change time to 17:00 to 01:00 its showing 56 sum whereas it should include all the values because its covering all time slot so sum must be 96.

  6. #6
    Registered User
    Join Date
    02-27-2012
    Location
    UK
    MS-Off Ver
    Excel 365
    Posts
    65

    Re: sum of values between 2 time band

    for time range between PM to PM it works fine but if change to PM to AM it could not calculate the sum. the formula u posted is already being used by me but for time range of PM to PM.

+ 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. Replies: 19
    Last Post: 05-11-2012, 10:40 AM
  2. Varifying whether 2 imes encompass a time band
    By fraserjamie in forum Excel General
    Replies: 4
    Last Post: 09-25-2008, 06:28 AM
  3. Age Band Formula
    By newbie13 in forum Excel General
    Replies: 4
    Last Post: 05-01-2008, 10:48 AM

Tags for this Thread

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