+ Reply to Thread
Results 1 to 8 of 8

How to round up string time?

  1. #1
    Forum Contributor
    Join Date
    01-16-2014
    Location
    Poland
    MS-Off Ver
    Excel 2016
    Posts
    2,477

    How to round up string time?

    Hi Guys,

    i want to use VBA to round up minutes in time string:

    1. TimeToChange = "00:10:39" (hh:mm:ss) should be rounded to "0:11" (h:mm)
    1. TimeToChange = "00:00:30" (hh:mm:ss) should be rounded to "0:01" (h:mm)

    What formula i can use?

    Jacek

  2. #2
    Forum Expert sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2016 | 2019
    Posts
    8,330

    Re: How to round up string time?

    Play around with this...
    Please Login or Register  to view this content.
    Good Luck
    I don't presume to know what I am doing, however, just like you, I too started somewhere.....
    One-day, One-problem at a time!!!
    If you feel I have helped, please click on the star to left of post [Add Reputation]
    Also....add a comment if you like!!!!
    And remember......Mark Thread as Solved.
    Excel Forum Rocks!!!

  3. #3
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013
    Posts
    17,155

    Re: How to round up string time?

    Please Login or Register  to view this content.

  4. #4
    Forum Expert sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2016 | 2019
    Posts
    8,330

    Re: How to round up string time?

    Or...
    Please Login or Register  to view this content.

  5. #5
    Valued Forum Contributor Haluk's Avatar
    Join Date
    02-14-2019
    Location
    Turkey
    MS-Off Ver
    Office 2010 - 32 Bit
    Posts
    682

    Re: How to round up string time?

    Another alternative is (close to sintek's #2 ):

    Please Login or Register  to view this content.
    Last edited by Haluk; 08-02-2020 at 09:12 AM.

  6. #6
    Forum Guru
    Join Date
    04-23-2012
    Location
    New Jersey, USA
    MS-Off Ver
    Excel 2010
    Posts
    1,581

    Re: How to round up string time?

    And one more...
    Please Login or Register  to view this content.

  7. #7
    Forum Contributor
    Join Date
    01-16-2014
    Location
    Poland
    MS-Off Ver
    Excel 2016
    Posts
    2,477

    Re: How to round up string time?

    Thank you Guys very much!!

    Jacek

  8. #8
    Valued Forum Contributor Haluk's Avatar
    Join Date
    02-14-2019
    Location
    Turkey
    MS-Off Ver
    Office 2010 - 32 Bit
    Posts
    682

    Re: How to round up string time?

    Jacek, you're welcome and thx for the feedback.

+ 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] Round up time
    By haziqten in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 05-05-2019, 06:21 AM
  2. Convert a string of time to military time string
    By MsmSoe in forum Excel General
    Replies: 4
    Last Post: 02-22-2018, 01:00 AM
  3. round time
    By fakhteh in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-14-2017, 11:03 AM
  4. Formula to round up time to the nearest given end time.
    By Shellybelly in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 08-15-2015, 05:43 PM
  5. [SOLVED] round up time unless already at the desired time value
    By mattgoudey in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-13-2013, 10:20 AM
  6. round the time
    By legepe in forum Excel General
    Replies: 2
    Last Post: 03-04-2010, 09:27 AM
  7. Round down for time
    By Shadowman13 in forum Excel General
    Replies: 3
    Last Post: 05-20-2005, 07: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