Excel 2007 Copying Date/Time Value Only

Hello,

Can someone please tell me how to copy the number starting in cell A5 to cell B5 so that it is just text and not bring over the date and time that's underlying in the cell?  For example, B5 should only read 4608:34:36 (format text).  When you click on that cell it will not show 7/10/1900  12:34:36 AM, just the number.  Formula or vb code will be fine.

Thanks!
EE-Demo.xlsx
LVL 1
EscanabaAsked:
Who is Participating?
 
NBVCConnect With a Mentor Commented:
You mean formula in B5?:

=TEXT(A5,"[hh]:mm:ss")

you can then copy column B and paste special >> values over itself if you want to get rid of formulas and leave the text values behind.
0
 
Kent DyerIT Security Analyst SeniorCommented:
This should do the trick..

=TIME(A8,A8,A8)

Time is: HOUR, MINUTE, SECOND..

HTH,

Kent
0
 
EscanabaAuthor Commented:
Thanks!
0
 
Kent DyerIT Security Analyst SeniorCommented:
Now..  If you want just pure numbers..  This would work..

=RIGHT(100+HOUR(A6),2)&RIGHT(100+MINUTE(A6),2)

HTH,

Kent
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.