ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Excel 2002 Date Formatting (https://www.excelbanter.com/excel-discussion-misc-queries/20786-excel-2002-date-formatting.html)

skoladycz

Excel 2002 Date Formatting
 
Assuming the date entered is "01.27.2005", I want to format as "JAN.2005"
(not "Jan.2005") - is this possible?

Dave Peterson

Can you use a helper cell and show the results there?

=UPPER(TEXT(DATEVALUE(SUBSTITUTE(A1,".","/")),"mmm.yyyy"))

Worked ok with my USA date settings (mdy).

substitute() changed the dots to slashes.
datevalue() made it a real date
text() changed it to Jan.2005
and upper() changed the case.

skoladycz wrote:

Assuming the date entered is "01.27.2005", I want to format as "JAN.2005"
(not "Jan.2005") - is this possible?


--

Dave Peterson


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

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