ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   If then statement displaying 2 or 3 decimal places (https://www.excelbanter.com/excel-worksheet-functions/132472-if-then-statement-displaying-2-3-decimal-places.html)

miles

If then statement displaying 2 or 3 decimal places
 
If I input a number that has 2 decimal places I want it to display 2 decimal
places, if I put in 3 decimals I want it to display 3.

$.02 = $.02
$.129 = $.129 (not $.13)
$.120 = $.12

That make sense?

Fred Smith

If then statement displaying 2 or 3 decimal places
 
Format your cell as General.

--
Regards,
Fred


"Miles" wrote in message
...
If I input a number that has 2 decimal places I want it to display 2 decimal
places, if I put in 3 decimals I want it to display 3.

$.02 = $.02
$.129 = $.129 (not $.13)
$.120 = $.12

That make sense?




David Biddulph[_2_]

If then statement displaying 2 or 3 decimal places
 
Custom format:
"$ "General
--
David Biddulph

"Miles" wrote in message
...
If I input a number that has 2 decimal places I want it to display 2
decimal
places, if I put in 3 decimals I want it to display 3.

$.02 = $.02
$.129 = $.129 (not $.13)
$.120 = $.12

That make sense?





All times are GMT +1. The time now is 05:42 AM.

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