+ Reply to Thread
Results 1 to 17 of 17

Time range formula

  1. #1
    Registered User
    Join Date
    12-09-2009
    Location
    Canada
    MS-Off Ver
    Excel 2003
    Posts
    6

    Time range formula

    Fist I want to say HI to all.

    and second yes I did searched in the forum and I couldn't find something like I need or maybe I did't know how to look for.

    I am trying to create a time formula for my own work i.e

    1 to 6 min = .1 (of an Hour)
    6 to 12 min = .2
    13 to 18 min = .3
    19 to 24 min = .4
    25 to 30 min = .5
    up to one hour

    @ 150 an hour

    So if I input in one row lets call it time 3 hours I will like in thenext row rate = 450
    1.2 hours =180
    6.5 hours = 950 etc

    any help will be appraciate

    Thanks

  2. #2
    Forum Expert Paul's Avatar
    Join Date
    02-05-2007
    Location
    Wisconsin
    MS-Off Ver
    2016/365
    Posts
    6,887

    Re: Time range formula

    Hi AGY, and welcome to the forum.

    How are you entering your time values? HH:MM:SS?

  3. #3
    Registered User
    Join Date
    12-09-2009
    Location
    Canada
    MS-Off Ver
    Excel 2003
    Posts
    6

    Re: Time range formula

    Paul thanks for your quick replay

    I am not sure if I understand your question. I am not very good with excel

    I am entering the values in minutes only up to 1 hour after that I count the hours to for example

    if i work between 19 to 24 minutes range I charge .4 of an Hour @150

    in a columm example will be

    Concept Time amount

    Review document .8 $120

    So I don't know how to work out this formula to get to the $120 because the range of time is 43 - 48 min = .8 Hour which = $120

    I hope this help better
    Last edited by DonkeyOte; 12-09-2009 at 04:00 AM. Reason: removed unnec. quote

  4. #4
    Forum Expert Paul's Avatar
    Join Date
    02-05-2007
    Location
    Wisconsin
    MS-Off Ver
    2016/365
    Posts
    6,887

    Re: Time range formula

    If you're already entering the number .8 into a cell, to get the correct value just use

    =150*B1

    Where B1 contains .8

    Or are you trying to calculate the .8 based on the number of minutes you input?

  5. #5
    Registered User
    Join Date
    12-09-2009
    Location
    Canada
    MS-Off Ver
    Excel 2003
    Posts
    6

    Re: Time range formula

    Yes I am trying to calculate the number basedon the numbers of minutes I input and the amount
    Last edited by DonkeyOte; 12-09-2009 at 03:59 AM. Reason: removed unnec. quote

  6. #6
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Time range formula

    If you gave some examples of your "entries" that would help as I think that's what's preventing you from getting a quick resolution.

    If you're saying you work 3 hours and 36 minutes and you enter that into say A1 as

    3:36

    then to get your total you could use something like

    Please Login or Register  to view this content.
    would generate 555

    change the values in in the line array to match your requirements - you must leave the 0 though... in the above 1-5 would generate 0.1, 6-12 -> 0.2 etc...

    It's a shame you need to specify like the above as obviously

    =150*(CEILING(A1*24,0.1))

    is a lot simpler but in this case would generate 540

  7. #7
    Registered User
    Join Date
    12-09-2009
    Location
    Canada
    MS-Off Ver
    Excel 2003
    Posts
    6

    Re: Time range formula

    I am attaching an example of the entries that I am doing. I am not entering any formulas yet.

    I hope it helps
    Attached Images Attached Images
    Last edited by Paul; 12-09-2009 at 10:50 PM. Reason: removed full post quotation

  8. #8
    Forum Expert darkyam's Avatar
    Join Date
    03-05-2008
    Location
    Houston, TX
    MS-Off Ver
    2013
    Posts
    2,191

    Re: Time range formula

    AGY, Paul's formula should work for you.

    DO, why would you want it to return $555? 36 minutes = .6 hours, 3.6 * 150 = $540.

  9. #9
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Time range formula

    Firstly - to avoid confusion - given Paul had outlined an approach for hour.decimal entry I opted to provide an example for hh:mm entry - just in case.

    Regards

    Quote Originally Posted by darkyam
    why would you want it to return $555? 36 minutes = .6 hours, 3.6 * 150 = $540
    OP stated

    1 to 6 min = .1 (of an Hour)
    6 to 12 min = .2
    13 to 18 min = .3
    19 to 24 min = .4
    25 to 30 min = .5
    and I assumed the intervals might not be even ie the 1 to 6 and 6 to 12 was unclear given to ceiling of 1 significance the minute break up would be:

    1 to 6 = .1
    7 to 12 = .2
    13 to 18 = .3
    19 to 24 = .4
    25 to 30 = .5
    so perhaps the OP made an error - I wasn't sure... and given OP provided only 5 bands I made up the remainder arbitrarily for sake of demo - to illustrate how a custom minute based calculation could be configured...

    If the 1-6/6-12 was an error (ie 1-6,7-12) then yes the bands I provided were inaccurate given they need not be customised but on that basis I also then provided an alternative which used the latter table (which would generate 540 as you mention).

    So to surmise, the first example was based upon non-standard minute splits (and people for whatever reason do adopt that approach on occasion), the latter was for standard approach.

  10. #10
    Forum Expert darkyam's Avatar
    Join Date
    03-05-2008
    Location
    Houston, TX
    MS-Off Ver
    2013
    Posts
    2,191

    Re: Time range formula

    I got that you were doing it for minutes. I was just curious how :36 came out to .7. That was all.

  11. #11
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Time range formula

    First off... I know you know this but I am just posting to try and account for any and all confusion caused by my prior post(s) ...

    Quote Originally Posted by d
    I was just curious how :36 came out to .7
    Via the MATCH.

    Please Login or Register  to view this content.
    The MATCH for minute 36 would return 8 from which we must subtract 1 (to account for min 0).
    We then divide the adjusted output by 10 to get the decimal.
    The decimal is then added to the hour to give us our value against which we multiply the hourly rate.

    And to reiterate the above is only a worthwhile approach if you wish to "customise" (from the norm) the minutes apportioned to each 10% of the "hour" - if not then there's zero need for it.

  12. #12
    Forum Expert darkyam's Avatar
    Join Date
    03-05-2008
    Location
    Houston, TX
    MS-Off Ver
    2013
    Posts
    2,191

    Re: Time range formula

    I do know, and I'm not trying to offend you or anything (seems like I have). I'm just asking mostly why your values in the Match are inconsistent. I understand the 6 instead of 7 from the OP's error, but after that, you go to 13, 19, 25, and 31, increasing by six each time, but then you increase by only 5 the next two times, and then back to 6 for the last two.

  13. #13
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Time range formula

    It was purely a random selection designed to be different from the standard apportionment of an hour.

    Not offended at all I think I simply failed to elaborate as to the fundamental purpose of the approach.

    In retrospect it would probably have made more sense to have picked a really odd subset - say front loaded like:

    {0,1,6,11,16,21,26,31,36,41,46}

    such that clear 46 min and above is treated as an hour and sub sets of the remaining 45 mins are apportioned accordingly (ie 21-25 mins treated as 0.5)

    Obviously the above is a fairly big shift away from the OP so it would have just added yet more confusion

  14. #14
    Registered User
    Join Date
    12-09-2009
    Location
    Canada
    MS-Off Ver
    Excel 2003
    Posts
    6

    Re: Time range formula

    Quote Originally Posted by DonkeyOte View Post
    Firstly - to avoid confusion - given Paul had outlined an approach for hour.decimal entry I opted to provide an example for hh:mm entry - just in case.

    Regards



    OP stated



    and I assumed the intervals might not be even ie the 1 to 6 and 6 to 12 was unclear given to ceiling of 1 significance the minute break up would be:



    so perhaps the OP made an error - I wasn't sure... and given OP provided only 5 bands I made up the remainder arbitrarily for sake of demo - to illustrate how a custom minute based calculation could be configured...

    If the 1-6/6-12 was an error (ie 1-6,7-12) then yes the bands I provided were inaccurate given they need not be customised but on that basis I also then provided an alternative which used the latter table (which would generate 540 as you mention).

    So to surmise, the first example was based upon non-standard minute splits (and people for whatever reason do adopt that approach on occasion), the latter was for standard approach.
    Sorry for my late late repaly. I was out of town. indeed I made a mistake the right number are
    1
    1-6= .1
    7 - 12 =.2
    13-18=.3
    19-24=.4
    25-30=.5
    31-36=.6
    37-42=.7
    43-48=.8
    49-54=.9
    55-60= 1.0


    Now I am a bit confused. which formula I need to use Paul's or D?
    Last edited by AGY; 12-15-2009 at 04:06 PM.

  15. #15
    Forum Expert darkyam's Avatar
    Join Date
    03-05-2008
    Location
    Houston, TX
    MS-Off Ver
    2013
    Posts
    2,191

    Re: Time range formula

    I think DO's formula of =150*(CEILING(A1*24,0.1)) should work for you, now that we know your ranges are consistent.

    Paul's works if you're only ever entering tenths of an hour. If you ever intend to enter say 2:33, then you'd need DO's.

  16. #16
    Registered User
    Join Date
    12-09-2009
    Location
    Canada
    MS-Off Ver
    Excel 2003
    Posts
    6

    Re: Time range formula

    Quote Originally Posted by darkyam View Post
    I think DO's formula of =150*(CEILING(A1*24,0.1)) should work for you, now that we know your ranges are consistent.

    Paul's works if you're only ever entering tenths of an hour. If you ever intend to enter say 2:33, then you'd need DO's.
    Darky;

    Thanks a lot for your comments and imput. This may sound very dumb but I don't know what means CEILING in the formula.

    in my layout page I have Colum C for time and Colum D for amount

    for example

    concept time amount
    review legal docs .6 150


    Could you show me how to do it

  17. #17
    Forum Expert darkyam's Avatar
    Join Date
    03-05-2008
    Location
    Houston, TX
    MS-Off Ver
    2013
    Posts
    2,191

    Re: Time range formula

    Ceiling means you round up to a multiple. In this case, DO was transforming minutes and rounding to the nearest tenth. If you're entering data in only tenths, as per your example, you don't need this transformation and can just use =B2*C2.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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