+ Reply to Thread
Results 1 to 5 of 5

Rounding problem with time

  1. #1
    Registered User
    Join Date
    03-18-2014
    Location
    Michigan
    MS-Off Ver
    Excel 2013
    Posts
    11

    Rounding problem with time

    Hi all,

    I am having an issue with time rounding. The columns consist hours/days for a 7 day week. So 8/3/14 12:00 AM, 8/3/14 1:00 AM, 8/3/14 2:00 AM..... ect.

    If I manually enter in every date/time my formula works flawlessly. I don't really wanna enter 168 date/times to fill out my week schedule but when I try to enter in 2 date/times then drag across the formula does not work. I notice a dragged time/date rounds differently than if I manually enter one.

    Is there a way to not manually enter in every date but avoid the rounding issue?

    The formula isn't the issue as it just states IF($A2=B$1,1)

  2. #2
    Forum Expert
    Join Date
    03-28-2014
    Location
    Hyderabad,India
    MS-Off Ver
    Excel 2013
    Posts
    1,887

    Re: Rounding problem with time

    Hi,

    Sample workbook without any confidential data .

    Punnam

  3. #3
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Rounding problem with time

    trying again last post was wrong
    ok try
    a1=08/03/2014 00:00:00
    a2=ROUND(A1*24+1,0)/24 fill down A2
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  4. #4
    Forum Expert cbatrody's Avatar
    Join Date
    04-15-2014
    Location
    Dubai
    MS-Off Ver
    Microsoft Office 365 ProPlus
    Posts
    2,136

    Re: Rounding problem with time

    Or,

    A1: 08/03/2014 0:00
    A2: =A1+1/24

    and drag down.....

  5. #5
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Rounding problem with time

    that doesnt work cbatrody
    a1= 08/02/2014 00:00
    then a168 =14/02/2014 23:00
    in c168 put a168=b168 and type in 14/02/2014 23:00 in b168
    you get false

  6. #6
    Forum Expert cbatrody's Avatar
    Join Date
    04-15-2014
    Location
    Dubai
    MS-Off Ver
    Microsoft Office 365 ProPlus
    Posts
    2,136

    Re: Rounding problem with time

    Yes Martin, you are right. Thanks for bringing that up.

+ 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. Rounding Problem
    By Asa_123 in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 09-14-2012, 11:50 PM
  2. Rounding time axis label, problem with leap years
    By aderougemont in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 10-23-2008, 05:07 AM
  3. Converting military time to decimal time not rounding correctly
    By Sean Anderson in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 01-23-2008, 09:12 PM
  4. Rounding up time with formula problem
    By reggie1000 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-07-2008, 02:43 PM
  5. Rounding Time Intervals to the Nearest Specified Time Increment
    By ExcelTip in forum Tips and Tutorials
    Replies: 0
    Last Post: 08-23-2005, 12:21 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