creating an excel formula that counts the number of entries that are outdated.

amyexcel

New Member
Joined
Mar 31, 2021
Messages
2
Office Version
  1. 2016
Platform
  1. Windows
how would I create an excel formula that counts the number of entries that are outdated.
I have a column (B) with Months entered (mm-yy) and i need to have a running count of how many have surpassed the 6 month mark.
Really no clue of how to create a formula to address this. #wishiwenttoexcelschool
 

Excel Facts

Excel Can Read to You
Customize Quick Access Toolbar. From All Commands, add Speak Cells or Speak Cells on Enter to QAT. Select cells. Press Speak Cells.
Paste this formula in any cell that is not in Column B :

VBA Code:
=COUNTIF(B:B,"<" & DATE(YEAR(TODAY()),MONTH(TODAY())-6,DAY(TODAY()+1)))
 
Upvote 0
are the dates real dates OR Text ?
change the format to General and the dates should change from a format of mm-yy to a number
otherwise if text maybe more difficult to work out

if real dates then we can use a countif ()
=COUNTIF(B2:B50,"<="&DATE(YEAR(TODAY()),MONTH(TODAY())-6,DAY(1)))
See D2 below
this is from the 1st of the month based on todays date - to 6mth ago

Time to 6mins ETAF.xlsx
ABCDE
1
2102-208
3203-20
4304-20
5405-20
6505-20
7606-20
8707-20
9808-20
10909-209/1/20
111010-20
121111-20
131212-20
141301-21
151402-21
Sheet2
Cell Formulas
RangeFormula
D2D2=COUNTIF(B2:B50,"<="&DATE(YEAR(TODAY()),MONTH(TODAY())-6,DAY(1)))
C10C10=DATE(YEAR(TODAY()),MONTH(TODAY())-6,DAY(1))
 
Upvote 0
Hi,

Assuming Real Date values in Column B.
D2 will Count how many Dates are 6 months or older, to the Day of Today.
E2 will Count how many Dates are More than 6 months old, to the Day of Today.

Book3.xlsx
ABCDE
1
212/1/2020109
323/2/2020
434/1/2020
545/1/2020
655/31/2020
766/30/2020
877/30/2020
988/29/2020
1099/28/2020
11109/30/2020
121111/27/2020
131212/27/2020
14131/26/2021
15142/25/2021
16
Sheet882
Cell Formulas
RangeFormula
D2D2=COUNTIF(B2:B50,"<="&EDATE(TODAY(),-6))
E2E2=COUNTIF(B2:B50,"<"&EDATE(TODAY(),-6))
 
Upvote 0
Hi there, thank you so much. That has solved my query and allowed me to plough on! i've saved the formula for future reference. Really wish I was a pro at this excel stuff!
 
Upvote 0
You're welcome, thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,214,982
Messages
6,122,575
Members
449,089
Latest member
Motoracer88

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