Forum Discussion
ApexSurvivor
Jun 07, 2024Copper Contributor
Excel colour formatting based off value
Hey, I have a 10 point scale (1,2,3,4,5,6,7,8,9,10) and each number has a set colour attacthed to it. I then have names on the left and for example, uniform and behaviour on the top row, so each week...
NikolinoDE
Jun 07, 2024Gold Contributor
To achieve this in Excel, you can use Conditional Formatting, as mentioned to you before, to change the cell color based on the value, and you can also hide the number by using custom number formatting. Here is how you can do it:
Step 1: Apply Conditional Formatting
- Select the range of cells where you will enter your 10-point scale values.
- Go to the Home tab on the ribbon.
- Click on Conditional Formatting and select New Rule.
- Choose Use a formula to determine which cells to format.
- Enter the formula to apply the formatting based on the cell value. For example:
- For 1: =$A1=1
- For 2: =$A1=2
- And so on for each number up to 10.
- Click on the Format button, go to the Fill tab, and select the color you want for each value.
- Repeat the process for each number with its corresponding color.
Step 2: Hide the Text (Numbers)
- Select the same range of cells where you applied the conditional formatting.
- Right-click and select Format Cells.
- Go to the Number tab.
- Select Custom.
- Enter the following custom number format: ;;; (three semicolons).
Step 3: Calculate Total Value
Assuming you have your data structured with names in column A and different topics (like uniform and behavior) in columns B, C, D, etc., and the weekly ratings in rows, you can calculate the total value for each person as follows:
- In a new column, use the SUM function to add up the values for each person. For example, if you have ratings in columns B to F for each person:
- In cell G2, enter: =SUM(B2:F2)
- Drag the formula down to apply it to each person.
- If you want to calculate the percentage score out of the maximum possible score (assuming each topic has a maximum score of 10):
- In cell H2, enter: =G2/(5*10) (replace 5 with the number of topics you have).
- Format cell H2 as a percentage.
- Drag the formula down to apply it to each person.
Example Structure:
Assuming names in column A, and topics in columns B to F:
A B C D E F G H
1 Name Topic1 Topic2 Topic3 Topic4 Topic5 Total Percentage
2 John 10 10 5 1 3 29 58%
3 Jane 7 6 10 9 8 40 80%
Notes:
- Ensure your conditional formatting rules cover all possible values (1 to 10).
- The custom number format ;;; will hide the numbers but still allow calculations.
This setup allows you to update the numbers each week and have the colors and total calculations update automatically. The text and steps were edited with the help of AI.
My answers are voluntary and without guarantee!
Hope this will help you.
Was the answer useful? Mark as best response and Like it!
This will help all forum participants.