If, and, or statement

jrisebo

Active Member
Joined
Mar 15, 2011
Messages
312
Office Version
  1. 365
Platform
  1. Windows
Got a question about if, and, or statement. For Cell A1, I want it to give me an answer based on A2. A2 will be a drop down or entry, either the value 90 or 180. A3 and A4 will be entered values.

So, how do I do a formula for "If A2=90, and A3 > 2.5 and A4 >2, then A1 =0.8, otherwise 1. but if A2 =180 and A3 > 2.5 and A4 >1, then A1 =0.8, otherwise 1"

I cant figure the if, and's, and or's to use!

Thanks
 

Excel Facts

Waterfall charts in Excel?
Office 365 customers have access to Waterfall charts since late 2016. They were added to Excel 2019.
Put this formula in cell A1:
Excel Formula:
=IF(OR(AND(A2=90,A3>2.5,A4>2),AND(A2=180,A3>2.5,A4>1)),0.8,1)
 
Upvote 1
Solution
=IF( OR(AND(A2=90, A3 > 2.5, A4 >2) , AND(A2 =180 , A3 > 2.5 , A4 >1 )) , 0.8 , 1)
 
Upvote 1
you are welcome - Joe4 also posted just before me / at same time FYI
 
Upvote 0

Forum statistics

Threads
1,215,727
Messages
6,126,508
Members
449,316
Latest member
sravya

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