Conditional Formula

theatreking

New Member
Joined
May 1, 2014
Messages
9
Hi,
Was hoping to get a little help in getting this formula correct.

I can get it to work when entering this - =IF(AND(P5<J5,(J5/2)<O5),"G","R")

But as soon as I add another - =IF(AND(J4>100,"Y"),P4<J4,(J4/2)<O4),"G","R") I get an error.

Do I have it the wrong way around or do I have to use a OR statement?

Cheers!
 
Last edited:

Some videos you may like

Excel Facts

Test for Multiple Conditions in IF?
Use AND(test, test, test, test) or OR(test, test, test, ...) as the logical_test argument of IF.

Cosmic Wizard

Board Regular
Joined
Apr 6, 2015
Messages
112
Hi,
Was hoping to get a little help in getting this formula correct.

I can get it to work when entering this - =IF(AND(P5<j5,(j5 2)<o5),"g","r")

But as soon as I add another - =IF(AND(J4>100,"Y"),P4<j4,(j4 2)<o4),"g","r")="" i="" get="" an="" error.

Do I have it the wrong way around or do I have to use a OR statement?

Cheers!

Have you tried several formulas??
Not sure what you are trying to do, perhaps a longer explanation would help.


Also check out this video Conditional formatting - highlight entire row based on a cell value, I found the example a huge help!</j4,(j4></j5,(j5>
 

theatreking

New Member
Joined
May 1, 2014
Messages
9
Thanks for the Video, but IM not struggling with the conditional formatting, it more the formula to make it work -

IF(AND(P <J1 ,(J1 /2)<O5),"G","R"), just need to have it change to "Y" also if greater than 100?

Can anyone advise the correct formula please?
 

Watch MrExcel Video

Forum statistics

Threads
1,123,125
Messages
5,599,841
Members
414,342
Latest member
K Darrell Smith

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
Top