Solved

Excel 2007 Copying Date/Time Value Only

Posted on 2013-06-04
4
478 Views
Last Modified: 2013-06-04
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
0
Comment
Question by:Escanaba
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 23

Accepted Solution

by:
NBVC earned 500 total points
ID: 39220207
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
 
LVL 17

Expert Comment

by:Kent Dyer
ID: 39220226
This should do the trick..

=TIME(A8,A8,A8)

Time is: HOUR, MINUTE, SECOND..

HTH,

Kent
0
 
LVL 1

Author Closing Comment

by:Escanaba
ID: 39220229
Thanks!
0
 
LVL 17

Expert Comment

by:Kent Dyer
ID: 39220233
Now..  If you want just pure numbers..  This would work..

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

HTH,

Kent
0

Featured Post

Revamp Your Training Process

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

You need to know the location of the Office templates folder, so that when you create new templates, they are saved to that location, and thus are available for selection when creating new documents.  The steps to find the Templates folder path are …
This article describes a serious pitfall that can happen when deleting shapes using VBA.
This Micro Tutorial will demonstrate how to use longer labels with horizontal bar charts instead of the vertical column chart.
This Micro Tutorial will demonstrate the scrolling table in Microsoft Excel using the INDEX function.

627 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question