Count all Dates prior to Row Date

Pestomania

Active Member
Joined
May 30, 2018
Messages
335
Office Version
  1. 365
Platform
  1. Windows
Hello,

I have two tables. The two columns that are in question are below. I am trying to count how many dates in Table 2 [In Service Date] that come before the "Accident Date". The actual data is 43000 rows.

Data.xlsx
B
1Accident Date
228-01-2025
324-01-2025
409-01-2025
508-01-2025
608-01-2025
729-12-2024
811-12-2024
927-11-2024
1027-11-2024
1125-11-2024
1220-11-2024
Accidents Detail



Data.xlsx
M
1In Service Date
201-12-1958
319-12-1958
415-08-1958
530-09-1958
617-10-1958
723-10-1958
828-08-1959
919-07-1959
1022-08-1959
1101-09-1959
1222-09-1959
1302-10-1959
1406-10-1959
1520-10-1959
1629-10-1959
1727-10-1959
1808-12-1959
1913-12-1959
2013-01-1960
2128-01-1960
2206-03-1960
2326-04-1960
2428-04-1960
2519-04-1959
2628-05-1959
2716-07-1959
2810-08-1959
2921-10-1959
3012-12-1959
3122-12-1959
3229-01-1960
3319-03-1960
3424-03-1960
3513-05-1960
3623-06-1960
3711-07-1960
3829-07-1960
3904-12-1959
4014-01-1960
4112-02-1960
4209-04-1960
4308-06-1960
4416-03-1959
4504-05-1959
4631-12-1958
4723-01-1959
4831-01-1959
4913-02-1959
5027-02-1959
5127-03-1959
5209-04-1959
5323-04-1959
5412-05-1959
5521-05-1959
5628-05-1959
5705-06-1959
5819-06-1959
5929-06-1959
6027-07-1959
6131-07-1959
6222-08-1959
6312-08-1959
6415-09-1959
6505-10-1959
6614-10-1959
6729-10-1959
6820-11-1959
6908-07-1959
7017-03-1959
7130-03-1959
7203-04-1959
7318-04-1959
7429-04-1959
7510-05-1959
7613-05-1959
7728-05-1959
7824-05-1959
7913-06-1959
8001-07-1959
8110-07-1959
8214-07-1959
8301-08-1959
8410-11-1959
8505-11-1959
8610-11-1959
8725-11-1959
8815-12-1959
8923-12-1959
9018-01-1960
9130-12-1959
9201-04-1960
9305-04-1960
9422-03-1960
9514-04-1960
9609-05-1960
9729-04-1960
9825-05-1960
9901-07-1960
10009-06-1960
10101-07-1960
10211-06-1959
10303-12-1959
10415-01-1960
10521-01-1960
10610-02-1960
All Boeing Aircraft




I tried something like this, but it didn't work.

=COUNTIFS(Table2[In Service Date],<[@[Accident Date]])
 

Excel Facts

Excel Joke
Why can't spreadsheets drive cars? They crash too often!
How about
Excel Formula:
=COUNTIFS(Table2[In Service Date],"<"&[@[Accident Date]])
 
Upvote 0
Solution

Forum statistics

Threads
1,226,465
Messages
6,191,185
Members
453,646
Latest member
BOUCHOUATA

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
Back
Top