ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Total number of each month in a column of dates (https://www.excelbanter.com/excel-worksheet-functions/6718-total-number-each-month-column-dates.html)

GeorgeF.

Total number of each month in a column of dates
 
I have a list of dates, mmm-dd-yy from which I want the total number of
occurrences of each month and the sum of associated expenses a couple of
columns to the right

Frank Kabel

Hi
1. Occurences:
=SUMPRODUCT(--(MONTH(A1:A100)=1),--(A1:A100<""))

2. Sum:
=SUMPRODUCT(--(MONTH(A1:A100)=1),--(A1:A100<""),B1:B100)

Also see:
http://www.xldynamic.com/source/xld.SUMPRODUCT.html

--
Regards
Frank Kabel
Frankfurt, Germany

"GeorgeF." schrieb im Newsbeitrag
...
I have a list of dates, mmm-dd-yy from which I want the total number

of
occurrences of each month and the sum of associated expenses a couple

of
columns to the right




All times are GMT +1. The time now is 04:49 AM.

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