If, and, or statement

jrisebo

Active Member
Joined
Mar 15, 2011
Messages
322
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

How to fill five years of quarters?
Type 1Q-2023 in a cell. Grab the fill handle and drag down or right. After 4Q-2023, Excel will jump to 1Q-2024. Dash can be any character.
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,223,908
Messages
6,175,307
Members
452,633
Latest member
DougMo

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