BAR COLOR

Pietro Di Micio

Board Regular
Joined
Apr 29, 2020
Messages
51
Office Version
  1. 365
Platform
  1. MacOS
I am facing some issue to create a bar with color change; I mean green >= 80% and <=100%, yellow >=50% and <80% and red >=0% and <50%

Could you help me on that?

pdm_cockpit.xlsx
STUVWX
35
36
37WHY CHANGEWHY NOWWHY XDECISION MAKERPROPOSALCOLOR CODE2
38yyyyy|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||100%
39
40
41 
COCKPIT - CQ
Cell Formulas
RangeFormula
X38X38=REPT("|",(COUNTIF(Table1[@[WHY CHANGE]:[PROPOSAL]],"y")/5)*75)&(COUNTIF(Table1[@[WHY CHANGE]:[PROPOSAL]],"y")/5)*100&"%"
X41X41=REPT("|",(SUMIF(Table1[@[WHY CHANGE]:[PROPOSAL]],"y",S39:W39))*91)
Cells with Conditional Formatting
CellConditionCell FormatStop If True
X38Cell Valuebetween 50*75 and 79*75textNO
X38Cell Valuebetween 80*75 and 100*75textNO
S38:W38Cell Value="-"textNO
S38:W38Cell Value="n"textNO
S38:W38Cell Value="y"textNO
 

Excel Facts

Links? Where??
If Excel says you have links but you can't find them, go to Formulas, Name Manager. Look for old links to dead workbooks & delete.
The values in X38, do not contain numerical values, it contains a whole bunch of pipe symbols then an amount, so you will need to use a formula in your conditional formatting to determine the values and what you're comparing too, or how many bars your generating, or something like that.
I don't understand your formulas, nor your values in CF: 50*75=3,750 and 79*75=5,925. Where did that come from?
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,181
Members
453,022
Latest member
Mohamed Magdi Tawfiq Emam

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