+ Reply to Thread
Results 1 to 8 of 8

Time and date formula correction

  1. #1
    Forum Contributor
    Join Date
    11-28-2013
    Location
    Ljubljana
    MS-Off Ver
    Office 365
    Posts
    1,054

    Time and date formula correction

    Dear All
    Dear All
    would you please se what the problem in cell
    B7 with the following formula
    HTML Code: 
    because it give next day although the time in the same day
    Attached Files Attached Files

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2405 (Windows 11 23H2 64-bit)
    Posts
    81,417

    Re: Time and date formula correction

    Why not use this?

    =B2+TIME(TRUNC(B4/100),MOD(B4,100),0)
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Time and date formula correction

    B
    C
    2
    01-Jun-2017
    3
    16:00
    4
    18:00
    5
    6
    01-Jun-17 16:00
    B6: =B$2 + DOLLARDE(B3/100, 60)/24
    7
    01-Jun-17 18:00
    Entia non sunt multiplicanda sine necessitate

  4. #4
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Time and date formula correction

    Formulas in B6 and B7 are way overcomplicated.

    Try
    B6: =B$2+TEXT(B3,"00\:00")
    Fill down to B7

  5. #5
    Forum Contributor
    Join Date
    11-28-2013
    Location
    Ljubljana
    MS-Off Ver
    Office 365
    Posts
    1,054

    Re: Time and date formula correction

    if you change the value in B4 to 0100 its must be change the date to 2-7-2017 but with he formula its
    Attached Files Attached Files

  6. #6
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Time and date formula correction

    Try
    B6: =B$2+TEXT(B3,"00\:00")
    B7: =B$2+TEXT(B4,"00\:00")+(B3>B4)

  7. #7
    Forum Contributor
    Join Date
    11-28-2013
    Location
    Ljubljana
    MS-Off Ver
    Office 365
    Posts
    1,054

    Re: Time and date formula correction

    Dear Jonmo1 your last formula working good
    many thank for all help me

  8. #8
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Time and date formula correction

    You're welcome

+ 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. Replies: 4
    Last Post: 06-04-2017, 07:34 AM
  2. Date correction formula gives strange results
    By Badvgood in forum Excel General
    Replies: 4
    Last Post: 04-27-2017, 11:53 AM
  3. Ticket Number Date (Start/End) Correction Formula (NESTED IF)
    By ychoi01 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-27-2017, 05:07 PM
  4. SOLVED Year-to-Date Formula - Need Correction for mid month
    By salamander20 in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 02-12-2016, 12:24 PM
  5. [SOLVED] Formulae Correction Required - Date
    By jon112211 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 01-06-2015, 01:09 PM
  6. date inputbox value correction
    By mubashar in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-10-2014, 12:10 AM
  7. Replies: 3
    Last Post: 12-19-2013, 06:49 AM

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