Conditional formatting a Ratio

Executioner

Board Regular
Joined
Sep 26, 2005
Messages
166
Hi everyone,
I'm using Excel 2016.
I have a spreadsheet that is calculating a ratio with this formula:
=ROUND((C3/D3),1)&":1"

In C3 I have the value of 1
In D3 I have the value of 0.07
When the formula is applied in cell F3, the value returned is 14.3:1

I have other values that I'd like to highlight in red if the ratio is below 4.0:1. I've tried simply entering in 4.0:1 but it highlights all the cells as red. I changed the format from general to numeric for F3, but there is no change. Any help is greatly appreciated.
 
Last edited:

Excel Facts

Excel Can Read to You
Customize Quick Access Toolbar. From All Commands, add Speak Cells or Speak Cells on Enter to QAT. Select cells. Press Speak Cells.
the ratio would be shown as text and not a number
BUT
ROUND((C3/D3),1)
is a number , and all your adding is the :1

so select the column you have the ratio in
then use the formula
=ROUND(($C3/$D3),1) < 4.0

note if you select the column , say the ratio is in E
then you would need to use
=ROUND(($C1/$D1),1) < 4.0

or if you select the range E3:E2000 or what ever row you want to stop then
=ROUND(($C3/$D3),1) < 4.0
will be OK

also blank cells give you what result - DIV by zero error ? or 0/0 = 0
and if you dont want to flag blank cells

=ROUND(($C3/$D3),1) < 4.0
use an AND

-AND ( C3 <> "" ,
ROUND(($C3/$D3),1) < 4.0)
if cell is the cell to determine if row blank
 
Last edited:
Upvote 0
Thanks for the reply. If I keep your suggested formula - =ROUND(($C3/$D3),1) < 4.0, the value return is only a FALSE or TRUE and not a value. I'd like to keep the reported value if possible.
 
Upvote 0
I did not know your formula had to be used in a conditional format rule. That does work! Thanks a bunch for your help.
 
Upvote 0
you are welcome , i assumed from the title you where using the conditional formatting part of excel - sorry , i should not make assumptions
 
Last edited:
Upvote 0

Forum statistics

Threads
1,223,886
Messages
6,175,191
Members
452,616
Latest member
intern444

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