Count all records from certain month in excel

后端 未结 2 1844
旧巷少年郎
旧巷少年郎 2021-01-25 22:07

I have a sheet of trainings in excel that are organized by date and I am trying to do a monthly statistics report. So, I want to count, through an excel formula, the number of

2条回答
  •  旧巷少年郎
    2021-01-25 23:07

    With the "header of the stat column" as A1 and the training dates in A2:A999 you could use,

    =countifs(a2:index(a:a, match(1e99, a:a)), ">="&date(2015, a1, 1), a2:index(a:a, match(1e99, a:a)), "<"&edate(date(2015, a1, 1), 1))
    

提交回复
热议问题