Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
If Formula - Help
I'm not sure if I'm using the right formula but this is what I need:
I need the the total of b4/b5, if that equals 160 or more I need it to show 160, if it's 159 or less I need that value to show. Thanks |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
If Formula - Help
Carrie,
=MIN(B4/B5,160) Mike "Carrie" wrote: I'm not sure if I'm using the right formula but this is what I need: I need the the total of b4/b5, if that equals 160 or more I need it to show 160, if it's 159 or less I need that value to show. Thanks |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
If Formula - Help
"Carrie" wrote:
I'm not sure if I'm using the right formula but this is what I need: I need the the total of b4/b5, if that equals 160 or more I need it to show 160, if it's 159 or less I need that value to show. Ostensibly: =min(160, B4/B5) But not that B4/B5 might not always be an integral value (158, 159, 160, etc). So I wonder if you mean: if B4/B5 would __appear__ as 159 or less when displayed in a cell formatted with zero decimal places. In that case, you might want: =min(160, round(B4/B5,0)) So if B4/B5 were 159.5 or larger, the result would be 160. |
#4
Posted to microsoft.public.excel.programming
|
|||
|
|||
If Formula - Help
If you want to use an If statement:
=IF(B4/B5=160,160,round(B4/B5,0)) -- Data Hog "Carrie" wrote: I'm not sure if I'm using the right formula but this is what I need: I need the the total of b4/b5, if that equals 160 or more I need it to show 160, if it's 159 or less I need that value to show. Thanks |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Regression Leverage Formula (Jerry W. Lewis or Mike Middleton)already have DFITS formula | Excel Worksheet Functions | |||
extract formula result form cell without running formula again | Excel Programming | |||
Formula expected end of statement error, typing formula into cell as part of VBA macro | Excel Programming | |||
Cell doesn't show formula result - it shows formula (CTRL + ' doe. | Excel Worksheet Functions | |||
Commenting custom formula fields/formula on formula editor | Excel Programming |