Counting Cells with Conditional Formatting

jbanks

New Member
Joined
Sep 26, 2007
Messages
25
Office Version
  1. 365
Hi

I have read various threads regarding this but due to a lack of VBA knowledge I get lost in them! Therefore, I'm hoping by explaining my situation, it may make more sense to me -
So here goes!

I work as a teacher and my role is the analysis of data, something I can do fairly easily using my Excel knowledge but I want to take it a step further (maybe this isn't the best was and another suggestion would be great.

The spreadsheets I use have 400 students in columns A (first name) and B (last name), in columns C to AC I have the students targets for the 26 subjects/courses we offer, a student would only study between 10 and 14 of these so in a row there would be blanks. In cells AE to BE I have the students current grades (those which show current situation/progress). The first student would be in ROW 2.

I want to show whether a student is below, equal to or exceeding their target and have done this using Conditional Formatting (3 separate conditions) using RED for below, White for Equal to and Green for Exceeding.

I now want to count how many of each colour there are to quickly work out how many of the subjects the students are falling behind in so we can focus our efforts on these.

Any help would be great (please keep it straightforward) and if you can link it to my cell references that'd be even better!

I can supply an exert if this would make it easier!

Thanks ever so much for any suggestions (of this isn't the best way!) or any specific help!

A. Teacher!
 

Excel Facts

Format cells as time
Select range and press Ctrl+Shift+2 to format cells as time. (Shift 2 is the @ sign).
The easiest way is to use a COUNTIF formula using the same criteria that you applied for your CFs.
 
Upvote 0
Thanks for your reply!

I am not sure if I can use the same Conditions to do a COUNTIF as a child may have a Target of a B in English and A in Maths, however their current progress grades could be both Bs therefore one would be shaded WHITE (equal to Target) and the other RED (below Target), unless I have misunderstood how I could use COUNTIF in this example. If you could explain further that would be great (its late in the UK!)

Also in Work I use Office 2007 so any solutions using that would help too!

Thanks again!

J
 
Last edited:
Upvote 0
Thanks again!

I've sen that when I have searched previous threads but due to my lack of VBA I can't work it out!

So I'm a bit lost with it!
 
Upvote 0
There are limits to the code that Vog II pasted a link to. Depending on what you are doing will determine whether that may help or not.

What are your exact conditions you are using in Conditional Formatting?
 
Upvote 0

Forum statistics

Threads
1,215,248
Messages
6,123,867
Members
449,130
Latest member
lolasmith

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