Working out percentage of cells that are a specific colour

Joined
Oct 18, 2024
Messages
1
Office Version
  1. 365
Platform
  1. Windows
We are beginning to bring in self rostering at work and I need to work out some formulas for the spreadsheet to work in the way I need it to.

Members of staff will be able to access the spreadsheet to choose what shifts they would like to work on each day, with us aiming to approve at least 50% of these shifts.

If I were to change the cell colour of each approved shift, what formula would I need to use to be able to see the percentage of requested shifts that have been approved?
 

Excel Facts

Pivot Table Drill Down
Double-click any number in a pivot table to create a new report showing all detail rows that make up that number
No built-in function can read the colour of a cell. You would need VBA code for that (or an old Excel4 macro function) and you should be aware that colouring a cell does not trigger a recalculation so it is not easy to make sure that the formula results are always up to date. I would always recommend using actual data rather than colours if at all possible - e.g. with additional helper rows and/or columns where you can put some sort of 'approved' marker.
 
Upvote 0

Forum statistics

Threads
1,225,743
Messages
6,186,770
Members
453,370
Latest member
juliewar

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top