Conditional Formatting

wmswat

New Member
Joined
Apr 19, 2014
Messages
2
Im trying to teach myself the more complex side of excel by making an attendance sheet for my job.
But am stuck on this.

So how do a make the cells that contain either PN or PM green
and those containing XN or XM red?
 

Excel Facts

Which Excel functions can ignore hidden rows?
The SUBTOTAL and AGGREGATE functions ignore hidden rows. AGGREGATE can also exclude error cells and more.
Im trying to teach myself the more complex side of excel by making an attendance sheet for my job.
But am stuck on this.

So how do a make the cells that contain either PN or PM green
and those containing XN or XM red?

Hello wmswat,

What you need to do is highlight the column that the data will be in. From there you can click the Conditional Formatting drop-down icon on the Home tab. Click New Rule.

The Rule type you will want to utilize "Format Only Cells That Contain". From there you can tell it to Format Only Cells With: Specific Text containing "PN" (for example) with the Format color of green.

Once you do that you can just add a different Conditional Formatting for each of the other cells you wont too.

Let me know if this helps!
 
Upvote 0
Select area to be Formatted; Example A1:A10

In Formula Box enter:

=OR(A1="PN",A1="PM") Format Green

Re-enter Screen to ADD: New Rule of:

=OR(A1="XN",A1="XM") Format Red
 
Upvote 0
Hello wmswat,

What you need to do is highlight the column that the data will be in. From there you can click the Conditional Formatting drop-down icon on the Home tab. Click New Rule.

The Rule type you will want to utilize "Format Only Cells That Contain". From there you can tell it to Format Only Cells With: Specific Text containing "PN" (for example) with the Format color of green.

Once you do that you can just add a different Conditional Formatting for each of the other cells you wont too.

Let me know if this helps!

Thanks so much. I figured it out. I was close before but I had to go to the classic tab to find "Format Only Cells That Contain"

Thanks so much
 
Upvote 0

Forum statistics

Threads
1,223,237
Messages
6,170,930
Members
452,367
Latest member
TePunaBloke

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