Conditional Formating not working...

albertc30

Well-known Member
Joined
May 7, 2012
Messages
1,091
Office Version
  1. 2019
Platform
  1. Windows
Hi all.

The above formula should make the data on cell S20 red if the value on cell R25 falls outside the % scope, but it is not working.

=IF(R25>101%,R25<99%)

On cell R25 I have a formula as follows;
=IF(ISERROR(R24/R23),"-",(R24/R23))

Please note that I am now on office 2010 and not 2003.

Any help much appreciated.

Regards,
Albert
 

Excel Facts

What did Pito Salas invent?
Pito Salas, working for Lotus, popularized what would become to be pivot tables. It was released as Lotus Improv in 1989.
If you change your IF to OR, that should to the trick.
 
Upvote 0
I though IF was the one to use.

I am confused as to why the OR as it sounds like a second condition to it.

It does work.

Many thanks.

Albert
 
Upvote 0
To trigger the conditional format you needs your formula to return TRUE. Using OR, simply check whether either condition is True,
and if it is it returns TRUE. If none of the cnditions are true it returns false.

The two conditions on which it should return TRUE are >101% and <99%. So it just checks if either is true.

If could work, but your syntax was incorrect, as it had no false condition for the first test. The below would work as an if formula:

=IF(r25>101%,r25>101%,r25<99%)


I hope that helps, i know i'm not so good at explaining things
 
Upvote 0
I hope that helps, i know i'm not so good at explaining things

It did help mate.

It's funny you should say the above as I am the same when it comes to exaplainning things.

Thanks.

Albert
 
Upvote 0

Forum statistics

Threads
1,214,614
Messages
6,120,517
Members
448,968
Latest member
Ajax40

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