Rounding numbers to specific criteria
Hi,
I am working on spreadsheets with values that I want to be able to round up based on this criteria:
If the number ends in 0,1,2, then round to nearest 0
If the number ends in 3,4,5, then round to nearest 5
If the number ends in 6,7,8,9 then round to nearest 9
The spreadsheet contains dollar values and the majority are in the thousands, so they have 4-5 digits each.
I was trying to create an IF statement that would look at the value, identify the last digit of the value as defined above and then round the number accordingly.
So if I have a value of $1,991 the formula would round the number to $1,990
or if I have a value of $1,993 the formula would round the number to $1,995
and if I have a value of $1,996 the formula would round the number to $1,999.
I am working with thousands and thousands of cells so a formula would be so helpful instead of going through the sheet. I have tried the MROUND and CEILING formulas but I can not round to the nearest "9" with those types of formulas.
Your help is greatly appreciated.