Formatting Excel Cell (custom format) -


i trying accomplish following when formatting excel cell:

number less 10 -> 2 decimal places number greater 10 -> no decimal places 0 -> 2 dashes (i.e --) 

i have following format put custom cell format, doesn't seem work zero:

[<10]$0.00;$#,### 

many thanks!

this asked for:

[=0]"--";[<10]$0.00;$#,### 

you want 0 condition first, it's restrictive. values less 0 formatted per "<10" specification.


Comments

Popular posts from this blog

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -

javascript - firefox memory leak -

Trying to import CSV file to a SQL Server database using asp.net and c# - can't find what I'm missing -