# Nested IF -- cannot determine why the last "value if false" not being accepted.

#### Excel Chimp

##### Board Regular
Alright, I have a real challenge. Below formula was working until I added the last string, in red. String is red is attempting to do what is described in red text below. I tried to describe this formula's operation in plain English:

If x="per lead", then return Y. If X ="per move in", then return Z. If neither of these if true, then return A. But, if resulting value is greater than T (capped amount), then return T.

Help, please! I'm sure I'm doing something completely boneheaded and my formula could probably be a lot more efficent, but I'm no guru.
Thanks.

### Excel Facts

Spell Check in Excel
Press F7 to start spell check in Excel. Be careful, by default, Excel does not check Capitalized Werds (whoops)
To "Cap" a value, try using the MIN function.
Here is a psudo code version

=MIN(If x="per lead", then return Y. If X ="per move in", then return Z. If neither of these if true, then return A, T(cappedamount))

To "Cap" a value, try using the MIN function.
Here is a psudo code version

=MIN(If x="per lead", then return Y. If X ="per move in", then return Z. If neither of these if true, then return A, T(cappedamount))

doh! Wow, you just made made formula a whole lot simpler. Thank you.

I do remain curious about why my IF statement in red would not work. I think it has something to do with order of operations /parentheses but I couldn't figure it out.

In any case THANKS!

Replies
8
Views
153
Replies
3
Views
502
Replies
7
Views
413
Replies
7
Views
181
Replies
5
Views
413

1,207,091
Messages
6,076,522
Members
446,212
Latest member
KJAYPAL200

### 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.

### Which adblocker are you using?

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

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