Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
Roundup and rounddown function - how to combine
Assuming the numbers are never more than 2 decimal places
=INT(A1+.49) "Piotr (Peter)" wrote: Dear All, I have a spreadsheet with numbers containing decimals. I would like to combine somehow two functions so that if a number is e.g. 1.5 it should be rounded down to 1 and if it is 1.51 it should be rounded up to 2. How can I achieve this? Your prompt response would be highly aprreciated. Thanks |
#2
|
|||
|
|||
Quote:
=IF(LEN(A1)-FIND(".",A1,1)2,ROUNDDOWN(A1,0),IF(RIGHT(A1,FIND( ".",A1,1)+1)-0.50,ROUNDUP(A1,0),ROUNDDOWN(A1,0))) all the best
__________________
Thanks Bala |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
How do I roundup to .9 and rounddown to .9 | Excel Worksheet Functions | |||
rounddown + if function | Excel Worksheet Functions | |||
combine Rand & Roundup? | New Users to Excel | |||
ROUNDDOWN Excell function | Excel Worksheet Functions | |||
Roundup or rounddown | Excel Worksheet Functions |