Basic Conditional Formatting...

RandyD123

Active Member
Joined
Dec 4, 2013
Messages
289
Office Version
  1. 2016
Platform
  1. Windows
I just want to make each name cell in A turn yellow if either cell in LP or LQ 3 and 4 are over 13.... When I try to select a range it highlights all of the cells in A. They have to work independently of each other. Not sure what I am doing wrong?

Example: Any cell in LP3, LP4, LQ3, LQ4 is over 13 then A3 has to turn yellow. Then if LP5, LP6, LQ5, LQ6 is over 13, then A5 has to turn yellow..... and so on.
 

Excel Facts

Shade all formula cells
To shade all formula cells: Home, Find & Select, Formulas to select all formulas. Then apply a light fill color.
Sorry forgot to upload example.
 

Attachments

  • 1.JPG
    1.JPG
    162.7 KB · Views: 10
Upvote 0
Your image kind of makes my question your original requirements. I am a bit confused regarding the relationships between columns A, LP, and LQ.
In your description, you mention cells A3 and then A5 skipping over A4. But in your image, A4 is shown as yellow.

So, does every row in column A look at only the SAME rows for LP and LQ?

Or should it skip rows in column A, so that:
A3 looks at LP3:LQ4
A5 looks at LP5:LQ6
A7 looks at LP7:LQ8
etc.
 
Upvote 0
Hi RandyD123,

Does this work for you?

RandyD123.xlsx
ABLOLPLQ
1Column AColumn LPColumn LQ
2Row 2
3Row 312
4Row 434
5Row 51112
6Row 61314
7Row 7142
8Row 822
9Row 977
Sheet1
Cell Formulas
RangeFormula
A2:A9A2="Row "&ROW()
Cells with Conditional Formatting
CellConditionCell FormatStop If True
A3:A31Expression=AND(ISODD(ROW()),OR(LP3>13,LQ3>13,LP4>13,LQ4>13))textNO
 
Upvote 0
Solution
My A column is a range of A3:A104. Everyone has a merged cell in the A column. It corresponds to the LP and LQ column. How ever LP and LQ are simply a count of consecutive zeros. And that person in the A column can only be in one of two places, that why they have two rows.
 
Upvote 0
Your image kind of makes my question your original requirements. I am a bit confused regarding the relationships between columns A, LP, and LQ.
In your description, you mention cells A3 and then A5 skipping over A4. But in your image, A4 is shown as yellow.

So, does every row in column A look at only the SAME rows for LP and LQ?

Or should it skip rows in column A, so that:
A3 looks at LP3:LQ4
A5 looks at LP5:LQ6
A7 looks at LP7:LQ8
etc.
Yes I believe that is correct. If you notice that each person can be in one of two locations on any given day. They actually can be in both locations on the same day. The LP and LQ columns only count consecutive zeros. I can probably eliminate the LP column, it is being used for testing right now because the consecutive zero thing is broken.
 
Upvote 0
OK, did you look at Toadstool's reply?
I think his solution will do what you want.

Also, I would caution you about using merged cells. They are quite possibly the worst thing in Excel, and can cause all sorts of issues for VBA and things like sorting.
Because of all the potential headaches they can cause, most serious Excel programmers never use them.
 
Upvote 0
Hi RandyD123,

Does this work for you?

RandyD123.xlsx
ABLOLPLQ
1Column AColumn LPColumn LQ
2Row 2
3Row 312
4Row 434
5Row 51112
6Row 61314
7Row 7142
8Row 822
9Row 977
Sheet1
Cell Formulas
RangeFormula
A2:A9A2="Row "&ROW()
Cells with Conditional Formatting
CellConditionCell FormatStop If True
A3:A31Expression=AND(ISODD(ROW()),OR(LP3>13,LQ3>13,LP4>13,LQ4>13))textNO
I copied the conditional formatting and it's working. I'm not sure what "cell formula" thing is??
 
Upvote 0
OK, did you look at Toadstool's reply?
I think his solution will do what you want.

Also, I would caution you about using merged cells. They are quite possibly the worst thing in Excel, and can cause all sorts of issues for VBA and things like sorting.
Because of all the potential headaches they can cause, most serious Excel programmers never use them.
Yes and it seems to work just fine. I replied to him because I don't know what or where to put the "cell formula" thing? But the conditional formatting thing seems to be doing the trick. Am I missing something?
 
Upvote 0
Yes and it seems to work just fine. I replied to him because I don't know what or where to put the "cell formula" thing? But the conditional formatting thing seems to be doing the trick. Am I missing something?
No, you don't need to worry about that part. It is just part of the example he set up.
When you use the tool to upload screen images, it shows all formulas on the worksheet. He just used a formula to quickly populate column A with data.
 
Upvote 0

Forum statistics

Threads
1,215,054
Messages
6,122,901
Members
449,097
Latest member
dbomb1414

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