Help needed with how to count cells based on fill colour

%3CLINGO-SUB%20id%3D%22lingo-sub-334044%22%20slang%3D%22en-US%22%3EHelp%20needed%20with%20how%20to%20count%20cells%20based%20on%20fill%20colour%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-334044%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20Everyone.%3CBR%20%2F%3E%3CBR%20%2F%3EI%20have%20a%20table%20that%20looks%20like%20something%20like%20this%3A%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20image-alt%3D%22Data.PNG%22%20style%3D%22width%3A%20228px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F72580iA7972CCC36D45DC8%2Fimage-size%2Fmedium%3Fv%3D1.0%26amp%3Bpx%3D400%22%20title%3D%22Data.PNG%22%20alt%3D%22Data.PNG%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHow%20can%20I%20make%20it%20so%20that%3A%3CBR%20%2F%3E%3CBR%20%2F%3E1%20-%20Cell%20A10%20counts%20only%20the%20cells%20that%20contains%20a%20date%20-%20so%20the%20total%20should%20be%203).%3C%2FP%3E%3CP%3E%3CBR%20%2F%3E2%20-%20Cell%20B10%20counts%20only%20the%20green%20cells%20(or%20any%20other%20colour%20I%20choose)%20-%20so%20the%20total%20should%20be%202.%3CBR%20%2F%3E%3CBR%20%2F%3E3%20-%20Cell%20C10%20counts%20only%20the%20cells%20that%20contain%20a%20text%20value%20I%20specify%20(e.g.%20'C')%20so%20the%20total%20should%20be%202.%3CBR%20%2F%3E%3CBR%20%2F%3EFor%20that%2C%20I%20have%20this%20formula%2C%20is%20it%20correct%3F%3CBR%20%2F%3E%3CBR%20%2F%3E%3CSTRONG%3E%3DCOUNTIF(C3%3AC5%2C%22*C*%22)%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E4%20-%20In%20cell%20D10%20(not%20shown)%20it%20counts%20the%20cells%20that%20are%20orange%20or%20green%20from%20column%20A.%26nbsp%3B%20So%20the%20total%20returned%20is%202.%3CBR%20%2F%3E%3CBR%20%2F%3EMany%20thanks%20for%20your%20help.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-334044%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EFormulas%20and%20Functions%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
Highlighted
Contributor

Hi Everyone.

I have a table that looks like something like this:

 

 

Data.PNG

 

How can I make it so that:

1 - Cell A10 counts only the cells that contains a date - so the total should be 3).


2 - Cell B10 counts only the green cells (or any other colour I choose) - so the total should be 2.

3 - Cell C10 counts only the cells that contain a text value I specify (e.g. 'C') so the total should be 2.

For that, I have this formula, is it correct?

=COUNTIF(C3:C5,"*C*")

 

4 - In cell D10 (not shown) it counts the cells that are orange or green from column A.  So the total returned is 2.

Many thanks for your help.

 

       

0 Replies