conditional formatting a range of cells based on corresponding values from a different range

macbiologystudent

New Member
Joined
May 10, 2012
Messages
2
Hi, I have a range of cells that are the results of an analysis and a second range of cells (same dimensions) stating whether or not the corresponding cells are statistically significant. I would like to highlight the cells in the first range based on whether the corresponding cell in the other range is <=.05.

Ex. If results range is A1:J10 and the significance range is A11:J20 (A1&A11 are corresponding cells) could I highlight A1 if A11 is <=.05 and B2 if B12 is <=.05 but not highlight any cells in the A1:J10 range that do not have corresponding cells <=.05?

Conditional formatting will perform this task within a single range but my question is whether I can refer corresponding cells from a second range to the original range I am formatting?
 

Excel Facts

How can you automate Excel?
Press Alt+F11 from Windows Excel to open the Visual Basic for Applications (VBA) editor.
select cells A1 to J10, make sure to select A1 first and then in the conditional formatting use the following formula:

=A11<=0.05=TRUE

and select the color you need
 
Upvote 0

Forum statistics

Threads
1,217,382
Messages
6,136,237
Members
450,000
Latest member
jgp19

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