Excel, percentages in conditional formatting

Ruth Gill 0 Reputation points
2024-06-17T09:33:18.45+00:00

I have multiple columns with complex conditional format data in excel.

For example, if people attend a recent course they go green, if training is out of date they turn red. I want to be able to create a constant updating percentage of the number who are green (or indeed red) at the bottom of each column. How do i go about this?

Excel Management
Excel Management
Excel: A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.Management: The act or process of organizing, handling, directing or controlling something.
1,684 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Barry Schwarz 2,421 Reputation points
    2024-06-17T17:35:11.9533333+00:00

    Each of your conditional formatting rules already has the formula necessary to determine the color. For example, if the training is required annually, the green formula could be something similar to =B5>today()-365.

    To add a green percentage at the bottom in cell B26, you can use the corresponding array formula =COUNTIF(B5:B25,">"&TODAY()-365)/COUNT(B5:B25)

    0 comments No comments

  2. Emi Zhang-MSFT 23,271 Reputation points Microsoft Vendor
    2024-06-18T02:20:53.0133333+00:00

    Hi,

    I created a simple sample:

    For the Conditional Formatting, you can try these formulas:User's image

    For the percentage formula:

    =COUNTIF(C2:C7,">0")/COUNT(D2:D7)

    User's image

    Just checking in to see if the information was helpful. Please let us know if you would like further assistance.


    If the response is helpful, please click "Accept Answer" and upvote it.

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments