Highlighting cells based on a formula

Kudrun

New Member
Joined
May 10, 2017
Messages
13
Hello. I hope someone is able to help me. This seems simple (and I'm sure it is), but I cannot work it out.

I have 2 columns of figures (A and B). I want to highlight in red the cell (A2) in column A, if "B2 divided by A2 is less than 1.1 or greater than 2". So in the example below, A2 and A5 would be highlighted in red.


A
B
B/A=
101
213.59
2.11
334
458.23
1.37
266
430.86
1.62
847
517.6
0.61

<tbody>
</tbody>

I've tried creating a conditional formatting for column A, like =IF(B2/A2<1.1) or =IF(B2/A2>2), but it doesn't work and I need to include them together like =IF(B2/A2<1.1,IF(B2/A2>2)) and also affect the entire column, not just Row 2 (using/ not using "$" perhaps?).Can some one help me please. I'm clearly missing something or writing the formula wrong.

Thanks.
 

Excel Facts

VLOOKUP to Left?
Use =VLOOKUP(A2,CHOOSE({1,2},$Z$1:$Z$99,$Y$1:$Y$99),2,False) to lookup Y values to left of Z values.
This is perfect. Thank you so much for such a quick response.

Worked like a charm.

Cheers
 
Upvote 0

Forum statistics

Threads
1,214,619
Messages
6,120,550
Members
448,970
Latest member
kennimack

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