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

What did Pito Salas invent?
Pito Salas, working for Lotus, popularized what would become to be pivot tables. It was released as Lotus Improv in 1989.
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,221,476
Messages
6,160,062
Members
451,615
Latest member
soroosh

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