Counting dates before the latest date in a range

STEVENS3010

Board Regular
Joined
Feb 4, 2020
Messages
61
Office Version
  1. 365
  2. 2016
Platform
  1. Windows
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.

Toadstool

Well-known Member
Joined
Mar 5, 2018
Messages
1,595
Office Version
  1. 2016
Platform
  1. Windows
Hi Stevens3010,

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

STEVENS3010

Board Regular
Joined
Feb 4, 2020
Messages
61
Office Version
  1. 365
  2. 2016
Platform
  1. Windows
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
Joined
Jun 12, 2014
Messages
58,585
Office Version
  1. 365
Platform
  1. Windows
How about
Excel Formula:
=COUNTIFS(B:B,"<"&WORKDAY(TODAY(),-1))
 

Fluff

MrExcel MVP, Moderator
Joined
Jun 12, 2014
Messages
58,585
Office Version
  1. 365
Platform
  1. Windows
Glad we could help & thanks for the feedback.
 

Watch MrExcel Video

Forum statistics

Threads
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.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

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

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

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
Top