I'm trying to use EDATE in conditional formatting to turn cells different colours and then use COUNTIF to count green and turn this into a percentage

TrainingManager999

New Member
Joined
Apr 6, 2023
Messages
5
Office Version
  1. 365
Platform
  1. Windows
The conditioning formatting worked when using "cells that contain" but other forums say that it has to be a formula to then use count function. Please can someone help without using macros as I don't understand these.
3.jpg
 

Excel Facts

Can you sort left to right?
To sort left-to-right, use the Sort dialog box. Click Options. Choose "Sort left to right"
Hi & welcome to MrExcel.
Can you please explain what you are trying to do.
 
Upvote 0
Welcome to the MrExcel Message Board!

Cross-posting (posting the same question in more than one forum) is not against our rules, but the method of doing so is covered by #13 of the Forum Rules.

Be sure to follow & read the link at the end of the rule too!

Cross posted at:

There is no need to repeat the link(s) provided above but if you have posted the question at other places, please provide links to those as well.

If you do cross-post in the future and also provide links, then there shouldn’t be a problem.
 
Upvote 0
Hi & welcome to MrExcel.
Can you please explain what you are trying to do.
Hi. The dates are completion dates of training and this training expires in 12 months of that date. I want the cells to be green if they are within date, amber if they are coming up to expiring within 2 months and red if they have expired. This worked when I did it with "cell contains" but when I switched it to a formula, it is just showing red everywhere. That's the first problem. Then what I need to do is show a percentage of dates in date ie in green against the total number of staff, showing how many people are compliant. I read that this was why the conditional formatting needed to be a formula for this to work but I can't get it to work.
 
Upvote 0
The conditional formatting has nothing to do with showing percentages, added to which a formula cannot "see" formatting of any sort.
You can get the count by using
Excel Formula:
=countifs(c4:c33,">="&edate(today(),9))
 
Upvote 0
Solution
The conditional formatting has nothing to do with showing percentages, added to which a formula cannot "see" formatting of any sort.
You can get the count by using
Excel Formula:
=countifs(c4:c33,">="&edate(today(),9))
Hi. That code comes back with a zero
 
Upvote 0
Do you have any dates that are greater than 9 months from today? (ie 6th Jan 2024 or more)
 
Upvote 0
Your'e welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,223,710
Messages
6,174,019
Members
452,542
Latest member
Bricklin

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