#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 33
Default Convert date to text

How I can convert 21-05-2007 to text May ?
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default Convert date to text

=text(a1,"mmm")
or
=text(a1,"mmmm")
if A1 contains the date.

Or you could just give the cell a custom format of:
MMM
or
MMMM

The date will still be in the cell (in the formula bar), but you'll see the
month (or month abbreviation).

Miguel wrote:

How I can convert 21-05-2007 to text May ?


--

Dave Peterson
  #3   Report Post  
Posted to microsoft.public.excel.misc
CLR CLR is offline
external usenet poster
 
Posts: 1,998
Default Convert date to text

=LOOKUP((MID(A1,FIND("-",A1,1)+1,2)*1),{1,2,3,4,5,6,7,8,9,10,11,12},{"Jan uary","February","March","April","May","June","Jul y","August","September","October","November","Dece mber"})

All on one line, watch out for word-wrap.

Vaya con Dios,
Chuck, CABGx3



"Miguel" wrote:

How I can convert 21-05-2007 to text May ?

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 33
Default Convert date to text

Hi Chuck,

Thanks for your help but give me an error. Should replace "," by ";" ?
Thanks

Miguel

"CLR" wrote:

=LOOKUP((MID(A1,FIND("-",A1,1)+1,2)*1),{1,2,3,4,5,6,7,8,9,10,11,12},{"Jan uary","February","March","April","May","June","Jul y","August","September","October","November","Dece mber"})

All on one line, watch out for word-wrap.

Vaya con Dios,
Chuck, CABGx3



"Miguel" wrote:

How I can convert 21-05-2007 to text May ?

  #5   Report Post  
Posted to microsoft.public.excel.misc
CLR CLR is offline
external usenet poster
 
Posts: 1,998
Default Convert date to text

Could be..........if you're using other than a U.S. version of
Excel...........give it a try.

Vaya con Dios,
Chuck, CABGx3



"Miguel" wrote:

Hi Chuck,

Thanks for your help but give me an error. Should replace "," by ";" ?
Thanks

Miguel

"CLR" wrote:

=LOOKUP((MID(A1,FIND("-",A1,1)+1,2)*1),{1,2,3,4,5,6,7,8,9,10,11,12},{"Jan uary","February","March","April","May","June","Jul y","August","September","October","November","Dece mber"})

All on one line, watch out for word-wrap.

Vaya con Dios,
Chuck, CABGx3



"Miguel" wrote:

How I can convert 21-05-2007 to text May ?



  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 16
Default Convert date to text

did you try to use the cell formating to do this? If you need the date in
one field and to show May in another then you could have the date in one
cell, reference that from another cell and have the second one formated to
only show the MAY. You might have to change the way you put the date in
since the format of the date is generally recognized as the month first not
the day.

"Miguel" wrote:

How I can convert 21-05-2007 to text May ?

  #7   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 33
Default Convert date to text

Hi

If I use Format Cells I will have a problem with pivot tables . I need to
transform a date in a pure text .
Thanks
Miguel

"Balzyone" wrote:

did you try to use the cell formating to do this? If you need the date in
one field and to show May in another then you could have the date in one
cell, reference that from another cell and have the second one formated to
only show the MAY. You might have to change the way you put the date in
since the format of the date is generally recognized as the month first not
the day.

"Miguel" wrote:

How I can convert 21-05-2007 to text May ?

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 Text to DATE Dimmer Excel Discussion (Misc queries) 8 January 22nd 09 01:15 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
convert date to text Lamb Chop Excel Discussion (Misc queries) 2 June 12th 06 07:10 PM
Convert a Date to Text? Dave76Mizzou Excel Worksheet Functions 1 March 9th 06 01:32 AM
How to convert date to text galsaba Excel Discussion (Misc queries) 2 May 22nd 05 08:31 PM


All times are GMT +1. The time now is 08:58 PM.

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"