ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Date (https://www.excelbanter.com/excel-discussion-misc-queries/3740-date.html)

Kevin

Date
 
hi

I have a workbook that contains several formatted cells


cell "A1" is formated as dd/mm/yyyy and has the today() formula in it

what i want to do is to copy the value of "A1" and paste it into "A4"

ie. "A1" = 13/01/2005
i only want the text value to be copied and pasted into A4
"A4" = 13/01/2005

When i try this i get the numeric value of 38365 which is excels text
value of the date. I need the above format


thanks in advance

kevin

Don Guillett

Pre format or use editpaste special or use a formula
=text(a1,"yourformathere")
or a macro
range("a4")=format(range("a1"),"yfh")

--
Don Guillett
SalesAid Software

"Kevin" wrote in message
om...
hi

I have a workbook that contains several formatted cells


cell "A1" is formated as dd/mm/yyyy and has the today() formula in it

what i want to do is to copy the value of "A1" and paste it into "A4"

ie. "A1" = 13/01/2005
i only want the text value to be copied and pasted into A4
"A4" = 13/01/2005

When i try this i get the numeric value of 38365 which is excels text
value of the date. I need the above format


thanks in advance

kevin





All times are GMT +1. The time now is 07:12 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com