Solved

Excel 2007 Copying Date/Time Value Only

Posted on 2013-06-04
4
400 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
  • 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

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

A little background as to how I came to I design this code: Around 5 years ago I designed an add-in that formatted Excel files to a corporate standard, applying different cell colours and font type depending on whether the cells contained inputs,…
Introduction This Article is a follow-up to my Mappit! Addin Article (http://www.experts-exchange.com/A_2613.html), it was inspired by an email posting I made to EUSPRIG (http://www.eusprig.org/index.htm), I will briefly cover: 1) An overvie…
The viewer will learn how to simulate a series of sales calls dependent on a single skill level and learn how to simulate a series of sales calls dependent on two skill levels. Simulating Independent Sales Calls: Enter .75 into cell C2 – “skill leve…
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

707 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

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now