If & And Statement Help

mdhaver

New Member
Joined
Mar 18, 2014
Messages
7
I need a formula in cell U3

If the value of s3>=5, then add the value of T3 with a cap of 5 if the value of G3>=25

but if the value of G3<25 add the value of t3 with a cap of 3 only if s3>=3

HELP!
 
OK, so the value in U3 can be more than 5, but not the value in T3, correct? I thought the sum was to be capped at 5, not just the value in T3 (same logic applies for capping at 3).
 
Upvote 0
Does this give you the result you're looking for?

=IF(AND(G3>=25,T3<=5),S3+T3,IF(AND(G3<25,T3<=3),S3+T3,""))
 
Upvote 0
No. The condition of at least 5 from S3 is not met (the value is currently 1). The value in t3 is currently 4. U3 in this situation should be 1 and this above formula provides a value back of 5.
 
Upvote 0
OK, one more try. This assumes that you want U3 = S3 if none of the conditions are met (as in your example above):

=IF(AND(S3>=5,G3>=25,T3<=5),S3+T3,IF(AND(S3>=5,G3>=25,T3>5),S3+5,IF(AND(S3>=3,G3<25,T3<=3),S3+T3,IF(AND(S3>=3,G3<25,T3>3),S3+3,S3))))
 
Upvote 0

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