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

Excel Wisdom
Using a mouse in Excel is the work equivalent of wearing a lanyard when you first get to college
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,219,161
Messages
6,146,657
Members
450,706
Latest member
LGVBPP

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