ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Summarise the date by month (https://www.excelbanter.com/excel-worksheet-functions/143120-summarise-date-month.html)

Sarah (OGI)

Summarise the date by month
 
I have a list of dates in ascending order.

In another column, I want to summarise the dates according to month, but
only for the first instance of that month, i.e. for the first Jan date
listed, I want the adjacent cell to show 'January', but I don't want the word
'January' to show for all Jan dates.

Any ideas?

Geoff C

Summarise the date by month
 
It's a bit of a cheat, but you can give the right appearance with conditional
formatting. Where your dates are in column A, put the formula

=DATE(YEAR(A2),MONTH(A2),1) etc. in column B.

Then conditionally format the cell in column B3 as follows

Cell Value is Equal To =B2

and set Font to White on that condition

Finally paste the format onto the rest of column B.


"Sarah (OGI)" wrote:

I have a list of dates in ascending order.

In another column, I want to summarise the dates according to month, but
only for the first instance of that month, i.e. for the first Jan date
listed, I want the adjacent cell to show 'January', but I don't want the word
'January' to show for all Jan dates.

Any ideas?


Teethless mama

Summarise the date by month
 
B2 =TEXT(A2,"mmmm")
B3 =IF(MONTH(A3)=MONTH(A2),"",TEXT(A3,"mmmm"))

copy from B3 down as far as needed


"Sarah (OGI)" wrote:

I have a list of dates in ascending order.

In another column, I want to summarise the dates according to month, but
only for the first instance of that month, i.e. for the first Jan date
listed, I want the adjacent cell to show 'January', but I don't want the word
'January' to show for all Jan dates.

Any ideas?



All times are GMT +1. The time now is 07:02 PM.

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