C
checkraiser
I have an RDLC file report where on a few data elements, I'm running a format
function on the data in order to get commas separators in the number. The
textbox property for the data elements value is
=Format(CLng(Fields!MyField.Value),"###,###,###,##0")
The data elements in the xsd that the report uses are defined as either
decimal or integer. Essentially, we just want to get a whole number here
with no decimal places that has a readable comma delimiter every 3 positions.
The format works well for the web report. But when the report is generated
in Excel, I get a bunch of green corner triangles with an error that says,
"The number in this cell is formatted as text or preceeded by an apostrophe."
The values are all treated as character data in the spreadsheet and not as
numeric values that calculations can be performed on, making it frustrating
if you want to do some simple math in the spreadsheet.
Is there a way to format this data so that it will be recognized as a number
in excel and still have the commas in the number for readability?
function on the data in order to get commas separators in the number. The
textbox property for the data elements value is
=Format(CLng(Fields!MyField.Value),"###,###,###,##0")
The data elements in the xsd that the report uses are defined as either
decimal or integer. Essentially, we just want to get a whole number here
with no decimal places that has a readable comma delimiter every 3 positions.
The format works well for the web report. But when the report is generated
in Excel, I get a bunch of green corner triangles with an error that says,
"The number in this cell is formatted as text or preceeded by an apostrophe."
The values are all treated as character data in the spreadsheet and not as
numeric values that calculations can be performed on, making it frustrating
if you want to do some simple math in the spreadsheet.
Is there a way to format this data so that it will be recognized as a number
in excel and still have the commas in the number for readability?