Custom Number Format Not Work in Decimal Format Percentage

muhammad susanto

Well-known Member
Joined
Jan 8, 2013
Messages
2,102
Office Version
  1. 365
  2. 2021
Platform
  1. Windows
hi all..

how to make in custom number format e.i
<style type="text/css">
table.tableizer-table {
font-size: 12px;
border: 1px solid #CCC ;
font-family: Arial, Helvetica, sans-serif;
}
.tableizer-table td {
padding: 4px;
margin: 3px;
border: 1px solid #CCC ;
}
.tableizer-table th {
background-color: #104E8B ;
color: #FFF ;
font-weight: bold;
}
</style>
[TABLE="class: tableizer-table"]
<thead>[TR="class: tableizer-firstrow"]
[TH]typing[/TH]
[TH]target/result[/TH]
[/TR]
</thead><tbody> [TR]
[TD]1[/TD]
[TD]+1%[/TD]
[/TR]
[TR]
[TD]-1[/TD]
[TD]-1%[/TD]
[/TR]
[TR]
[TD]0[/TD]
[TD]0%[/TD]
[/TR]
[TR]
[TD]2,5[/TD]
[TD]+2,5%[/TD]
[/TR]
[TR]
[TD]-2,5[/TD]
[TD]-2,5%[/TD]
[/TR]
</tbody>[/TABLE]


i have use : +0%;-0%;0% in custom number format but not fully work for decimal number..
note :
mark (,) as decimal mark not use dot.

any help, thanks in advance..

susanto
 
Last edited:

Excel Facts

Select a hidden cell
Somehide hide payroll data in column G? Press F5. Type G1. Enter. Look in formula bar while you arrow down through G.
You are using European number format. I can't test on it because I use the US format. The following is what works on the US format. Maybe you can adapt it to European format.

I think you can only have one decimal format. So, you can only have 2.5% and 1.0 % but not 2.5% and 1%.

Please keep in mind that multiplication and division will not work. 1 x 1 =1 but 1% x 1% is not 1%, which is the result if you use this number format.

+#.0"%";-#.0"%";0"%"
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,181
Members
453,022
Latest member
Mohamed Magdi Tawfiq Emam

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