Hi,
I am trying to get a sum of particular cells based upon their color. I have conditionally formatted cells to be Red, Yellow or Green based up the date a report was submitted, based upon the date is was due.
For example A1 contains the day an audit was carried out. Staff have 5 working days from the date in A1. The actual date the reported is submitted is the entered into B1 manually. If it is within 5 working days, it turns green as it is timely. If it is submitted after 5 working days, it turns yellow as it was late. If A1 contains a date and the report submission date is blank, the report is outstanding and stays red until a date is entered. If A1 is blank, B1 stays blank. I have got all the conditionally formatting working for this.
What I now require is a total sum of timely (Green), Late (Yellow), and Outstanding (Red), purely based on the format of each cell.
I cannot find how to do this.
The alternative I have is to add an additional column, C1, where I can record, Yes, No or N/A based upon the content of B1. Yes being Green, No being Yellow and N/A being Red. I can then use the COUNTIF function to collate the results from C1. I do not know how to generate the N/A in the same IF function however so can only get Yes or No based upon the Date range.
I would very much appreciate a solution to either the sum count based on formatting, or alternatively by using the additional column but need help generating the correct formula to provide three outcomes.
I have included an exemplar below to help explain. As you can see, both Yellow and Red is generating No which would give me incorrect values as totals.
Thank you in advance for your help!
I am trying to get a sum of particular cells based upon their color. I have conditionally formatted cells to be Red, Yellow or Green based up the date a report was submitted, based upon the date is was due.
For example A1 contains the day an audit was carried out. Staff have 5 working days from the date in A1. The actual date the reported is submitted is the entered into B1 manually. If it is within 5 working days, it turns green as it is timely. If it is submitted after 5 working days, it turns yellow as it was late. If A1 contains a date and the report submission date is blank, the report is outstanding and stays red until a date is entered. If A1 is blank, B1 stays blank. I have got all the conditionally formatting working for this.
What I now require is a total sum of timely (Green), Late (Yellow), and Outstanding (Red), purely based on the format of each cell.
I cannot find how to do this.
The alternative I have is to add an additional column, C1, where I can record, Yes, No or N/A based upon the content of B1. Yes being Green, No being Yellow and N/A being Red. I can then use the COUNTIF function to collate the results from C1. I do not know how to generate the N/A in the same IF function however so can only get Yes or No based upon the Date range.
I would very much appreciate a solution to either the sum count based on formatting, or alternatively by using the additional column but need help generating the correct formula to provide three outcomes.
I have included an exemplar below to help explain. As you can see, both Yellow and Red is generating No which would give me incorrect values as totals.
Thank you in advance for your help!