If, and, or statement

jrisebo

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

Return population for a City
If you have a list of cities in A2:A100, use Data, Geography. Then =A2.Population and copy down.
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,094
Messages
6,123,071
Members
449,092
Latest member
ipruravindra

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