Count Conditional Formatted Cell Colors for each Column separately

Status
Not open for further replies.

andyka

Board Regular
Joined
Sep 20, 2021
Messages
52
Office Version
  1. 2019
Platform
  1. Windows
Hi
I am reposting this as I received no solution.
I have conditional formatted cells. I am looking for solution either in formula or VBA.

For Example: For range E5: E25 I wants to see result in E1 Number of blues in this example I have 2 blue
E2: I have Amber : 2
E3l Green = 2

I wants to show results for all other columns but Cell Color in Range E1:P3 should be automatically show similar color under that columns as shown from Range H5:P5 there is only Blue color so it should only show blue but if conditional changes and color changes in in any cell for example for the range H5:P5 if there is green color then it should show green and blue.

Please help as I fund no solution in Google.
Thank you in Advance

Gantt with dates.xlsm
ABCDEFGHIJKLMNOPQRST
1KEYNot Started255444432111Color in Range E1: P3 Need to Autmaticaly Count Color with Associated Color sepeartly as shown for each column
2InProgress121
3Completed21
4Activity NameStartFinishActivity StatusOct-21Nov-21Dec-21Jan-22Feb-22Mar-22Apr-22May-22Jun-22Jul-22Aug-22Sep-22
5 29-Oct-21            
6Task 1            
7Tak 1.202/10/2129/11/21Not Started02/10/2129/11/21          
8Task 229/11/21InProgress 29/11/21          
9Tak 1.312/10/21Completed12/10/21           
10Task 3            
11Tak 1.414/10/2129/12/21InProgress14/10/21 29/12/21         
12Task 429/11/21Not Started 29/11/21          
13Tak 1.529/12/21Not Started  29/12/21         
14Task 522/12/2120/02/22Not Started  22/12/21 20/02/22       
15Tak 1.618/11/2115/04/22Not Started 18/11/21    15/04/22     
16Task 6            
17Tak 1.729/10/21Completed29/10/21           
18Task 718/12/21Completed  18/12/21         
19 02-Nov-21            
20Task 2            
21Task 2.114/11/2102/09/22Not Started 14/11/21         02/09/22
22Task 328/03/2202/05/22Not Started     28/03/22 02/05/22    
23 04-Nov-21            
24Task 3            
25Task 3.123/10/2104/06/22Not Started23/10/21       04/06/22   
26
27THE RANGE FROM E5:P25 ARE CONDITIONAL FORMATED
Sheet1 (2)
Cell Formulas
RangeFormula
E5:P25E5=IFERROR(IFS(DATE(YEAR($B5),MONTH($B5),1)=E$4,$B5,DATE(YEAR($C5),MONTH($C5),1)=E$4,$C5),"")
Cells with Conditional Formatting
CellConditionCell FormatStop If True
E5:R25Expression=AND($D5=$B$2,IFS(AND($B5<>"",$C5<>""),AND(E$4>=DATE(YEAR($B5),MONTH($B5),1),E$4<=DATE(YEAR($C5),MONTH($C5),1)),AND($B5="",$C5=""),"",OR($B5="",$C5=""),IF(DATE(YEAR(MAX($B5,$C5)),MONTH(MAX($B5,$C5)),DAY(1))=E$4,TRUE)))textNO
E5:R25Expression=AND($D5=$B$3,IFS(AND($B5<>"",$C5<>""),AND(E$4>=DATE(YEAR($B5),MONTH($B5),1),E$4<=DATE(YEAR($C5),MONTH($C5),1)),AND($B5="",$C5=""),"",OR($B5="",$C5=""),IF(DATE(YEAR(MAX($B5,$C5)),MONTH(MAX($B5,$C5)),DAY(1))=E$4,TRUE)))textNO
E5:R25Expression=AND($D5=$B$1,IFS(AND($B5<>"",$C5<>""),AND(E$4>=DATE(YEAR($B5),MONTH($B5),1),E$4<=DATE(YEAR($C5),MONTH($C5),1)),AND($B5="",$C5=""),"",OR($B5="",$C5=""),IF(DATE(YEAR(MAX($B5,$C5)),MONTH(MAX($B5,$C5)),DAY(1))=E$4,TRUE)))textNO
 

Excel Facts

What is the shortcut key for Format Selection?
Ctrl+1 (the number one) will open the Format dialog for whatever is selected.
Duplicate to: Is There a Way to count Cell Background Color under Each Column Without Filtering

In future, please do not post the same question multiple times. Per Forum Rules (#12), posts of a duplicate nature will be locked or deleted.

In relation to your question here, I have closed this thread so please continue in the linked thread. If you do not receive a response, you can "bump" it by replying to it yourself, though we advise you to wait 24 hours before doing so, and not to bump a thread more than once a day.
 
Upvote 0
Status
Not open for further replies.

Forum statistics

Threads
1,224,823
Messages
6,181,185
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