Changing Dates to Months

Redgirl9487

New Member
Joined
Jan 18, 2023
Messages
13
Office Version
  1. 365
Platform
  1. Windows
Hi I was wondering if anyone could help me please? I am trying to group the attached from dates into months?
Many thanks
 

Attachments

  • Capture.PNG
    Capture.PNG
    12.1 KB · Views: 8

Excel Facts

Move date out one month or year
Use =EDATE(A2,1) for one month later. Use EDATE(A2,12) for one year later.
If you have a valid date in cell A1, you can get the month of it like this:
Excel Formula:
=TEXT(A1,"mmmm")

If the dates span multiple years where you need the year portion for your grouping, you can include year like this:
Excel Formula:
=TEXT(A1,"mmmmyyyy")
 
Upvote 0
Thanks. I have been selecting group but it just comes up with an error message "cannot group that selection".
 
Upvote 0
Are your dates really entered as dates, or are they entered as text?
 
Upvote 0
In order to group by date, they have to be valid date entries. You could have a valid date entry, or what looks like a date entry, but is really text (and with text, you could enter anything).
Date functions/operations only work on valid date entries.

Dates in Excel are really stored as numbers, specifically the numbers of days since 1/0/1900. So they are really just numbers with special date formatting applied to them.
An easy way to check to see if you have a valid date entry or a text entry is to apply the ISNUMBER function on it.

Let's say that your entry is in cell A2. Then in any blank cell, enter this formula and see what it returns:
Excel Formula:
=ISNUMBER(A2)
If it returns "TRUE", you have a valid date entry in cell A2. If it returns "FALSE", you have a text entry in cell A2, not a valid date entry.

You would then need to convert all your values in that column from Text to Dates. You can do that by using "Text to Columns" on that column, choosing the Date option with the proper date structure (appears to be "DMY" in your example).
 
Upvote 0

Forum statistics

Threads
1,221,310
Messages
6,159,176
Members
451,543
Latest member
cesymcox

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top