Live conditional formatting

liam_crad

New Member
Joined
Apr 27, 2012
Messages
3
I have set up a spreadsheet to track sales at work and have weekly and monthly targets. 4 sales a week - 16 every 4 weeks essentailly. I can format the weekly cells to change colour depending on how many sales each person achieves. 4 or more = Green, 3 = Amber, 2 or less = Red. I want to monthly column to update live so if after 2 weeks a member of the team has 9 sales the cell would light up green. If after 3 weeks the member of staff had still only achieved 9 sales I want the cell to change to amber once I have filled in the weeks 3 cell as '0'.

I wasn't sure If I could do a formula where any totally blank cells are not included and the cell changes based on the number of cells actually completed?

Any thoughts would be greatly appreciated.

Liam
 

Excel Facts

Repeat Last Command
Pressing F4 adds dollar signs when editing a formula. When not editing, F4 repeats last command.
I'm not exactly sure how you have your sheet set up but here is one example that shows how you could use the AVERAGE formula in your conditional formatting. It will factor in zero values into the average. In cell F2, here is the first argument (green color):
Code:
=AVERAGE($B2:$E2)>=4
You will need to add the others for amber and red depending upon how you want your results. Hope this helps.
Book2
ABCDEF
1NameWeek1Week2Week3Week4Monthly
2Bob448
3Sandy4408
4Joe44008
Sheet1
 
Last edited:
Upvote 0
Thanks for reply, when putting that formula in it gives me a TRUE or FALSE and no figure in the end column anymore. For now I've got it as the correct colours for the end of the month so will have to do for now until I become a bit more advanced.
 
Upvote 0
Thanks for reply, when putting that formula in it gives me a TRUE or FALSE and no figure in the end column anymore. For now I've got it as the correct colours for the end of the month so will have to do for now until I become a bit more advanced.

I think you misunderstood... This formula :
Code:
=AVERAGE($B2:$E2)>=4
needs to be used for one of the conditions in conditional formatting in column F as you say you have done with the other cells. (You would need to add the others for the other colors as appropriate.) The actual formulas in column F just needs to be the simple sum formula as shown in my example. To summarize, you will have a regular sum formula in column F as well as conditional formatting in the same column to control the colors as you requested. Make sense?
 
Upvote 0

Forum statistics

Threads
1,223,247
Messages
6,171,004
Members
452,374
Latest member
keccles

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