+ Reply to Thread
Results 1 to 5 of 5

Time vs Rate/value

  1. #1
    Registered User
    Join Date
    10-30-2013
    Location
    Shepparton, Australia
    MS-Off Ver
    Excel 2008
    Posts
    2

    Time vs Rate/value

    I'm not sure that this can be done.

    I have a spreadsheet with 2 work books, one is where the data is entered, and the second is where the data is to be calculated from. In the first work book, if was to enter "start time"06:00 and "end time" 09:00, I need it to select the values in between those times on a specific day in the second worksheet, and give me an average rate, and then for that rate to then appear in the rate coloumn in the first workbook.

    Can this be done?
    Attached Files Attached Files

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

    Re: Time vs Rate/value

    Some confusion over terminology here - you have two workSHEETS within one workBOOK, as a workbook is an Excel file.

    However, I'm not sure where you would enter the start time and the end time in the Rate Card sheet, or where you would expect the result of any calculation to appear in the Booking Summary sheet. Can you be a bit more explicit, by providing a few examples?

    Pete

  3. #3
    Registered User
    Join Date
    10-30-2013
    Location
    Shepparton, Australia
    MS-Off Ver
    Excel 2008
    Posts
    2

    Re: Time vs Rate/value

    Sorry, I'm still trying to get my head around this also.

    I have attached an updated booking summary.

    What I would like to do is, under "start time"" in the first worksheet, is enter a start time, for example 09:00, and then under "end time" enter the end time, for example 10:30. Say I was trying to book a commercial to run between those times. So I would have a start time and end time of when the commercial could play.

    And from entering that data it would then select the "rates" from the second worksheet from between those times. So from across the 7 days from 09:00 to 10:30 it would calculate the average from between those time zones and then give me a result in the first worksheet under the rate column.

    And then further on in the first work sheet, if you where to enter a number, such as "2" under the day you would like to book a commercial, the formulas we have created in start time and end time would then only select the day we have entered and calculate the rates between 09:00 to 10:30 on for example, wednesday.

    booking sheet template.xlsx

  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,837

    Re: Time vs Rate/value

    You have a lot of cells formatted as Text, including the times in your lookup table. I'll have to clear your file up a bit before I can work with it.

    If your end time is 10:30, do you want to include that row in the average rate, or just the rows for 9:00, 9:30, and 10:00 ?

    Pete

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

    Re: Time vs Rate/value

    Okay, I've tidied up your workbook (attached). This formula in E12 gives the average rate for the period chosen:

    =IF(OR(B12="",C12=""),0,AVERAGE(INDEX('Rate Card'!$B$2:$H$61,MATCH(B12,'Rate Card'!$A$2:$A$61,0),):INDEX('Rate Card'!$B$2:$H$61,MATCH(C12,'Rate Card'!$A$2:$A$61),)))

    This is then copied down. I've also put a formula in the duration column.

    I'm not sure what you mean in your last statement. Are you not making use of the average rate? I think you would need another block of 32 columns further to the right to calculate the cost for each time-slot booked for each day.

    Hope this helps.

    Pete
    Attached Files Attached Files

+ 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] Time Sheet Formula - different rate at different times
    By toxic27 in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 04-10-2020, 08:08 AM
  2. Shift time & penalty rate formulas
    By EWATR in forum Excel General
    Replies: 3
    Last Post: 01-20-2015, 10:32 AM
  3. 1st time pass rate percentage?
    By Berty25 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-08-2013, 06:53 AM
  4. Multiplying Time by rate
    By Josh_123456 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-22-2006, 08:34 PM
  5. Calculating a rate for elapsed time?
    By Keith in forum Excel General
    Replies: 8
    Last Post: 05-18-2005, 05:06 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