Ive written an attendance rechare sheet for my son-in-law and I am trying to change cell background to to red if it contains the words: Sick, Hols, Bhol, Unpaid.
The cells can contain a job name or these words as abscence codes.
I am trying to use the between choice now but it pulls in some job names.
search string: Conditional Formatting with more than three conditions
Rgds, Geoff
We could learn a lot from crayons. Some are sharp, some are pretty and some are dull. Some have weird names and all are different colours but they all live in the same box.
Keith,
Just as a thought if you give each condition a number, i.e.
Sick = 1
Hols = 2
Bhol = 3
Unpaid = 4
You could change the condition to look between 1 to 4 and the format change. To make it easier to read add a column beside it and use the IF function to explain what the number mean like this :
=IF(A1=1,"sick",IF(A1=2,"Hols",IF(A1=3,"Bhol",IF(A1=4,"Unpaid",IF(A1=5,"other","unknow")))))
Conditional formatting allows to set up to three colours in one cell, that depend on various conditions. Together with basic format there are four colours available.
Basing on the description of the problem you need only ONE condition in conditional formatting (change background colour to red). As Glenn wrote, single formula with OR funcion will handle all exceptions.
Select all the cells you want to apply the formatting to
Enter the formula as per the syntax that Glenn has supplied, making sure that the cell you reference is the TOP LEFT cell in the selection. Ensure that there reference is RELATIVE - ie no $ anywhere and apply - excel will adjust the rtange reference for all the other cells in the selection...
Rgds, Geoff
We could learn a lot from crayons. Some are sharp, some are pretty and some are dull. Some have weird names and all are different colours but they all live in the same box.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.