+ Reply to Thread
Results 1 to 7 of 7

removing digits from 00:00:00:000

  1. #1
    Registered User
    Join Date
    06-04-2014
    Posts
    4

    removing digits from 00:00:00:000

    Hi
    I have an excel file that gives time as 00:00:00:000
    I cant use MINUTE or HOUR formulas on this. How do I do remove the 000?
    Thanks
    Conor

  2. #2
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: removing digits from 00:00:00:000

    Untested:

    =left(len(a1)-right(a1,4) and format as time.

    in which a1 is the value 00:00:00:000
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

  3. #3
    Forum Contributor pareshj's Avatar
    Join Date
    05-20-2014
    Location
    MUMBAI
    MS-Off Ver
    2007 & 2010
    Posts
    447

    Re: removing digits from 00:00:00:000

    Hi conor00,

    Use this formula :

    =TEXT(A1,"hh:mm:ss")

    Where, A1 is the Cell where you got input value.


    Regards,
    Paresh J
    Click on "* Add Reputation" as a way to say thanks

  4. #4
    Forum Expert
    Join Date
    05-01-2014
    Location
    California, US
    MS-Off Ver
    Excel 2010
    Posts
    1,795

    Re: removing digits from 00:00:00:000

    Quote Originally Posted by conor00 View Post
    I have an excel file that gives time as 00:00:00:000[.] I cant use MINUTE or HOUR formulas on this. How do I do remove the 000?
    Excel does not display numeric time in that format.

    Could you be more complete and more precise?

    First, by "excel file", I assume you mean a file with the ".xls", ".xlsx" or ".xlsm" extension; specifically, not ".cvs" or ".xml". Right?

    Second, do you mean literally 00:00:00:000; or do you mean "in that form", perhaps hh:mm:ss:nnn? If the latter, is "nnn" literally "000"?

    Finally, what exactly is in the Formula Bar when you select the cell? What is the cell format? What is the type of the cell value; for example, what does =ISTEXT(A1) return?

    Alternatively, simply attach an example Excel file to your next response.

    Since HOUR and MINUTE do not work, I suspect ISTEXT(A1) returns TRUE. If the text always ends with ":000", you use Find and Replace (ctrl+F) to find :000 and replace with nothing. That should also convert the cell value to numeric time.

  5. #5
    Registered User
    Join Date
    06-04-2014
    Posts
    4

    Re: removing digits from 00:00:00:000

    First, by "excel file", I assume you mean a file with the ".xls", ".xlsx" or ".xlsm" extension; specifically, not ".cvs" or ".xml". Right?

    Right, .xlsx

    Second, do you mean literally 00:00:00:000; or do you mean "in that form", perhaps hh:mm:ss:nnn? If the latter, is "nnn" literally "000"?

    01 Dec 2011 00:00:08:000 is in column 1. I did text-to-columns to split out 00:00:08:000 into cell d2. ISTEXT(D2) returns true. I then used LEFT(D2,2) which returned 00


    Alternatively, simply attach an example Excel file to your next response.

    Since HOUR and MINUTE do not work, I suspect ISTEXT(A1) returns TRUE. If the text always ends with ":000", you use Find and Replace (ctrl+F) to find :000 and replace with nothing. That should also convert the cell value to numeric time.[/QUOTE]

  6. #6
    Forum Expert
    Join Date
    05-01-2014
    Location
    California, US
    MS-Off Ver
    Excel 2010
    Posts
    1,795

    Re: removing digits from 00:00:00:000

    Quote Originally Posted by conor00 View Post
    01 Dec 2011 00:00:08:000 is in column 1. I did text-to-columns to split out 00:00:08:000 into cell d2. ISTEXT(D2) returns true.
    I presume ":000" is intended to represent milliseconds.

    If you are entering the data manually, type 01 Dec 2011 00:00:08.000 instead. Change the decimal separator (".") to comma (",") or whatever your regional decimal separator is.

    If you are entering the data automatically (file import) or semi-automatically (copy-and-paste), use Find And Replace (ctrl+F) to change ":000" to ".000".

    In both cases, ISTEXT(D2) should now return FALSE. If it still returns TRUE, perhaps Excel does not recognize the form 01 Dec 2011 as a date. If it does not, you might be able to use Text To Columns to convert the date. Let us know if you need more help with that.

    However, another problem could be extraneous spaces (or even non-breaking spaces; HTML nbsp) between or around the date and time.

    If you continue to have problems, it would be helpful if you attached an example Excel file, as I suggested previously.

  7. #7
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: removing digits from 00:00:00:000

    Post your excel file, so forummembers can take a look at it, and test it.

+ 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. Removing 2 digits
    By Kevin101 in forum Excel General
    Replies: 7
    Last Post: 12-01-2011, 11:15 AM
  2. Removing of too many digits
    By dianelouw@iburs in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 06-12-2007, 03:47 PM
  3. removing last 16 digits of the value of a cell
    By destrolennox in forum Excel General
    Replies: 4
    Last Post: 07-19-2006, 12:27 AM
  4. Removing the last two digits of a cell
    By kestrel in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-17-2006, 05:45 PM
  5. [SOLVED] help with removing digits from a number
    By frank in forum Excel General
    Replies: 4
    Last Post: 07-11-2005, 10:05 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