Conditional formatting

Debbie Uniforms

New Member
Joined
Nov 14, 2018
Messages
10
Hello,

I would like to format cells based on the value in another cell.

Eg, column A has names of staff. column B gives the score from an assessment.

I would like the name (column A) to change to red if the score in column B is 1. I'd like the name to change to orange if the score in column B is 2, etc etc.

I just know it can be done AND, I just know that one of you clever people can help me!

many thanks
Debbie Uniforms.
 

Excel Facts

Highlight Duplicates
Home, Conditional Formatting, Highlight Cells, Duplicate records, OK to add pink formatting to any duplicates in selected range.
F
G
H
I
J
1
Adam
1​
blue =IF(G1=1,1,0)
2
Mike
2​
green =IF(G1=2,1,0)
3
John
3​
4
Peter
1​
select range then use above
5
Mike
3​
6
Sue
3​
7
Steve
2​
8
Alan
1​

or
Code:
=AND(G1=1,1)

=AND(G1=2,1)
 
Last edited:
Upvote 0
Hi its me again:rolleyes:

I don't really follow!

NameJobTitleAverage score
Bobagent6
susansupervisor4
Fredmanager2
Abdullaagent5
Rajagent3

<colgroup><col><col><col></colgroup><tbody>
</tbody>

I would like the names of those who score 6 to be green, 5 light green, 4 orange, 3 yellow, 2 light red and 1 red.

I think this is in conditional formatting but not sure which rules to add etc.

I have been able to do it, when I add a number next to staff name - eg: Bob 1, but I want the average score in a separate column.

many thanks and sorry for being thick!
 
Upvote 0
A
B
C
1
NameJobTitleAverage score
2
Bobagent
6​
3
susansupervisor
4​
4
Fredmanager
2​
5
Abdullaagent
5​
6
Rajagent
3​
7
Jonagent
1​

cf.jpg


and do the same for each color , C1=2, C1=3 and so on...

cf2.jpg


edit:
each time add new rule for different color
rule what you should add is grey highlighted

I have been able to do it, when I add a number next to staff name - eg: Bob 1, but I want the average score in a separate column.

select whole range
then do the same for column where your numbers are

if your numbers are in Z column then select range A1:Zn and use rule =Z1=1 and so on
 
Last edited:
Upvote 0

Forum statistics

Threads
1,215,416
Messages
6,124,772
Members
449,187
Latest member
hermansoa

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