Conditional Format

krishnanaik

Board Regular
Joined
Aug 5, 2005
Messages
81
Hi. I have a prob

Mon Am Mon Pm Att
0:00 0:00 SICK
0:00 0:00 HOL AM
0:00 0:00 HOL
0:00 0:00 HOL PM
2:00 0:00 SICK
0:00 0:00 LOAN OUT


If I have the following and want all the cells that contain HOL i.e HOL, HOL AM, HOL PM. Is there a function that allows us to say if the cell contains "HOL" then shade it red?

As I have 6 options I need a way of reducing the c.format to 3 (max number of conitional fromats). Hence the need to have the function that allows us to say if the cell containing all "HOL" then shade it red?
 

Excel Facts

Square and cube roots
The =SQRT(25) is a square root. For a cube root, use =125^(1/3). For a fourth root, use =625^(1/4).
Thanks for that but cant seem to get it working.

What does the 3 represent?

HOL
HOL AM
HOL PM
SICK
LOAN


=LEFT(C1,3)="HOL"

This should highlight (after selecting) all cells with HOL in it. Where does the 3 come in?
 
Upvote 0
Select the entries in column C and choose Format|Conditional Formatting from the menu. Condition 1 Formula is:

=LEFT(C1,3)="HOL"

where C1 is the first (active) cell in the selected range, click Format, choose a format and click OK twice.

The 3 means the first 3 characters.
 
Upvote 0

Forum statistics

Threads
1,211,962
Messages
6,105,105
Members
447,947
Latest member
OX_2005

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