Hi all - First time posting here. Thanks in advance for the help. I'm familiar with basic Excel functions and formulas. Running Office 365. As part of a recent project, I have a list of dates. I need to count the number of cells within a date range AND if they colored red or green. The team uses red/green to flag a specific aspect to minimize data tracking.
I can easily count the cells in the date range using the COUNTIFS function (e.g. =COUNTIFS(B14:B17,">=8/1/2021",B14:B17,"<=8/31/2021"). Using a macro found online, I am able to successfully count the number of cells of each color by creating a custom function called "colorfunction" (e.g. =colorfunction(F2,B14:B17,FALSE, where F2 is the reference cell color, the TRUE/FALSE statement is for summing and has no relevance to my use).
Unfortunately, I'm unable to nest the "colorfunction" function within the COUNTIFS function as a third criteria to accomplish my final goal (e.g. =COUNTIFS(J1:J5,">=8/1/2021",J1:J5,"=8/31/2021",J1:J5,"=colorfunction(F2,J1:J5,FALSE)"). I tried variations within the COUNTIFS equation, but this is where my lack of VBA experience shines.
Any support is greatly appreciated!
Bookmarks