Simple excel formula help

Toota

New Member
Joined
Feb 11, 2021
Messages
22
Office Version
  1. 2019
Platform
  1. Windows
Hi Guys,
I have a formula that is not working
=IF(AG10=1,IF(OR("C4">8,H9>3.4,"H4"<8),"LAY"),"")
Ok so what i am after please is if AG10=1 and C4>8,H9>3.4,H4<8 Then instruction is to LAY

I know i have a little mistake in there but cannot find it
Help would be appreciated
Thanks
 

Excel Facts

Excel Wisdom
Using a mouse in Excel is the work equivalent of wearing a lanyard when you first get to college
Not sure what you really want. Something like this?
=IF(AND(AG10=1,OR("C4">8,H9>3.4,"H4"<8)),"LAY","")
 
Upvote 0
Solution
@Toota
I'm not exactly sure what you are wanting either but I don't believe that it is the formula suggested in post #2. If C4 and H4 are referring to cell values which it sounds like from your written description, then they should not have quote marks around them in the formula, otherwise they will be treated as literal text.
For example "C4">8 will always be true no matter what is in cell C4
On the other hand C4>8 could sometimes be true and sometimes false, depending on what is in cell C4
 
Upvote 0
@Toota
I'm not exactly sure what you are wanting either but I don't believe that it is the formula suggested in post #2. If C4 and H4 are referring to cell values which it sounds like from your written description, then they should not have quote marks around them in the formula, otherwise they will be treated as literal text.
For example "C4">8 will always be true no matter what is in cell C4
On the other hand C4>8 could sometimes be true and sometimes false, depending on what is in cell C4
Good catch. I wasn't paying attention to those double quotes o_O
 
Upvote 0

Forum statistics

Threads
1,214,599
Messages
6,120,448
Members
448,966
Latest member
DannyC96

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