Excel Decimal place

ping0775

New Member
Joined
Jul 18, 2022
Messages
40
Office Version
  1. 2007
Platform
  1. Windows
Hi, for excel is the figure is 0.1, 150,
i can convert it automatically to 2 decimal in the format ribbon.
for example.
150 = 150.00
0.1 = 0.10


but if the value is 0.175
0.1857
the decimal place more than 2, how to remain the value
how to remain the third value without auto round up to 0.18

1. would like to auto round up if decimal place is less than 2
2. would like to keep the decimal if the value is more than 3
please assist
 

Excel Facts

How to find 2nd largest value in a column?
MAX finds the largest value. =LARGE(A:A,2) will find the second largest. =SMALL(A:A,3) will find the third smallest
Check if this works for you -

All Records.xlsb
CD
40.18750.1875
50.150.15
Sheet1
Cell Formulas
RangeFormula
D4:D5D4=IF(LEN(C4-INT(C4))>4,TEXT(C4,"#,##0.0000"),TEXT(C4,"#,##0.00"))
 
Upvote 0

Forum statistics

Threads
1,216,071
Messages
6,128,622
Members
449,460
Latest member
jgharbawi

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top