+ Reply to Thread
Results 1 to 3 of 3

Calculating on-peak and off-peak hours

  1. #1
    Registered User
    Join Date
    11-14-2013
    Location
    Sacramento
    MS-Off Ver
    Excel 2010
    Posts
    42

    Exclamation Calculating on-peak and off-peak hours

    Hello,

    I have an excel sheet that is includes generation (MWh) for an entire month. It is separated in days and in hours. I want to be able to calculate off-peak and on-peak MWh for the whole month. Off peak hours are from 11pm to 5am while on peak hours are from 5am-11pm. Also on Sundays, it’s off peak for the whole day. How can I calculate this on excel instead of doing each day individually.

    thread.PNG

  2. #2
    Forum Expert
    Join Date
    02-11-2014
    Location
    New York
    MS-Off Ver
    Excel 365 (Windows)
    Posts
    6,274

    Re: Calculating on-peak and off-peak hours

    Off-peak is

    =SUMPRODUCT(B2:B1000*(((E2:E1000>=23)+(E2:E1000<=5)+(WEEKDAY(A2:A1000)=7))>0))

    On-peak is =SUM(B:B)-cell with the formula above...
    Last edited by Bernie Deitrick; 05-22-2014 at 02:33 PM.
    Bernie Deitrick
    Excel MVP 2000-2010

  3. #3
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Calculating on-peak and off-peak hours

    This should get you started. I colour coded the off peak hours and the on peak hours. I have totals for both and a grand total.
    Attached Files Attached Files
    <---------If you like someone's answer, click the star to the left of one of their posts to give them a reputation point for that answer.
    Ron W

+ 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. Counting the peak & non peak hours between two dates?
    By zeroprobe in forum Excel General
    Replies: 3
    Last Post: 12-09-2013, 06:53 AM
  2. Replies: 5
    Last Post: 05-18-2013, 11:59 AM
  3. Calculating On-peak and Off-peak Hours
    By helloganesh in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 02-25-2013, 08:10 PM
  4. Replies: 1
    Last Post: 03-13-2006, 07:27 PM
  5. How to Calculate Peak and Off Peak Hours
    By nikolasp in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-01-2005, 12:00 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