RAG status chart - help with weightings

CraigG

Board Regular
Joined
May 1, 2005
Messages
173
Office Version
  1. 365
  2. 2007
Platform
  1. Windows
  2. Mobile
Hi,

I have created a dial chart (see image) for red, amber, green status. Sorry I can't attached the Excel file or use the link due to security settings.

The pointer in the chart is based on the value in H2 - in the example in image this is 50.
In cells K2, K3 and K4 it counts number of instances in column B

I need a way to weight the red, amber, green to calculate the value in cell H2.
NB - the current value in H2 (which is 50) is NOT currently linked, calculated from anything, I've just used it to show how the pointer works.

I can't work out how I would calculate the 'value' (H2) to get the pointer to be in the right position.
In the example, I have 1 x Red and 2 x Amber but no Green.
In theory this is:
Red 33%
Amber 66%
Green 0%
But what value would I use in H2?
If I use 66 the pointer would be too much in the green.

I'm not sure if by using % is the right way to go. It's difficult to explain what is needed.
The pointer would be at the mid-way point with the value 50, fully at green with 100 and fully at red with 0 but I'm lost how I would get a value based on counts from column B or column K!

Can anyone help?


Picture1.png
 

Excel Facts

Repeat Last Command
Pressing F4 adds dollar signs when editing a formula. When not editing, F4 repeats last command.
I'm not sure if this helps, but rather than try to deal with what three colours mean I'd suggest treating them in terms of their 'greenness'. In the spreadsheet shown below, in A8:B10, I have set Red as having zero green, amber has 50% green and green by definition is 100% green.
Then in column L I multiplied the 'greenness' of each colour by the count value in column K. If I then add up all those weights and divide by 3, which is the number of KPIs, I get a value in H2.
If you test it by changing the colours against the KPIs in B2:B4 you will find that the value in H2 changes accordingly.

Hope this helps.

Book1
ABCDEFGHIJKLM
1KPIStatusPieDataGreen weight
2KPI1AmberValue33.3Red10
3KPI2RedAmber2100
4KPI3AmberGreen00
5
6
7"Greenness" weighting
8ColourWeight
9Red0
10Amber50
11Green100
Sheet1
Cell Formulas
RangeFormula
H2H2=SUM(L2:L4/3)
K2:K4K2=COUNTIFS($B$2:$B$4,J2)
L2:L4L2=K2*VLOOKUP(J2,A9:B11,2,FALSE)
 
Upvote 1
Solution
I'm not sure if this helps, but rather than try to deal with what three colours mean I'd suggest treating them in terms of their 'greenness'. In the spreadsheet shown below, in A8:B10, I have set Red as having zero green, amber has 50% green and green by definition is 100% green.
Then in column L I multiplied the 'greenness' of each colour by the count value in column K. If I then add up all those weights and divide by 3, which is the number of KPIs, I get a value in H2.
If you test it by changing the colours against the KPIs in B2:B4 you will find that the value in H2 changes accordingly.

Hope this helps.

Book1
ABCDEFGHIJKLM
1KPIStatusPieDataGreen weight
2KPI1AmberValue33.3Red10
3KPI2RedAmber2100
4KPI3AmberGreen00
5
6
7"Greenness" weighting
8ColourWeight
9Red0
10Amber50
11Green100
Sheet1
Cell Formulas
RangeFormula
H2H2=SUM(L2:L4/3)
K2:K4K2=COUNTIFS($B$2:$B$4,J2)
L2:L4L2=K2*VLOOKUP(J2,A9:B11,2,FALSE)
Thank you so much! This is perfect!
Thanks again!
 
Upvote 0

Forum statistics

Threads
1,223,856
Messages
6,175,027
Members
452,604
Latest member
cballetti

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