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

前端 未结 3 1814
天命终不由人
天命终不由人 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 15:59

    In Google sheets you can use

    =COUNT(FILTER(A:A,MONTH(A:A) = MONTH(TODAY()),YEAR(A:A)=YEAR(TODAY())))
    

    Where A:A is the column with your dates

提交回复
热议问题