Calculate number of rows with current month & year in Google Sheets or Excel

前端 未结 3 1819
天命终不由人
天命终不由人 2021-01-23 15:14

I have one row filled with dates in the format MM/dd/yyyy (with header row), such as:

DATES
5/12/2015
4/12/2012
5/7/2015
5/7/2014

I would like

3条回答
  •  北荒
    北荒 (楼主)
    2021-01-23 16:02

    With data in A1 through A20

    =SUMPRODUCT((MONTH(A1:A20)=MONTH(TODAY()))*(YEAR(A1:A20)=YEAR(TODAY())))
    

    enter image description here

提交回复
热议问题