ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   FormatNumber (https://www.excelbanter.com/excel-programming/378886-re-formatnumber.html)

Bob Phillips

FormatNumber
 
ActiveCell.Value = IntT(ActiveCell.Value * 100) / 100

--
---
HTH

Bob

(change the xxxx to gmail if mailing direct)


"Nate Lasko" wrote in message
...
this piece of code

ActiveCell.Value = FormatNumber(ActiveCell.Value, 2)

I dont want it to round the number i am performing the function. any way I
can get around that??? I just want it to truncate any numbers after the
second decimal place

Please help!!!

Thank You





All times are GMT +1. The time now is 06:25 AM.

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