# Custom format for decimal places

#### FryGirl

##### Well-known Member
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​

#### Joe4

##### MrExcel MVP, Junior Admin
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)

#### FryGirl

##### Well-known Member
Hi Joe,

What if some of those numbers are percent's?

#### Joe4

##### MrExcel MVP, Junior Admin
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:

#### FryGirl

##### Well-known Member
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%​

#### Joe4

##### MrExcel MVP, Junior Admin
What exactly do your formulas in column A show for the percent calculations and non-percent calculations?

#### FryGirl

##### Well-known Member
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.

Threads
1,082,316
Messages
5,364,483
Members
400,802
Latest member
RichBRich

### This Week's Hot Topics

• populate from drop list with multiple tables
Hi All, i have a drop list that displays data, what i want is when i select one of those from the list to populate text from different tables on...
• Find list of words from sheet2 in sheet1 before a comma and extract text vba
Hi Friends, Trying to find the solution on my task. But did not find suitable one to the need. Here is my query and sample file with details...
• Dynamic Formula entry - VBA code sought
Hello, really hope one of you experts can help with this - i've spent hours on this and getting no-where. .I have a set of data (more rows than...
• Listbox Header
Have a named range called "AccidentsHeader" Within my code I have: [CODE]Private Sub CommandButton1_Click() ListBox1.RowSource =...
• Complex Heat Map using conditional formatting
Good day excel world. I have a concern. Below link have a list of countries that carries each country unique data. [URL...
• Conditional formatting
Hi good morning, hope you can help me please, I have cells P4:P54 and if this cell is equal to 1 then i want row O to say "Fully Utilised" and to...