Results 1 to 8 of 8

time date formatting issues

Threaded View

  1. #5
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: time date formatting issues

    Maybe the imported data has spaces before and after the data and it is possible that the space between the date and time is not really a space but another character that looks like a space.

    Select the space in the date/time string and copy it. Paste that into say M1. In N1 enter =CODE(M1) If the code isn't 32 then the space isn't a space.

    If the date and time are entered in column A enter this in column B and copy down the length of your data.

    Formula: copy to clipboard
    =TRIM(SUBSTITUTE(A1,CHAR(160)," "))*1
    If the code in N1 isn't 160, use that number in the CHAR() function. Format the date and time the way that you want (dd/mm/yyyy hh:mm:ss)

    The above will trim off any leading or trailing spaces and "fix" any strange spaces if you found a strange code for the space. A normal space between the date and time will be left alone.
    Last edited by newdoverman; 08-06-2013 at 03:41 PM.
    <---------If you like someone's answer, click the star to the left of one of their posts to give them a reputation point for that answer.
    Ron W

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Date Formatting Issues
    By GalmOne in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-24-2012, 08:44 AM
  2. Date and Time Issues
    By ScottL in forum Excel General
    Replies: 1
    Last Post: 11-29-2011, 02:07 PM
  3. Date and Time issues
    By Kypsis in forum Excel General
    Replies: 2
    Last Post: 12-02-2010, 04:16 PM
  4. Date formatting issues
    By kguillen in forum Excel General
    Replies: 0
    Last Post: 04-04-2009, 12:38 PM
  5. Date formatting/conversion issues
    By Abacus in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-24-2009, 07:09 PM

Tags for this Thread

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