Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default Converting DD/MM/YYYY format into text MMYYYY


Hi,

Hoping one of you geniuses can help me. I have a column of dates in
DD/MM/YYYY format and I want to (in another column) change them to text
so I just show MMYYYY. Any ideas?

Also, whilst I am here, does anyone know how to count occurrences of a
particular date (by month). ie. if I have all the days in 2006 listed
in a column, how would I count how many days fall in a particular
month?

Many thanks in advance,

GW


--
giantwolf
------------------------------------------------------------------------
giantwolf's Profile: http://www.excelforum.com/member.php...o&userid=24718
View this thread: http://www.excelforum.com/showthread...hreadid=567897

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 252
Default Converting DD/MM/YYYY format into text MMYYYY

1.
=TEXT(A1,"MMYYYY")

2. In this example I count the number of days in range A1:A100 that fall
within August 2006
=SUMPRODUCT((A1:A100=DATE(2006,8,1))-(A1:A100=DATE(2006,9,1)))

"giantwolf" wrote:


Hi,

Hoping one of you geniuses can help me. I have a column of dates in
DD/MM/YYYY format and I want to (in another column) change them to text
so I just show MMYYYY. Any ideas?

Also, whilst I am here, does anyone know how to count occurrences of a
particular date (by month). ie. if I have all the days in 2006 listed
in a column, how would I count how many days fall in a particular
month?

Many thanks in advance,

GW


--
giantwolf
------------------------------------------------------------------------
giantwolf's Profile: http://www.excelforum.com/member.php...o&userid=24718
View this thread: http://www.excelforum.com/showthread...hreadid=567897


  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default Converting DD/MM/YYYY format into text MMYYYY


thanks sloth


--
giantwolf
------------------------------------------------------------------------
giantwolf's Profile: http://www.excelforum.com/member.php...o&userid=24718
View this thread: http://www.excelforum.com/showthread...hreadid=567897

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4,339
Default Converting DD/MM/YYYY format into text MMYYYY

=SUMPRODUCT(--(MONTH(A1:A100))=8) for August dates

"Sloth" wrote:

1.
=TEXT(A1,"MMYYYY")

2. In this example I count the number of days in range A1:A100 that fall
within August 2006
=SUMPRODUCT((A1:A100=DATE(2006,8,1))-(A1:A100=DATE(2006,9,1)))

"giantwolf" wrote:


Hi,

Hoping one of you geniuses can help me. I have a column of dates in
DD/MM/YYYY format and I want to (in another column) change them to text
so I just show MMYYYY. Any ideas?

Also, whilst I am here, does anyone know how to count occurrences of a
particular date (by month). ie. if I have all the days in 2006 listed
in a column, how would I count how many days fall in a particular
month?

Many thanks in advance,

GW


--
giantwolf
------------------------------------------------------------------------
giantwolf's Profile: http://www.excelforum.com/member.php...o&userid=24718
View this thread: http://www.excelforum.com/showthread...hreadid=567897


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
How to maintain text characters when converting from xls to dbf f. Nombo Excel Discussion (Misc queries) 1 January 4th 06 10:21 PM
Changing cell format - for example text to numeric sjrku Excel Discussion (Misc queries) 3 December 30th 05 10:40 PM
Converting number or text to a Date Format samhain New Users to Excel 2 October 17th 05 02:28 PM
How do I set Excel cell format to "Text" from VB.NET? John Brock Excel Discussion (Misc queries) 8 July 26th 05 04:36 AM
format cells having text steve Excel Discussion (Misc queries) 2 July 15th 05 01:24 AM


All times are GMT +1. The time now is 10:46 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"