Custom format for decimal places

FryGirl

Well-known Member
Joined
Nov 11, 2008
Messages
1,364
Office Version
  1. 365
  2. 2016
Platform
  1. Windows
Is there a custom format that can be applied to the following? Results like in column B, but I'm needing to apply the custom format on column A. Column A is the result of a formula.

A​
B​
1​
15.28​
15.28​
2​
15.00​
15​
3​
12.23​
12.23​
4​
0.02​
0.02​
5​
14.00​
14​
6​
0.11​
0.11​
 

Excel Facts

Excel motto
Not everything I do at work revolves around Excel. Only the fun parts.
If you choose the General Format (in which you do NOT denote the number or decimal places), it should do what you want, as long as your calculations in column A do not really have more than 2 decimal places. If they do, just use the ROUND function on your formula in column A, i.e.
=ROUND(your formula, 2)
 
Upvote 0
Hi Joe,

What if some of those numbers are percent's?
 
Upvote 0
What if some of those numbers are percent's?
You didn't mention that possibility.
In those cases, what do those values look like, and what do you want them to look like?

Note that percents are really just numbers (unless they are entered as text). It is formatting that shows them as percents.
So, the question is, how do you differentiate between them and other numbers?

I think it would be helpful to see exactly what the formulas in column A look like.
 
Last edited:
Upvote 0
Sorry about that

Data Range
A​
B​
1​
15.28​
15.28​
2​
15.00​
15​
3​
12.23​
12.23​
4​
0.02​
0.02​
5​
14.00​
14​
6​
0.11​
0.11​
7​
15.00%​
15%​
8​
3.45%​
3.45%​
9​
0.02%​
0.02%​
10​
23.00%​
23%​
 
Upvote 0
What exactly do your formulas in column A show for the percent calculations and non-percent calculations?
 
Upvote 0
Hi Joe and thanks for your time.

I seperated the two columns and will just use a custom format like [>=1]0;[>0.001]0.00

That's seems to do the job.
 
Upvote 0

Forum statistics

Threads
1,214,788
Messages
6,121,597
Members
449,038
Latest member
Arbind kumar

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