Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 168
Default Change Date Format to Specific Text Format When Copying

I have a certain cell that is used to input a date. I want to be able to
push a button and copy this date to antoher cell, however I need the
formatting to change from the original date format to a text format that goes
yyyy-mm-dd. I've tried using a custom format and then changing that to text
but the date just changes to a number. Any suggestions?

Thanks

Adam Bush
  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,651
Default Change Date Format to Specific Text Format When Copying

If you want to convert the date to text, use the TEXT function.
=TEXT(A2,"yyyy-mm-dd")
--
David Biddulph

"
m wrote in message
...
I have a certain cell that is used to input a date. I want to be able to
push a button and copy this date to antoher cell, however I need the
formatting to change from the original date format to a text format that
goes
yyyy-mm-dd. I've tried using a custom format and then changing that to
text
but the date just changes to a number. Any suggestions?

Thanks

Adam Bush



  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 168
Default Change Date Format to Specific Text Format When Copying

Thanks for your help guys!

"Franz Verga" wrote:

Hi Adam,

I think you can use a formula to copy the datefrom the original input cell
to the destination cell. If for example your input cell is A1, in the
destination cell you can type the following formula:

=TEXT(A1,"yyyy-mm-dd")



Nel ,
m
ha scritto:
I have a certain cell that is used to input a date. I want to be
able to push a button and copy this date to antoher cell, however I
need the formatting to change from the original date format to a text
format that goes yyyy-mm-dd. I've tried using a custom format and
then changing that to text but the date just changes to a number.
Any suggestions?

Thanks

Adam Bush




--
(I'm not sure of names of menus, options and commands, because
translating from the Italian version of Excel...)

Hope I helped you.

Thanks in advance for your feedback.

Ciao

Franz Verga from Italy



  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,942
Default Change Date Format to Specific Text Format When Copying

hi
with the date in b2 and wanting to move it to e3 as text, something like
this might work.....
sub changetotext()
Range("E3").Formula = "=Text(B2, ""mm/dd/yyyy"")"
Range("E3").Copy
Range("E3").PasteSpecial xlPasteValues
end sub
this way it would work of a button.

regards
FSt1

" wrote:

I have a certain cell that is used to input a date. I want to be able to
push a button and copy this date to antoher cell, however I need the
formatting to change from the original date format to a text format that goes
yyyy-mm-dd. I've tried using a custom format and then changing that to text
but the date just changes to a number. Any suggestions?

Thanks

Adam Bush

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Macro to Change Changing Date Format Data to Text Rod Bowyer Excel Discussion (Misc queries) 3 October 11th 07 12:02 PM
how can I format a cell to change on a specific date ZC New Users to Excel 2 September 16th 07 01:07 AM
how do i change text format date to date (i.e., mm/yy to mm/dd/yyy lindsey Excel Discussion (Misc queries) 1 July 27th 07 10:05 PM
how to change number to text with specific format in function ViestaWu Excel Worksheet Functions 4 June 26th 07 04:38 AM
CHANGE TEXT TO DATE FORMAT deniseh Excel Discussion (Misc queries) 2 September 15th 05 12:48 PM


All times are GMT +1. The time now is 05:23 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"