Need help to expand IF formula please

leopardhawk

Well-known Member
Joined
May 31, 2007
Messages
611
Office Version
  1. 2016
Platform
  1. Windows
The formula below works as intended but I need some help please, to expand the formula so that if F31 is greater than 0 but less than 1195, it would return F31 and if F31 is greater than 1195, it would return 1195.

Code:
=IF(F31>0,E27, 0)

Thanks!
 

Excel Facts

What is the last column in Excel?
Excel columns run from A to Z, AA to AZ, AAA to XFD. The last column is XFD.
Hi,

Based on your description, and assuming E27 is No longer involved:


Book1
AF
11195
311196
Sheet662
Cell Formulas
RangeFormula
A1=IF(F31>0,MIN(F31,1195),0)
 
Upvote 0
Thanks for your reply but E27 is definitely involved, it is where the 1195 amount resides. I make the mistake sometimes of my explanation lacking enough or the correct information.

Let's assume that the formula is in cell F50.

1. E27 contains the 1195 amount
2. F31 can be any amount from 0 - infinity
3. If F31 is 0, then the formula should return 0
4. If F31 is greater than 0, then the formula should return E27
5. If F31 is greater than 0 but less than E27, the formula should return F31

Sorry about the confusion (my end) but am still hoping someone can help.

Thanks!
 
Upvote 0
Then just swap out 1195 with E27:


Book1
EF
271195
28
29
30
31999
50999
Sheet662
Cell Formulas
RangeFormula
F50=IF(F31>0,MIN(F31,E27),0)
 
Upvote 0
You're welcome, thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,213,565
Messages
6,114,338
Members
448,569
Latest member
Honeymonster123

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