=LAMBDA(array,MAP(array,LAMBDA(a,GET.CELL(63,a))))
I am coloring them using the conditional formatting. However, each column has a different condition. Some columns are highlighted because they are blank, and some are highlighted because they do not meeting the specific criteria for that field.You cannot count cell color by formula... unless you are coloring the cells with a conditional formatting formula, then you could use the same formula conditions to count cells. Otherwise, you have to use VBA.
I am not familiar with VBA, Is this a VBA Code? how do I use it? Can I get an example using countifs? Thanks.You could use a custom LAMBDA function, i.e. to define a name (you can name it e.g. COLOR):
Excel Formula:=LAMBDA(array,MAP(array,LAMBDA(a,GET.CELL(63,a))))
This will allow you to call your custom function, specifically to select a range of cells and return a list of corresponding numbers for different colors; then you could use this helper column as an input for another Excel function such as COUNTIFS or SUMIFS.