Calculating expired boxes in my matrix

craigmcgowan08

New Member
Joined
Mar 6, 2023
Messages
4
Office Version
  1. 2021
Platform
  1. Windows
Hello,
I need some assistance. I have a training matrix with all my staff and their certification dates. The collum beside the date of certification figures out the date it will expire and turns yellow 90 days before expiry and turns red when expired or if no date has been inputted.
I used the formula =counting(B9:BE45,"<"&today()). This gives me a total of 72 red boxes, but when I count the red boxes, there are over 95. How do I adjust this.
 

Excel Facts

How to create a cell-sized chart?
Tiny charts, called Sparklines, were added to Excel 2010. Look for Sparklines on the Insert tab.
Hello,
I need some assistance. I have a training matrix with all my staff and their certification dates. The collum beside the date of certification figures out the date it will expire and turns yellow 90 days before expiry and turns red when expired or if no date has been inputted.
I used the formula =counting(B9:BE45,"<"&today()). This gives me a total of 72 red boxes, but when I count the red boxes, there are over 95. How do I adjust this.
Sorry, meant countif. Auto correct changed it to counting.
 
Upvote 0
Hi & welcome to MrExcel.
How about
Excel Formula:
=COUNTIFS(B9:BE45,"")+COUNTIFS(B9:BE45,"<"&TODAY())
 
Upvote 0
Thanks so much for responding. I tried that code and it gave me a total of 1789 expired boxes. I should only have about 80 🤔.
 
Upvote 0
In that case can you post some sample data.

MrExcel has a tool called “XL2BB” that lets you post samples of your data that will allow us to copy/paste it to our Excel spreadsheets, so we can work with the same copy of data that you are. Instructions on using this tool can be found here: XL2BB Add-in

Note that there is also a "Test Here” forum on this board. This is a place where you can test using this tool (or any other posting techniques that you want to test) before trying to use those tools in your actual posts.
 
Upvote 0

Forum statistics

Threads
1,224,825
Messages
6,181,189
Members
453,020
Latest member
Mohamed Magdi Tawfiq Emam

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