ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Changing dates (https://www.excelbanter.com/excel-discussion-misc-queries/254621-changing-dates.html)

MICHALK

Changing dates
 
How do you change a date to text and return a string such as mmddyy to
replace 01/01/10? In other words remove the slashes but keep the same
numbers.

Fred Smith[_4_]

Changing dates
 
Use the text function, as in:
=text(a1,"mmddyy")

Regards,
Fred

"MICHALK" wrote in message
...
How do you change a date to text and return a string such as mmddyy to
replace 01/01/10? In other words remove the slashes but keep the same
numbers.



Dave Peterson

Changing dates
 
=text(a1,"mmddyy")
if A1 contained the date

Or just format the cell using a custom format:
mmddyy



MICHALK wrote:

How do you change a date to text and return a string such as mmddyy to
replace 01/01/10? In other words remove the slashes but keep the same
numbers.


--

Dave Peterson

Gord Dibben

Changing dates
 
=TEXT(cellref,"mmddyy")


Gord Dibben MS Excel MVP

On Wed, 27 Jan 2010 13:42:01 -0800, MICHALK
wrote:

How do you change a date to text and return a string such as mmddyy to
replace 01/01/10? In other words remove the slashes but keep the same
numbers.



MICHALK

Changing dates
 


"Dave Peterson" wrote:

=text(a1,"mmddyy")
if A1 contained the date

Or just format the cell using a custom format:
mmddyy



MICHALK wrote:

How do you change a date to text and return a string such as mmddyy to
replace 01/01/10? In other words remove the slashes but keep the same
numbers.


--

Dave Peterson
.

THANKS SO MUCH!!


MICHALK

Changing dates
 


"Fred Smith" wrote:

Use the text function, as in:
=text(a1,"mmddyy")

Regards,
Fred

"MICHALK" wrote in message
...
How do you change a date to text and return a string such as mmddyy to
replace 01/01/10? In other words remove the slashes but keep the same
numbers.


.
Thanks so much!!


MICHALK

Changing dates
 


"Gord Dibben" wrote:

=TEXT(cellref,"mmddyy")


Gord Dibben MS Excel MVP

On Wed, 27 Jan 2010 13:42:01 -0800, MICHALK
wrote:

How do you change a date to text and return a string such as mmddyy to
replace 01/01/10? In other words remove the slashes but keep the same
numbers.


.
THANKS SO MUCH!!



All times are GMT +1. The time now is 09:57 AM.

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