collate RAG results

lp78

New Member
Joined
Feb 21, 2011
Messages
36
hi all and thanks in advance for any help that is offered.
I have a spreadsheet with with a 'RAG' status in column A. I would like the total number of 'reds' to populate cell Z2 and the total number of 'ambers' to populate cell Z3. Is this possible?
 

Excel Facts

Formula for Yesterday
Name Manager, New Name. Yesterday =TODAY()-1. OK. Then, use =YESTERDAY in any cell. Tomorrow could be =TODAY()+1.
Are your 'red's and 'amber's actually cell contents, or are they coloured? If they are coloured, how are they coloured .... by Conditional Formatting, or by macro? Any information would be useful. Or maybe James answer covers your case.
 
Upvote 0
In Z2 enter

=COUNTIF(A:A,"red")

In Z3 enter

=COUNTIF(A:A,"amber")

You can change "A:A" to whatever range you need. Right now it is looking at the whole column of A.
 
Upvote 0
hi and thank you. The cells in Column A hold dates and are conditionally formated to turn amber when 90 days have past and turn red when 180 days have past.
 
Upvote 0
Code:
=COUNTIF(A:A,"<"&(TODAY()-180))
will count dates more than 180 days old.

Code:
=COUNTIF(A:A,"<"&(TODAY()-90))-COUNTIF(A:A,"<"&(TODAY()-180))
will count dates between 90 and 180 days old.
 
Upvote 0
hi that worked great apart from i need it only to include dates thats do not have an end date in column k. Is this possible.
 
Upvote 0
hi that worked great apart from i need it only to include dates thats do not have an end date in column k. Is this possible.
 
Upvote 0

Forum statistics

Threads
1,224,605
Messages
6,179,860
Members
452,948
Latest member
UsmanAli786

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