Ian Bell
asked on
round down to max number
Hi,
I'd like to round down a number to a max of 99
I'm using a very long formula containing multiplication of around 20 variables
so the below formula example would be too long
=IF(a1*b1*c1*d1*e1 etc>99,99,a1*b1*c1*d1*e1 etc
There must be a simpler way.
Help appreciated
Thanks
Ian
I'd like to round down a number to a max of 99
I'm using a very long formula containing multiplication of around 20 variables
so the below formula example would be too long
=IF(a1*b1*c1*d1*e1 etc>99,99,a1*b1*c1*d1*e1 etc
There must be a simpler way.
Help appreciated
Thanks
Ian
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
It is not the MAX down that is making your formula long/complex, it is the formula itself.
Can you use something like
Can you use something like
=PRODUCT(A1:E1)
Something like...
=IF(PRODUCT(A1:E1)>99,99,PRODUCT(A1:E1))
Try below, if multiplication is greater than 99.99, then it must show 99.99, else the normal multiplication.
=IF(PRODUCT(A1:E1)>99.99,ROUND(MIN(99.99,PRODUCT(A1:E1)),2),ROUND(PRODUCT(A1:E1),2))
ASKER
Sorry guys I should have informed you that the columns are not consecutive, hence a range would not work
here is an example, also several columns are multiplied by themselves eg a3*a3*a3 etc
=EJ18*EJ18*EJ18*EJ18*EJ18* EJ18*EJ18* EJ18*EJ18* EJ18*EJ18* EJ18*EA18* EA18*CB18* CB18*CE18* CT18*CZ18* CZ18*CZ18* CZ18*CZ18* CZ18*CZ18* CZ18*CZ18* CZ18*DC18* DI18*DI18* DI18*DI18* DI18*DI18* DI18*DI18* DI18*DI18
here is an example, also several columns are multiplied by themselves eg a3*a3*a3 etc
=EJ18*EJ18*EJ18*EJ18*EJ18*
Why the same cell multiplied few times? Please give us some more info or attach a sample workbook.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks Mr Hengel it works. and thanks to Neeraj for pointing it out
ASKER
Hi Shums,
Thanks for your question about reason for multiplication of columns.
I will pose a new question to see if there is a simpler way
Ian
Thanks for your question about reason for multiplication of columns.
I will pose a new question to see if there is a simpler way
Ian
You're welcome Ian!
Open in new window