'Round in excel last digit is 0 or 5

I would like to round a return value in excel with request below, it always > 0: If number is < 3 so round to 4 digits(ex: 0.0347) If number is < 15 so round to 3 digits but last digit is only 0 or 5( ex: 3.745, 6.340...) if number is < 60 so round 2 digits( ex: 25.43...) How to do that with function in excel?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source