Conditional Formatting

  • Thread starter James E Middleton
  • Start date
J

James E Middleton

Forgive me if this shows up twice...



I know that there is a limit to 3 conditions, however I was wondering of
there was a way to write a formula for the following:

I have a schedule for classes grades 1,3,&5. Each grade has 4 classes,
A,B,C,D, so a total of 12 classes.

I made a schedule in Excel and I want to color code all the grades
differently, e.g., grade 1 in yellow, 2 in blue, and 5 in green.

In the cells for different periods and different days of the week I've typed
1A, 1B, 1C, 1D, 3A, 3B, etc.

Now when I open Conditional formatting, if I want to use cell is equal to, I
could only format the first three, 1A, 1B, 1C...

Could I write a formula that does the formatting: all cells with the number
1 and a letter are yellow, all cells with the number 3 plus a letter are
blue?

Thanks!
 
M

Max

Could I write a formula that does the formatting: all cells with the number
1 and a letter are yellow, all cells with the number 3 plus a letter are
blue?

Select col A (A1 active), then apply CF using "Formula is:" as follows

Condition 1,
Formula is:
=AND(LEFT(A1)+0=1,CODE(UPPER(RIGHT(A1)))>=65,CODE(UPPER(RIGHT(A1)))<=122)
Format: Yellow

Condition 2,
Formula is:
=AND(LEFT(A1)+0=3,CODE(UPPER(RIGHT(A1)))>=65,CODE(UPPER(RIGHT(A1)))<=122)
Format: Blue fill
 
J

James E Middleton

Thanks, EXACTLY what I wanted!


Max said:
Select col A (A1 active), then apply CF using "Formula is:" as follows

Condition 1,
Formula is:
=AND(LEFT(A1)+0=1,CODE(UPPER(RIGHT(A1)))>=65,CODE(UPPER(RIGHT(A1)))<=122)
Format: Yellow

Condition 2,
Formula is:
=AND(LEFT(A1)+0=3,CODE(UPPER(RIGHT(A1)))>=65,CODE(UPPER(RIGHT(A1)))<=122)
Format: Blue fill
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top