We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

What is the correct "Currency Format" to display $123,456.78

Thread ID:





98305 Feb 18,2011 10:38 AM Feb 21,2011 12:56 AM ASP.NET Web Forms (Classic) 1
Tags: XlsIO
Ram Thatikonda
Asked On February 18, 2011 10:38 AM

I tried the format "$#,##0" but when opened in excel it shows as Custom format even though the value is displayed correct.

sheet[row, column++].NumberFormat = "$#,##0"

How do I fix the format to Currency in excel?


John Bowlin Bosco K [Syncfusion]
Replied On February 21, 2011 12:56 AM

Hi Ram,

Thank you very much for your interest in Syncfusion Products.

Using Essential XlsIO, the currency format is implemented in customized format as you mentioned. We can format the value to currency with the help of using number format
sheet.UsedRange.NumberFormat = "$#,##0.00";
which will format the value of 123456.78 as "$123456.78". But the cell format will be shown as custom format and it cannot be shown as currency format using XlsIO.

Please let us know if you need any clarifications.

Pauline Bosco.


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.