Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

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

Posted on 2008-10-15
5
Medium Priority
?
778 Views
Last Modified: 2012-05-05
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!
0
Comment
Question by:catherinelouise
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
5 Comments
 
LVL 7

Expert Comment

by:natloz
ID: 22725108
In the format for the cell, what if you type in 0.00%
0
 
LVL 5

Author Comment

by:catherinelouise
ID: 22725313
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.
0
 
LVL 7

Accepted Solution

by:
natloz earned 2000 total points
ID: 22725339
No, I am talking about right clicking on the cell in the "Report" that holds the number and going to the properties and in the "Format" section typing in 00.0%
0
 
LVL 5

Author Comment

by:catherinelouise
ID: 22725918
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!
0
 
LVL 7

Expert Comment

by:natloz
ID: 22725956
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.
0

Featured Post

Learn how to optimize MySQL for your business need

With the increasing importance of apps & networks in both business & personal interconnections, perfor. has become one of the key metrics of successful communication. This ebook is a hands-on business-case-driven guide to understanding MySQL query parameter tuning & database perf

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this article we will learn how to fix  “Cannot install SQL Server 2014 Service Pack 2: Unable to install windows installer msi file” error ?
What if you have to shut down the entire Citrix infrastructure for hardware maintenance, software upgrades or "the unknown"? I developed this plan for "the unknown" and hope that it helps you as well. This article explains how to properly shut down …
Via a live example, show how to shrink a transaction log file down to a reasonable size.
Viewers will learn how to use the SELECT statement in SQL to return specific rows and columns, with various degrees of sorting and limits in place.

688 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question