Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2
Default How to convert formatted date into text.

I have imported a date field in the form of dd/mm/yyyy which i formatted
through excel to yyyy-dd-mm.

However this only affects the display and does not actually change the input
to the same format.

How I have the input converted to this format as I need to export it in csv
which only takes the input and does not carry the formatting.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,856
Default How to convert formatted date into text.

If you want to convert it into a text value then you can use this
formula in a helper column:

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

assuming the date is in A1. Copy the formula down, then you can fix
the values by highlighting the cells with the formula in, click <copy
then Edit | Paste Special | Values (check) | OK then <Esc. Now you
can copy/paste the helper cells over the original data, and then
delete the helper column.

Hope this helps.

Pete

On Apr 11, 7:29*pm, Ks DRM wrote:
I have imported a date field in the form of dd/mm/yyyy which i formatted
through excel to yyyy-dd-mm.

However this only affects the display and does not actually change the input
to the same format.

How I have the input converted to this format as I need to export it in csv
which only takes the input and does not carry the formatting.


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,651
Default How to convert formatted date into text.

I think you'll find that the CSV will keep the format in which you've
displayed the cell when you save it. Look at the CSV with Notepad.

The problem probably arises if you subsequently try to open the CSV with
Excel. If you want to do that and retain the formatting of the CSV, use
Data/ Import External Data to read the CSV, and specify the columns as text.
--
David Biddulph

"Ks DRM" wrote in message
...
I have imported a date field in the form of dd/mm/yyyy which i formatted
through excel to yyyy-dd-mm.

However this only affects the display and does not actually change the
input
to the same format.

How I have the input converted to this format as I need to export it in
csv
which only takes the input and does not carry the formatting.



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2
Default How to convert formatted date into text.

Thanks Peter, you are a life saver.

David, I tried saving it in CSV, but it did not save my formatted text. It
saved the original date which was in the field.

"Pete_UK" wrote:

If you want to convert it into a text value then you can use this
formula in a helper column:

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

assuming the date is in A1. Copy the formula down, then you can fix
the values by highlighting the cells with the formula in, click <copy
then Edit | Paste Special | Values (check) | OK then <Esc. Now you
can copy/paste the helper cells over the original data, and then
delete the helper column.

Hope this helps.

Pete

On Apr 11, 7:29 pm, Ks DRM wrote:
I have imported a date field in the form of dd/mm/yyyy which i formatted
through excel to yyyy-dd-mm.

However this only affects the display and does not actually change the input
to the same format.

How I have the input converted to this format as I need to export it in csv
which only takes the input and does not carry the formatting.



  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,856
Default How to convert formatted date into text.

You're welcome - thanks for feeding back.

Pete

On Apr 11, 9:49*pm, Ks DRM wrote:
Thanks Peter, you are a life saver.

David, I tried saving it in CSV, but it did not save my formatted text. It
saved the original date which was in the field.



"Pete_UK" wrote:
If you want to convert it into a text value then you can use this
formula in a helper column:


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


assuming the date is in A1. Copy the formula down, then you can fix
the values by highlighting the cells with the formula in, click <copy
then Edit | Paste Special | Values (check) | OK then <Esc. Now you
can copy/paste the helper cells over the original data, and then
delete the helper column.


Hope this helps.


Pete


On Apr 11, 7:29 pm, Ks DRM wrote:
I have imported a date field in the form of dd/mm/yyyy which i formatted
through excel to yyyy-dd-mm.


However this only affects the display and does not actually change the input
to the same format.


How I have the input converted to this format as I need to export it in csv
which only takes the input and does not carry the formatting.- Hide quoted text -


- Show quoted text -




  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,388
Default How to convert formatted date into text.

Hi,
The only way I know how to do this is use Text to Columns
Highlight your date column, DATA Text To Columns
Choose / as the delimiter
Choose a destination cell in a spare column (with 4 spare columns to the
right of it.
Press OK
The parsed data is formatted as general.
You can use the 4th spare column to Concatonate, combining them as required.
Regards - Dave
  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,651
Default How to convert formatted date into text.

So what date did you have in the cell, how was it formatted, and what did
you see when you opened the CSV with Notepad?
--
David Biddulph

"Ks DRM" wrote in message
...
Thanks Peter, you are a life saver.

David, I tried saving it in CSV, but it did not save my formatted text. It
saved the original date which was in the field.

"Pete_UK" wrote:

If you want to convert it into a text value then you can use this
formula in a helper column:

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

assuming the date is in A1. Copy the formula down, then you can fix
the values by highlighting the cells with the formula in, click <copy
then Edit | Paste Special | Values (check) | OK then <Esc. Now you
can copy/paste the helper cells over the original data, and then
delete the helper column.

Hope this helps.

Pete

On Apr 11, 7:29 pm, Ks DRM wrote:
I have imported a date field in the form of dd/mm/yyyy which i
formatted
through excel to yyyy-dd-mm.

However this only affects the display and does not actually change the
input
to the same format.

How I have the input converted to this format as I need to export it in
csv
which only takes the input and does not carry the formatting.





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
convert a text date to a true date JR Hester Excel Discussion (Misc queries) 20 November 15th 07 07:15 PM
how do i convert text to date (mm/yy text to mm/dd/yyyy date)? lindsey Excel Discussion (Misc queries) 1 July 27th 07 10:05 PM
Help: How do I convert a text date into a real date format japorms Excel Worksheet Functions 4 August 2nd 06 06:36 PM
Converting 'General' formatted cells to Text formatted cell using. Zahid Khan Excel Worksheet Functions 1 March 12th 05 07:13 PM
i have fields that are formatted for text that randomly convert t. dave glynn Excel Discussion (Misc queries) 2 February 22nd 05 09:03 PM


All times are GMT +1. The time now is 06:59 AM.

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

About Us

"It's about Microsoft Excel"