Conditional formatting to visually gauge progress towards target value

stusam

New Member
Joined
Apr 6, 2022
Messages
8
Office Version
  1. 2019
Platform
  1. Windows
Hi.

I have a simple sheet that shows the individual duration, in minutes, of a series of activities in column H, and their combined total duration, in hours and minutes, in column I. The heading of column I also displays the "target" duration. In this example, the target is 5:00 hours.

Is it possible to use conditional formatting to gradually "fill" the total duration cell with a colour (green) as activities and their durations are added, and the target duration is approached, with the colour finally filling the cell when the target is met?

A couple of additional, but not essential, requirements:
  1. Ideally, the green fill colour would be a gradient from green to transparent, that creeps up as the total duration moves closer to the target.
  2. The fill colour switches to red if the target is exceeded.
! NEW Module Map Template V2.3.xlsx
GHI
1Activity NumberActivity Duration (Minutes)Total Duration (Hours:Minutes) (Target =5:00)
21904:50
3210
4320
5410
6510
7630
87120
98
109
1110
Sheet2
Cell Formulas
RangeFormula
I2I2=SUM(H2:H11)/60/24


Thank you for any guidance provided.
 

Excel Facts

Lock one reference in a formula
Need 1 part of a formula to always point to the same range? use $ signs: $V$2:$Z$99 will always point to V2:Z99, even after copying
It could be in an auxiliary column, for example in column I insert a column, in cell I1 the target and in cells I2 to I11 a formula to calculate the increment.
You must create 2 rules, one rule with 2-scale format style for the green ones; and another rule for red:

Libro1
AGHIJ
1Activity NumberActivity Duration (Minutes)5Total Duration (Hours:Minutes) (Target =5:00)
21901.506:10
32101.7
43202.0
54603.0
65403.7
76304.2
871206.2
98 
109 
1110 
Hoja2
Cell Formulas
RangeFormula
I2:I11I2=IF(H2<>"",SUM($H$2:$H2)/60,"")
J2J2=SUM(H2:H11)/60/24
Cells with Conditional Formatting
CellConditionCell FormatStop If True
I2:I11Expression=AND($I2<>"",$I2>$I$1)textNO
I2:I11Other TypeColor scaleNO


Review how the data should be in the 2-scale format style:
1673698501656.png
 
Upvote 0
Solution

Forum statistics

Threads
1,214,957
Messages
6,122,472
Members
449,087
Latest member
RExcelSearch

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