Forum Discussion

jrkeegan's avatar
jrkeegan
Copper Contributor
Apr 21, 2023

Conditional Formatting (Data bars) altered as percentage has exceeded 100%

Hello,

 

 

I have an excel set up where the first column shows the target, the 3 column shows what has been achieved so far, and based on that the fourth column will show the percentage complete. I have added conditional formatting to the fourth column in the form of a gradient filled data bar. However as we have exceeded our target in some areas and gone over 100%, that has affected the conditional formatting for all cells in that column - in that a 100% would no longer show a full green line, a full green line would only show if the percentage is 257% (the highest percentage).

 

Any ideas on how to fix this?

 

Thanks

 

 

 

  • jrkeegan 

    You can fix this issue by setting the maximum value for the data bars in your conditional formatting rule.

    Here's how you can do it:

     

    1. Select the cells in the fourth column that contain the data bars.
    2. On the Home tab, click on Conditional Formatting and choose Manage Rules.
    3. In the Conditional Formatting Rules Manager, select the rule for the data bars and click on Edit Rule.
    4. In the Edit Formatting Rule dialog box, under "Bar Appearance", click on the drop-down list next to "Maximum" and choose "Number".
    5. Enter 1 as the maximum value (since 100% is equivalent to 1 as a decimal).
    6. Click OK to close the Edit Formatting Rule dialog box and then click OK again to close the Conditional Formatting Rules Manager.

     

    Now your data bars should show a full green line for 100% and any percentage above 100% will also show a full green line.

  • NikolinoDE's avatar
    NikolinoDE
    Gold Contributor

    jrkeegan 

    You can fix this issue by setting the maximum value for the data bars in your conditional formatting rule.

    Here's how you can do it:

     

    1. Select the cells in the fourth column that contain the data bars.
    2. On the Home tab, click on Conditional Formatting and choose Manage Rules.
    3. In the Conditional Formatting Rules Manager, select the rule for the data bars and click on Edit Rule.
    4. In the Edit Formatting Rule dialog box, under "Bar Appearance", click on the drop-down list next to "Maximum" and choose "Number".
    5. Enter 1 as the maximum value (since 100% is equivalent to 1 as a decimal).
    6. Click OK to close the Edit Formatting Rule dialog box and then click OK again to close the Conditional Formatting Rules Manager.

     

    Now your data bars should show a full green line for 100% and any percentage above 100% will also show a full green line.

    • jrkeegan's avatar
      jrkeegan
      Copper Contributor

      Thanks so much NikolinoDE 

       

      I was mainly getting stuck because I was using the online version of excel and it wasn't giving me any other options for the rule:

       

       

      All working great now, thanks again!

       

Resources