Forum Discussion
busymamabee
Aug 15, 2022Copper Contributor
Counting Rows Based on Multiple Dates
Is there a way to count the number of rows that adhere to a certain date?
The goal would be for the pink cell to count the total number of rows in Column D that are associated with a date in Column C BEFORE today. So in the example below, the total number of rows would be 2 since only the dates in Row 8 and 9 are before today's date.
3 Replies
- OliverScheurichGold Contributor
=COUNTIF($C$8:$C$10,"<"&TODAY())=SUMPRODUCT(N($C$8:$C$10<TODAY()))An alternative could be SUMPRODUCT.
- busymamabeeCopper ContributorI must be doing something wrong...when I entered the bottom formula it came back with 14 as the sumproduct...
- OliverScheurichGold Contributor
Can you attach a screenshot of your file that shows the data and the formula? I can't imagine why the formula returns 14 unless it refers to a different range.