Excel VBA Course
Excel VBA Course - From Beginner to Expert

200+ Video Lessons
50+ Hours of Video
200+ Excel Guides

Become a master of VBA and Macros in Excel and learn how to automate all of your tasks in Excel with this online course. (No VBA experience required.)

View Course

Conditional formatting using cell summation

0

Hi all,

I want to create a capacity tracker that shows in green colour that capacity is available (<50%), yellow reflects limited capacities (51-74%), and red reflects no capacity (>75%).

The tracker contains multiple projects per person, and I would like the cells to sum up if the total capacity of all projects is beyond 75%, and all cells for this employee should turn red. (see cells 20 - 22 in the attachment). Those cells should turn all red.

Would that be possible using conditional formatting?

Thanks,

Ines

Answer
Discuss

Answers

0
Selected Answer

Hi and welcome to the Forum.

Yes conditional formatting can do that (if I understand you correctly).

In the attached revised  file, I've applied the following method top cells C16 to F18 (only). Here's how...

Firstly select cell C16 then go menu Home, ribbon Styles and click Conditional Formatting/ New Rule... then Use a formula...

Under Format values... paste:

=If(sum(C$16:C$18)>0.75,1,0)

Click Format... then choose the Fill tab and pick a red, click OK.

In New Formatting... requestor, click OK

Click Apply and you'll see that his only affects C16 - you'll see that rule "Applies to" =$C$16. Change that to =$C$16:$C$18  (being careful since Excel guesses the range) then click Apply- you'll see it now affects C16 to C18.

Now (with that rule selected) click the Duplicate Rule button twice then select each new rule and use the Edit Rule... button to edit the formula and replace >0.75 with >=50 and choose yellow then on the last rule with <0.50 and choose green..

The "red" rule should be at the top (since that overwrites the rules below) then the yellow then the green.

You can then copy that format to other cells in those rows.

Change the values in a week and the fill colour will change to suit (I've just changed single cells to check)..

To copy the format to other rows, you'll need to edit the formula to replace the bold bit in:

=If(sum(C$16:C$18)>0.75,1,0)

to address the new rows. Then copy over those the same rows as belore.

Hope this fixes your problem. If so, please don't forget to mark this answer as Selected.

Discuss


Answer the Question

You must create an account to use the forum. Create an Account or Login