# Counting dates before the latest date in a range

#### STEVENS3010

##### Board Regular
Hi all,

I have a spreadsheet where one of the columns contains a list of dates and I'm looking for a formula to count any dates more than one day prior.

For example... I have =today in cell a1 and it displays 28/03/2021 (today's date). In Column B I have a list of dates (example below) and I need a formula to count any dates more than one day prior i.e. anything before 27/03/2021. Is this possible?

Example List:
28/03/2021
01/03/2021
25/02/2021
16/02/2021

### Excel Facts

Control Word Wrap
Press Alt+Enter to move to a new row in a cell. Lets you control where the words wrap.

##### Well-known Member
Hi Stevens3010,

This should work:
Excel Formula:
=COUNTIF(B1:\$B\$9999,"<"&TODAY()-1)

#### STEVENS3010

##### Board Regular
Hi Stevens3010,

This should work:
Excel Formula:
=COUNTIF(B1:\$B\$9999,"<"&TODAY()-1)
This is great, thank you. Do you know if it is possible to amend the forumla for working days? For example, I have a list of dates, but I wish to ignore anything from today and the previous working day, and then count everything else. Is this possible?

#### Fluff

##### MrExcel MVP, Moderator
Excel Formula:
=COUNTIFS(B:B,"<"&WORKDAY(TODAY(),-1))

#### STEVENS3010

##### Board Regular
Excel Formula:
=COUNTIFS(B:B,"<"&WORKDAY(TODAY(),-1))
Brilliant! Thank you

#### Fluff

##### MrExcel MVP, Moderator
Glad we could help & thanks for the feedback.

Replies
11
Views
92
Replies
2
Views
83
Replies
2
Views
84
Replies
5
Views
98
Replies
25
Views
442

1,133,621
Messages
5,659,922
Members
418,536
Latest member
Tezzies

### We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.

### Which adblocker are you using?

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

### Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

### Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back