+ Reply to Thread
Results 1 to 3 of 3

Removing values and reformatting time array - VBA

  1. #1
    Forum Contributor
    Join Date
    11-15-2011
    Location
    UK
    MS-Off Ver
    Excel 2013
    Posts
    163

    Removing values and reformatting time array - VBA

    Hi All,

    I have a column containing times values that I would like to reformat into hh:mm:ss and remove the brackets. The time values are not a fixed length but are separated by either a colon ( or decimal point (.)

    Here are 3 examples:

    (0:0:9.0)
    (0:15:0.0)
    (0:10:37.0)

    I would like to remove the ms value (.0) and reformat to hh:mm:ss therefore the values above would be

    00:00:09
    00:15:00
    00:10:37

    I'm not sure if this is possible?

  2. #2
    Forum Contributor
    Join Date
    11-15-2011
    Location
    UK
    MS-Off Ver
    Excel 2013
    Posts
    163

    Re: Removing values and reformatting time array - VBA

    Haha...didn't mean to enter smiley its meant to be colon ' : '

  3. #3
    Forum Contributor
    Join Date
    11-15-2011
    Location
    UK
    MS-Off Ver
    Excel 2013
    Posts
    163

    Re: Removing values and reformatting time array - VBA

    Solved!

    Find and replace .0) with 'blank'
    Find replace (
    Cells automatically reformatted to hh:mm:ss

+ 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] Removing specific elements from an Array based on matching elements in a different Array
    By jamesdeuce in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 01-24-2014, 10:35 PM
  2. Reformatting a sheet with many iterations of a similar grouping of dates and values
    By Bobby Green in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 05-14-2013, 02:19 PM
  3. Replies: 4
    Last Post: 11-17-2012, 04:42 AM
  4. Removing data that is one array if it is in another array
    By Odie2012 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 11-03-2012, 03:45 AM
  5. Program to copy array of values one at a time
    By p282h in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-19-2011, 12:38 PM
  6. Reformatting list of values into an array of values
    By opdahl in forum Excel - New Users/Basics
    Replies: 5
    Last Post: 06-24-2010, 02:45 AM
  7. Comparing a string to values in an array resulting in a Run time Error 1004
    By sgreni in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-15-2009, 04:21 PM
  8. Excel keeps reformatting floating point values to dates (e.g. March 17)
    By antred in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-09-2006, 07:55 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