ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   In Excel, how do I look for the last number either 0 or 5 (https://www.excelbanter.com/excel-worksheet-functions/64232-excel-how-do-i-look-last-number-either-0-5-a.html)

dd

In Excel, how do I look for the last number either 0 or 5
 
On our pricing sheet, we want to round up if the last number of a two decimal
place 5 or more and round down if less than 5 per cell. I know a if
statement should do it, but have not been able to complete one.

David Billigmeier

In Excel, how do I look for the last number either 0 or 5
 
I think you should be able to do this with a simple ROUND() function...

=ROUND(A1,1)

For example, This will turn 45.85 into 45.90 and 45.84 into 45.80. Is this
what you wanted?

--
Regards,
Dave


"dd" wrote:

On our pricing sheet, we want to round up if the last number of a two decimal
place 5 or more and round down if less than 5 per cell. I know a if
statement should do it, but have not been able to complete one.



All times are GMT +1. The time now is 11:20 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com