Results 1 to 2 of 2

check a cell for a certain time and day of week

Threaded View

  1. #1
    Registered User
    Join Date
    06-18-2012
    Location
    rsa
    MS-Off Ver
    Excel 2007
    Posts
    18

    check a cell for a certain time and day of week

    hi - please help.

    I have attached an example spread sheet. I have a column with date and time. I am trying to calculate the cost of electricity for each hour. The price is different based on the time of day and the day of the week.

    so I need to check the date/time column, and if its a weekday, and between 7am and 10am I must multiply the kWh column with the electricity price, which in a separate table. there is a different price on weekdays between 7am and 10an, then again a different price between 10am and 6pm and so forth.

    does anyone know how to do this?




    count
    15 Mins
    Time and Date Date Day End Time kWh Cost Cosr (no Div0) Total kWh Cost
    1900-01-05 12:00 1900-January Thursday 12:00 PM 0.00 R -
    1900-01-07 12:00 1900-January Saturday 12:00 PM 0.00
    1900-01-09 12:00 1900-January Monday 12:00 PM 0.00
    1900-01-11 12:00 1900-January Wednesday 12:00 PM 0.00
    1900-01-01 12:00 1900-January Sunday 12:00 PM 0.00
    1900-01-03 12:00 1900-January Tuesday 12:00 PM 0.00 PRICE
    1900-01-05 12:00 1900-January Thursday 12:00 PM 0.00 ` Low High
    1900-01-07 12:00 1900-January Saturday 12:00 PM 0.00 Peak R 1.00 R 4.00
    1900-01-09 12:00 1900-January Monday 12:00 PM 0.00 Standard R 2.00 R 5.00
    1900-01-11 12:00 1900-January Wednesday 12:00 PM 0.00 Off Peak R 3.00 R 6.00
    1900-01-01 12:00 1900-January Sunday 12:00 PM 0.00
    1900-01-03 12:00 1900-January Tuesday 12:00 PM 0.00
    1900-01-05 12:00 1900-January Thursday 12:00 PM 0.00
    1900-01-07 12:00 1900-January Saturday 12:00 PM 0.00
    1900-01-09 12:00 1900-January Monday 12:00 PM 0.00
    1900-01-11 12:00 1900-January Wednesday 12:00 PM 0.00
    1900-01-01 12:00 1900-January Sunday 12:00 PM 0.00
    1900-01-03 12:00 1900-January Tuesday 12:00 PM 0.00
    1900-01-05 12:00 1900-January Thursday 12:00 PM 0.00
    1900-01-07 12:00 1900-January Saturday 12:00 PM 0.00
    1900-01-09 12:00 1900-January Monday 12:00 PM 0.00
    1900-01-11 12:00 1900-January Wednesday 12:00 PM 0.00
    1900-01-01 12:00 1900-January Sunday 12:00 PM 0.00
    1900-01-03 12:00 1900-January Tuesday 12:00 PM 0.00
    Attached Files Attached Files
    Last edited by garyfahy; 04-16-2014 at 07:43 AM.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Complicated Formula (to me)... Please help
    By OdetteP in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 08-12-2013, 04:06 PM
  2. Need a complicated IF formula (maybe?)
    By lroffler in forum Excel General
    Replies: 2
    Last Post: 10-10-2011, 01:42 PM
  3. IF formula help..little bit complicated
    By jgy6000 in forum Excel General
    Replies: 1
    Last Post: 03-02-2011, 09:13 AM
  4. complicated if then formula...need help
    By LincAg in forum Excel General
    Replies: 3
    Last Post: 05-25-2006, 01:19 PM
  5. Complicated formula
    By sixwest in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 09-08-2005, 05:05 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