Hello!
I have an excel file like this:
I was able to use the function to program that automatically counts how many times each person listed in column K appeared in column C, automatically count me how many times a specific card with numbers 1-15 from column N appears in column B, now I need to automatically counted me how many times for a particular number from column N appearing in column B in the range D6: E111 there is a field with a red background color.
in the P column it is to count how many times "1" has a red background, if "2" is red it is to count in Q etc.
I am asking for help in programming the function, I do not know how to make it count based on the background color.
Attached I add a file to further illustrate the problem. Fields P6: S19 I filled in manually to show how it is to be calculated in the end.
I have an excel file like this:

I was able to use the function to program that automatically counts how many times each person listed in column K appeared in column C, automatically count me how many times a specific card with numbers 1-15 from column N appears in column B, now I need to automatically counted me how many times for a particular number from column N appearing in column B in the range D6: E111 there is a field with a red background color.
in the P column it is to count how many times "1" has a red background, if "2" is red it is to count in Q etc.
I am asking for help in programming the function, I do not know how to make it count based on the background color.
Attached I add a file to further illustrate the problem. Fields P6: S19 I filled in manually to show how it is to be calculated in the end.