+ Reply to Thread
Results 1 to 3 of 3

Strip date and keep time from row of cells

  1. #1
    Registered User
    Join Date
    04-13-2011
    Location
    Norway
    MS-Off Ver
    Excel 2003
    Posts
    2

    Strip date and keep time from row of cells

    Hi!

    I've recently converted a few hundred lat/long positions into degrees and have cells with degree values formatted as: [t],mmss

    My posistions display as (for instance) "59,4302", which is exactly how I want them. I copied the cells with conversion formulas (lat/long to degrees) retaining values only, and I'm left with cells that display correctly but have a value of (the one above) "02.01.1900 11:43:02".

    Problem is that I need to create a csv file using the display value, is there a way to somehow make a new row of cells that has the display value as actual value? I'm using Excel 2007, if that matters, and I've tried using RIGHT and MID without any great success.

    Hope my question made sense and that someone can help me out. This was harder than expected...
    Last edited by NBVC; 04-21-2011 at 11:37 AM.

  2. #2
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Strip date and keep time from row of cells

    It would help to have your spreadsheet uploaded so I can see your formatting but try this....

    =TEXT(A1, "h:mm:ss")
    Does that work for you?
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  3. #3
    Registered User
    Join Date
    04-13-2011
    Location
    Norway
    MS-Off Ver
    Excel 2003
    Posts
    2

    Re: Strip date and keep time from row of cells

    You, young man, just made it to the "thanks to" section of my masters thesis!

    I wrote =TEXT(N2;"[t],mmss") instead, though, but still: THANK YOU!

    (I'll probably come back and bug you guys later on, but I'm good for now at least)

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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