ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Converting DD/MM/YYYY format into text MMYYYY (https://www.excelbanter.com/excel-discussion-misc-queries/102936-converting-dd-mm-yyyy-format-into-text-mmyyyy.html)

giantwolf

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


Sloth

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



giantwolf

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


Toppers

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




All times are GMT +1. The time now is 02:14 AM.

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