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!
 

Excel Facts

Get help while writing formula
Click the italics "fx" icon to the left of the formula bar to open the Functions Arguments dialog. Help is displayed for each argument.
Hi,

"... add the value of T3 ..." to what?

Code:
=IF(G3<25,IF(S3>=3,MIN(T3+1,3),"x"),IF(S3>=5,MIN(T3+1,5),"x"))

Replace 1 with whatever you want to add T3 to and replace "x" with whatever you want if neither is true

Hope this helps,

Eric.
 
Last edited:
Upvote 0
Try:

=IF(AND(G3<25,S3>3),S3+IF(T3>3,3,T3),IF(AND(G3<25,S3>3),S3+IF(T3>3,3,T3),"")
 
Upvote 0
Give this a shot:

=IF(AND(G3>=25,(S3+T3)<=5),S3+T3,IF(AND(G3<25,(S3+T3)<=3),S3+T3,""))
 
Upvote 0
  • An error message added one additional close parentheses. After doing so formula returns no value.</SPAN>
 
Upvote 0

Forum statistics

Threads
1,215,754
Messages
6,126,680
Members
449,328
Latest member
easperhe29

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