![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
New Member
Join Date: Apr 2002
Posts: 1
|
I am trying to limit the results of a formula to a maximum value of 100. The basic formula looks like this:
=(F19*G21)+(G19*G22)+(H19*G23)+I19 If anyone can tell me what needs to be done to limit the result to a maximum of 100 that would be great! |
|
|
|
|
|
#2 | |
|
MrExcel MVP
Join Date: Mar 2002
Location: Chicago, IL USA
Posts: 2,042
|
Quote:
Change the formula to: =MIN(100,(F19*G21)+(G19*G22)+(H19*G23)+I19) Bye, Jay |
|
|
|
|
|
|
#3 |
|
Board Regular
Join Date: Mar 2002
Location: London, UK
Posts: 167
|
use and IF statement, ie:
=IF(((F19*G21)+(G19*G22)+(H19*G23)+I19)>100,100,(F19*G21)+(G19*G22)+(H19*G23)+I19) |
|
|
|
|
|
#4 |
|
Board Regular
Join Date: Mar 2002
Location: London, UK
Posts: 167
|
oh, Jay's formula is far better.
|
|
|
|
|
|
#5 |
|
Banned
Join Date: Feb 2002
Posts: 1,582
|
Hi CBlues
I would not suggest using such formulas without at least having some sort of flag as to which result is being returned. You may see 100 in the cell without realising the calculated formula is simply True for MIN(100) |
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|