Change dates to non-numeric text

  • Thread starter Thread starter Don Niall
  • Start date Start date
D

Don Niall

Is there an effective way to convert dates to non-
numeric 'general text', so that a date formated as 'MMM'
will appear in text as Feb (for example), while a date
formatted as 'YYYY' will appear as 2004 (another example).
I am working with a pivot table - but am getting multiple
same year entries in a layout pull-down menu? Ecen though
I have formatted the dates as MMM and YYYY respectively I
note that if I click on the cell the dates still appear in
the conventional DD/MMM/YYYY format? I think this is
causing my problem ...

Don-
 
Hi Don
try
=TEXT(A1,"MMMM")
or
=TEXT(A1,"YYYY")

to convert the date in A1 to a specific text
Frank
 
An alternative approach is to generate the pivot table directly from the
dates and then group by month and/or year within the pivot table. This has
three advantages:
Firstly, it does not require a separate column for the conversion to text.
Secondly, it maintains the chronological ordering of months.
Thirdly, it enables months in different years to be handled sensibly.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top