Link to home
Start Free TrialLog in
Avatar of catherinelouise
catherinelouise

asked on

How to get rid of 'Number stored as text' after rendering report in Excel from SSRS

I'm rendering a matrix into Excel and have found that whenever I use the Format function on a cell I then get 'Number Stored as Text' message in Excel - it's the green triangles everywhere that make it look really ugly.

I want to use Format as I am carrying out a division of one value by another in this cell and would like to, at a minimum, display the value to 2 decimal places, or ideally as a nice percentage.

Without Format it renders fine.  Using FormatPercent, or Format to P2, N2 etc, I get the message.

Any ways to deal with this would be greatly appreciated!
Avatar of natloz
natloz

In the format for the cell, what if you type in 0.00%
Avatar of catherinelouise

ASKER

Hello, I've just reread my question and I don't think I worded it very well - so the matrix is in a SQL Server Reporting Services report, and it's when I render into excel that I have this problem.

I think by your question you mean is it resolved by amending the format of the excel cell?  This would not really be an option as the report will be auto-run and rendered into Excel for distribution to clients, so this problem has to be resolved in SSRS and not in Excel.
ASKER CERTIFIED SOLUTION
Avatar of natloz
natloz

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Heh well I beg your pardon.  I have done this and it has done the trick.  I always assumed this way of formatting the cell was just doing the same thing behind the scenes and never used it - how does this way differ?

Thank you very much anyway!
I think the excel renderer does not always interpret the data to be of a specific datatype unless it is defined in the report, it just assumes that it could be anything, therefore a string is what it uses.