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/64231-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.

CLR

In Excel, how do I look for the last number either 0 or 5
 
You might want to check out the ROUND worksheet function.

If A1 contains 2.15
=ROUND(A1, 1) equals 2.2
If A1 contains 2.149
=ROUND(A1, 1) equals 2.1

or
=ROUND(-1.475, 2) equals -1.48
=ROUND(21.5, -1) equals 20

hth
Vaya con Dios,
Chuck, CABGx3



"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 04:20 AM.

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