![]() |
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? |
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? |
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