Rounding to Quarter hour

Newcomer to numbers.. I can't seem to get my roundup logic working.
To break this into steps, it's a time analysis, but I seem to be missing something
c2=10:00
c3=10:20
goal is to have the equation return .5 here
I'd like to break down the logic I'm trying to use if you will all humour me.
Display a time difference as a decimal
=DUR2HOURS(c3-c2)
The output is as expected, .333333333333
Round that time difference up and limit to 2 places
=ROUNDUP(DUR2HOURS(c3-c2),2
The output is as expected, .34
This is where I run into an issue... In researching I have seen it stated to multiply that number inside the rounding portion by 96 and then divide by 96.. but I have to say, this doesn't make sense to me particularly, nor is the output what would be expected.
Sorry for such a basic question, I, in pursuit of learning numbers, want to understand why I'm doing this, not just stumble upon it.
Thanks for your help!

What are you thinking to be wrong in your result.
You are calculating :
=ROUNDUP((DUR2HOURS(C2-B2)*96),0)
which is 32
then divide this value by 96
which returns logically .3333333
I really don't understand what you are wanting to achieve.
My first thought was that you wished to convert .3333333 in minutes but it's so trivial that I assume that I thought wrongly.
Just for info to convert a decimal hour in minutes, you just need to muliply the decimal value by 60.
h00ligan76 wrote:
To break this into steps, it's a time analysis, but I seem to be missing something
c2=10:00
c3=10:20
goal is to have the equation return .5 here
I really don't understand which kind of equation may return .5 starting from the two given values except maybe :
=ROUNDUP(DUR2HOURS(C3-C2)*4,0)/4
which return
.25 if the difference is in the range 0  minute  < C3-C2 ≤ 15 minutes
.50 if the difference is in the range 15 minutes < C3-C2 ≤ 30 minutes
.75 if the difference is in the range 30 minutes < C3-C2 ≤ 45 minutes
1.0 if the difference is in the range 45 minutes < C3-C2 ≤ 60 minutes
Yvan KOENIG (VALLAURIS, France) mercredi 25 janvier 2012
iMac 21”5, i7, 2.8 GHz, 12 Gbytes, 1 Tbytes, mac OS X 10.6.8 and 10.7.2
My Box account  is : http://www.box.com/s/00qnssoyeq2xvc22ra4k

Similar Messages

  • Quarter hour appointments and Active Sync

    Hello, I want to say sorry if this is a duplicate post but I was unable to find a resolution. I have a user using the current $99 iPhone 3g connected via Active sync to the company Exchange 2003 server. He sent me some screen shots of his Outlook and iPhone calendars. The Outlook calendar has some quarter hour appointments that appear to show up on the half hours on the iPhone calendar. (A 10:45 appointment appears at 11 for example.) I am wondering if this is the normal behavior for quarter hour appointments and if it is not is there a way to correct this issue? I have already had him remove his calendar from the activesync setting and add it back.
    Thanks for any help!

    Not sure why you're seeing that. I'm also using an iPhone 3G and ActiveSync with an Exchange 2003 server. Events that I create in Outlook or on the iPhone which start at :45 are displayed in the Day view as starting 3/4 of the way through the hour. If the event is only 15 minutes in duration, it starts 'on time' but appears longer (e.g. an 11:45-noon event looks like it runs from 11:45 - 12:15), to accommodate the text height.

  • ICal How can I change the preset quarter-hour time intervals?

    iCal is set to automatically "click" into 15 minute intervals as you drag and drop an event. Is it possible to change this so I can drag an event into 10 minute intervals? I know I can set the time manually, but if I move the event, it reverts to only allowing quarter hour intervals.

    Hello Oilfield Dan:
    This will change your TIme Capsule backup intervals:
    sudo defaults write /System/Library/LaunchDaemons/com.apple.backupd-auto StartInterval -int 14400  To every four hours.  My issue is that when I run this it won't change it.. Still does it every hour.. Do you have any thoughts on WHY this will not change... Even with reboots, resets, poweroff.  UNIX should do what you tell it but this is not working. I do not want to use the GUI Time Capsule interval changer. I want to have total control. Does anyone know???? THANK YOU.

  • ICal rounds times I enter offline to the quarter hour after syncing

    When I enter a time offline, for instance at 10:32 AM, and then sync my computer, the time rounds to 10:30 AM. Is there an offline setting that I need to change?

    Hi,
    Open the System Preferences > Language & Text > Formats tab and change the Region from Custom to your local one.
    Let me know how it goes
    Best wishes
    John M

  • Rounding of attendance hours

    Hi experts,
    In the system,  rounding of the attendance hours is done.  If a person works for two shifts in a day,  the rounding is done individually.  But the requirement is the rounding is to be done  after taking the total of these attendance hours.
    For example    attendance hr in first shift is 8.20 (rounded to 8)
              Attendace hr in second shift is 6.15 (rounded to 6)
                            Total is 14 hours
    But the requirement is                8.20  +  6.16 =  14.36 (rounded to 15)
                 Because the range 0.25 to 1 will be rounded to 1.
    How can I achieve this in table TIP in Time eval? Please advise.
    Thanks

    Hello Mohammed,
    Straight answer is no, reason is there is no such concept of rounding in time type. As we are aware TIP table is used for pair formations based on the working times which is further processed for determing the processing type / time types for the time pair. Once we do this determination Balances are formed in Time TypesThis all depends how are you treating the work hours, to be more clear what are the total planned hours / overtime hours for the employee. Whther the employee is working 1 shift or 2shifts for one single day.
    Hope this clarifies your doubt.
    Regards,
    Tara

  • Hour rounding for the per diem calculation in Germany

    Dear Experts,
    In Germany the Law for the calculation of the per diem is as below:-
       00 Euros = less than 8 hours
       06 Euros = greater than or equal to 8 hours and < 14 hours
       12 Euros = greater than or equal to 14 hours and < 24 hours
       24 Euros = 24 hours
    I have set up the hour scales in V_T706V as below:-
    Hour              Amount
    7     = 00.00 EUR
    13     = 06.00 EUR
    23     = 12.00 EUR
    24     = 24.00 EUR
    Now system is rounding the partial hour to the next hour, i.e. for 7.50 hours, it is calculating 8 hours and thus per diem as 6 Eur.
    Howeverwe want that for less then 8 hour it should be 0 Eur.
    Please let me know if I am missing any setting, or any other workaround. As this is a legal requirement, we must have to implement it.
    Many thanks,
    Gaurav
    Edited by: gka2707 on Jun 10, 2010 2:28 PM
    Edited by: gka2707 on Jun 10, 2010 2:29 PM
    Edited by: gka2707 on Jun 10, 2010 2:31 PM

    Hi Gaurav,
    It depends upon how you write the coding for the calculation.
    If you want 0 - 7 hrs 59 min = 0 Euros and if it is 8 hrs - 6 Euros.
    Then, you need to say if it is less 7hrs 59 min. or equal to = 0 and if it is 8 or greater than = 6 euros.
    Hope this helps.
    Regards,
    S.Srikanth.

  • Is there a way in SSRS 2008 to format datetime to half hour?

    Is there a way to format date time in SSRS 2008 to half hour. I am working on a graph and I am sorting by the hour, but i need
    half hour is there a way I can do this?

    Hi Fozzy767,
    To round time to half hour, we need to use custom function in SQL Server Reporting Service(SSRS). A similiar function can be got from the following thread:
    http://social.msdn.microsoft.com/Forums/sqlserver/en-US/443a22c6-d5fd-44f6-a379-67f3760537fb/round-time-to-quarter-hour?forum=sqlreportingservices
    To understand how to use custom function, please see:
    http://technet.microsoft.com/en-us/library/ms156028.aspx
    Thanks,
    Jinchun Chen

  • Quarter End date duplicate value issue in pivot

    Hi gurus,
         I have a requirement to show the working hours and utilization of an employee. I have these three fields
    Employee Name
    Week Start Date
    Year (Based on Week Start Date)
    Quarter (Based on Week Start Date)
    Effort Logged Date(Date in which the employee has logged the effort for)
    Hours Logged Type(Different Types like Billable , Non Billable, etc )
    Hours Logged(Effort logged per day)- Summed up and taken as Hours Worked
    Normal Working Hours Per Week (Week aggregated value Eg. This value will be 40hrs for a particular employee per week)- Taken as Hours Available
    For every single Effort Logged Type , there will be a row in my final table.
    ROW_WID
    EMP_NAME
    WEEK_START_DT
    EFF_LOG_DT
    HRS_TYPE
    EFF_LOGGED
    NORMAL_HRS
    1
    Niranjan
    29/09/2013 -DD/MM/YYY
    30/09/2013
    Billable
    7
    40
    2
    Niranjan
    29/09/2013
    30/09/2013
    Non Billable
    8
    40
    3
    Niranjan
    29/09/2013
    1/10/2013
    Travel
    8
    40
    My job is to show the data like this(I am using a pivot)
    Year
    Quarter
    Hours Available
    Hours Worked
    2013
    3
    640
    635
    4
    680
    679
    When I do this, since the week start date falls under Quarter 3 and the effort logged date is spread across Quarter 4, the Hours available is getting duplicated, 40 is added to both quarter 3 and quarter 4. How to avoid this? 
    Ideally the hours logged for 29/9/2013 should be divided by normal hrs/5 (ie. 40/5) to get the utilzation correct. How to find the quarter endings and solve this issue?

    Hi Can you please share the query that you used to show the above output.

  • Bug in "Announce the time" on half hour

    I have the Clock configure to announce the time on the quarter hour (using Trinoids).
    Most of the announcements are fine however it regularly announces the half hour as "three" rather than "thirty".
    Curiously it happens on almost all, but not on every instance. I've noticed this in 10.5.2 as well which is when I enabled this so not sure about earlier versions.

    Oh and I also use 24 hour clock.

  • Rounding in a PCR

    Hi Gurus,
    I want to capture overtime times after 8 hours,in TM00 schema and want to round the OT hours as
    if an employee work 8hrs 29mins it should show as 0 OT
    if an employee work 8hrs 35mins it should show as 30 mins OT
    if an employee work 8hrs 40mins it should show as 45mins OT
    if an employee work 8hrs 50mins it should show as 45 minsOT
    it should round to nearest 15 mins.......and want to include all the conditions in writing PCR
    i have identified PCR TO40 to round overtime hours in TM00 schema or should i write my own PCR...
    please help me out...........?????????
    Akhil

    Hi Akhil,
    You have seen the PCR TO40 if u see here it will round the time with the constant TMRND which is 0.25 in T511k.You can insert a small rule in time for the total attendance hrs and check it and use operation ROUND S
    The number field of the time pair irounded, and the start time adjuste accordingly.And then ROUNDnn where nn is the minutes u can set in your case it will be 15.
    Thanks
    Swati

  • Turn off hourly chime

    My iPhone sounds a chime on the hour and quarter hour, but only certain times of the day.  I've searched how to turn this off, and cannot find how to.  I have NOT installed an alarm app.

    There really isn't any other way. I've read posts about this in the past where it turns out to be a game that's setting off a chime at some weird hour every day.
    It would still take a while but you might be able to find some ideas by searching for something like "apps that cause an hourly chime iPhone" in your favorite search engine. You might see the name of an app you have pop up somewhere.
    Best of luck.

  • Can my mac chime on the hour?

    Is there a way to have my mac chime on the hour (or quarter hour, or whatever). I used to be able to do this with OS 9. It seems all I can do via the "Date and Time" control panel is have one of the goofy (or creepy) system voices tell me the time at specified intervals. There are some gorgeous sound files out there just begging to be made into clock chimes.
    Mac Mini   Mac OS X (10.4.4)   1Gb RAM, 160 Gb ext firewire drive

    Here is a shareware for that.
    http://www.macupdate.com/info.php/id/10419
    -Bmer
    Mac Owners Support Group
    Join Us @ MacOSG.com
     An Apple User Group 
        MacOSG Podcast >>
    Note: I receive no compensation for product endorsements.

  • PL/SQL Block for Data Formatting

    I have created a Report that will pull all times that a person clocks in and clocks out. It works great but now accounting wants me to do some "conditional formatting" that can't be done by Report's built in conditional formatting capabilities. I talked to tech support yesterday and they suggested a PL/SQL block to format my times to do what accounting needs. Here is the skinny: All times in the database are done in 100ths of an hour. I need to the times up or down to the next quarter hour depending on when they clocked in. If they clocked in one minute late, it rounds down the the previous quarter hour and anything later and it rounds up. Can someone help me? Thanks, Jeremy

    In the data model, enter your query and create the groups you need.
    Let's say you have the number column my_time in a group named g_times.
    Then create a formula column in the group g_times and look at its
    properties. Change the name to cf_time.
    Click on the property PL/SQL-Formula, and in the pl/sql editor you can
    write something like
    function CF_TIMEFormula return Number is
    begin
      return trunc((:my_time + 0.23) * 4) / 4;
    end;As you see, you can access query columns by using the colon.
    Afterwards, you can display :cf_time in your Layout model.

  • SSAS Tabular: Handling time datatypes

    Folks,
    I have two dimensions related to time in my DW. One is for dates (dDate), and another which is for the time of the day (dTime), with the granularity set to minutes (we don't care for seconds).
    Here is the code for creating my dTime table:
    CREATE TABLE dTime (
    [timekey] smallint, --NOT SURE ABOUT THIS SEQUENCE AS THE PRIMARY KEY ** MUST REVIEW **
    [Hour of Day (24)] tinyint, --0-23, military/European time
    [Hour of Day (12)] tinyint, --1-12, repeating for AM/PM, for us American types
    [Meridien] char(2), --AM/PM
    [Minute of Hour] tinyint, --the minute of the hour, reset at the top of each hour. 0-59
    [Half Hour] tinyint, --1 or 2, if it is the first or second half of the hour
    [Half Hour of Day] tinyint, --1-24, incremented at the top of each half hour for the entire day
    [Quarter Hour] tinyint, --1-4, for each quarter hour
    [Quarter Hour of Day] tinyint, --1-48, incremented at the tope of each half hour for the entire day
    [Time String (24)] char(5), --military/European textual representation
    [Time String (12)] char(5), --12 hour clock representation sans AM/PM
    [Time Value] time(0), --Time in 00:00:00 T-SQL time datatype
    CONSTRAINT PK_dTime_timekey PRIMARY KEY CLUSTERED (timekey)
    GO
    For the sake of completion, I have recently added a time(0) field to my table. I am creating an SSAS tabular model based on data from this DW. However, it comes to my attention that SSAS in Tabular mode does not handle time-only fields. Is that correct?
    Could someone please advise?
    Best Regards,
    P.

    Multidimensional and Tabular are different.
    Tabular has a dictionary for every column, so there is only one data type (datetime) that contain both. If you have a TIME data type in SQL, it is automatically imported in the right way and assigned to a date in the past (1/1/1900 or something similar).
    In order to optimize the column, lower the number of unique values. If you don't need seconds, round to the minute.
    Marco Russo (Blog,
    Twitter,
    LinkedIn) - sqlbi.com:
    Articles, Videos,
    Tools, Consultancy,
    Training
    Format with DAX Formatter and design with
    DAX Patterns. Learn
    Power Pivot and SSAS Tabular.

  • Phantom engineer

    Way back in July (after several telephone calls to half a dozen different people in two continents, one of which lasted 1 and a quarter hours - but that's another story for the complaints department) I managed to get an engineer booked for Monday 20 August 2012 between 1pm and 6pm to come and replace an old junction box with a new master socket (this, I was informed, is known in the trade as 'Conversion of hard-wired master socket to Linebox and Regularisation of illicit master socket'). BT confirmed this appointment on 18 August 2012 both by email ('Get ready: our engineer's visiting soon‏') and by voicemail. So, yesterday on 20 August, I 'got ready' and waited...
    No engineer.
    Shortly after 6pm I telephoned 0800 800 150 (the contact number given on BT's web site for 'tracking an order'). The first assistant couldn't help, but put me through to a second assistant. After some time she informed me that the appointment was confirmed, that an engineer had been assigned, and that the engineer 'was at the exchange' (why?) and would contact me.
    No contact.
    At 7pm I again telephoned 0800 800 150. A long conversation with two different assistants on two continents proved utterly futile.
    I hung up and tried again. The first assistant couldn't help, but offered to transfer me. I hung on in a queue for about 15 minutes and hung up close to 8pm.
    This may be the time to part company with BT, unless anyone can get this fixed now.

    Well, an engineer turned up, unannounced, at 8am this morning and did the conversion in a half hour or so. He was fine, but didn't appear to be the one 'assigned' yesterday.
    I've absolutely no idea whether this is the result of any of my numerous telephone calls or emails to BT, as they simply do not communicate. And this will be the subject of my complaint. I've needlessly wasted time on telephones and computers fruitlessly trying to establish what was happening, when all that was required was a simple call from BT along the lines of 'Sorry, your engineer won't / couldn't make it today, but will be round first thing tomorrow.' You expect, though you do not welcome, non-communication from Banks, the NHS, etc. (add your own baneful institution), but not from an organisation whose core business is, after all, COMMUNICATIONS.
    As far as I am concerned, BT are on probation with me. A previous occupant set my house up for cable and I receive begging letters almost daily from Virgin: up to now these have gone straight into recycling, but I'll be taking a closer look next time.

Maybe you are looking for

  • Creation of new fields for business partner relationship

    Hi experts, We are currently on SAP CRM 7.0 EHP1. We have a requirement to maintain a custom checkbox (Relevant for business) on each business partner relationship. Can you please let us know on how we can achive this requirement. Thanks in advance,

  • Dual-booting OS X & Windows XP – Limited to 10.6 Snow Leopard?

    I have an October 2008 vintage MacBook Pro 17-inch*, which will shortly be revitalised with an OCZ Vertex 4 512GB solid state drive, and with the boost in available disc space, I'm exploring options for dual-booting OS X and Windows. * Model ID: MacB

  • How to Output Rich Text Format.

    Hi everyone, i use a rich text editor called tiny mce in my web application. After i click the submit button the value inside the text area would be saved in my database including the HTML tags e.g. <i>Sample Report edited via Tiny MCE Rich Text Edit

  • HT4623 i need suppot with my iphone 4

    I have problem with my iphone 4 a keep showing me the Activation is Error also a show that if the problem persists, please contact customer care. <Personal Information Edited by Host>

  • External swf keeps repeating:

    Hello. I have a simple button loading up an external swf in a empty movie clip. The external swf is just an image that has the fade in transition on it in the beginning and then it stops (via actionscript). Once it stops, you see the image. The exter