Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 02-01-2012, 10:52 PM
achuki achuki is offline Handle Text / Numeric values in SSRS while Export To Excel Windows XP Handle Text / Numeric values in SSRS while Export To Excel Office 2003
Novice
Handle Text / Numeric values in SSRS while Export To Excel
 
Join Date: Feb 2012
Posts: 1
achuki is on a distinguished road
Default Handle Text / Numeric values in SSRS while Export To Excel

I am using SSRS and one of the column in my report is having both Text values and Numeric values.
e.g.


A
U
1
2
Y


While doing export to excel, for numeric values there is a TAG coming in the cell (excel file) with message "The number in this cell is formatted as text or preceded by an apostrophe."
How can I remove the TAG and the message for numeric values.
Reply With Quote
  #2  
Old 02-06-2012, 08:20 PM
macropod's Avatar
macropod macropod is offline Handle Text / Numeric values in SSRS while Export To Excel Windows 7 64bit Handle Text / Numeric values in SSRS while Export To Excel Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 22,340
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

Hi achuki,

Is there a reason you can't simply remove the tag for all records (eg by Find/Replace)?
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
  #3  
Old 02-07-2012, 01:53 AM
Catalin.B Catalin.B is offline Handle Text / Numeric values in SSRS while Export To Excel Windows Vista Handle Text / Numeric values in SSRS while Export To Excel Office 2010 32bit
Expert
 
Join Date: May 2011
Location: Iaşi, Romānia
Posts: 386
Catalin.B is on a distinguished road
Default

In an empty cell, type 1 (this will be the multiplication factor used below, using 1 will not change the cell values)
Right click the cell, select copy, then , after selecting te column, from the paste special menu, choose operation Multiply--> ok. Press Esc from keyboard to exit CutCopyMode. All column will be reformated to General format, which means that the numbers are alligned to the right side of cell, and text is alligned on the left side of the cell. At this moment, the numbers from that column are recognised as numbers, not text, and can be used in another calculations. Anyway, does not matter if you need to use those numbers, this will remove also the information error.
Reply With Quote
  #4  
Old 02-07-2012, 04:10 AM
macropod's Avatar
macropod macropod is offline Handle Text / Numeric values in SSRS while Export To Excel Windows 7 64bit Handle Text / Numeric values in SSRS while Export To Excel Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 22,340
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

Hi Catalin,

That won't delete the comment tag (ie "The number in this cell is formatted as text or preceded by an apostrophe.") preceding the number.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
  #5  
Old 02-07-2012, 06:04 AM
Catalin.B Catalin.B is offline Handle Text / Numeric values in SSRS while Export To Excel Windows Vista Handle Text / Numeric values in SSRS while Export To Excel Office 2010 32bit
Expert
 
Join Date: May 2011
Location: Iaşi, Romānia
Posts: 386
Catalin.B is on a distinguished road
Default

Hi Paul,
Maybe i misunderstood the problem.
If the cell contains that message beside the values, obviously the multiply by 1 operation will not change the content. In this case, Find and replace will do the job , of course. I thought that the error message comes from error checking rules , in this case , find and replace will not work, only reformatting the cells will stop those messages, or uncheck that error checking rule in Tools, options-formula-error checking rules.
Maybe achuki will clarify the dilema, i am still not sure which is the case.
I hope i'm wrong
Catalin
Reply With Quote
  #6  
Old 02-07-2012, 02:14 PM
macropod's Avatar
macropod macropod is offline Handle Text / Numeric values in SSRS while Export To Excel Windows 7 64bit Handle Text / Numeric values in SSRS while Export To Excel Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 22,340
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

Hi Catalin,

Or maybe I misunderstood. If it's just the Excel 'error checking' message, the multiply by 1 operation may indeed resolve the issue. Frankly, if that's all it is and unless the affected 'numbers' need numeric evaluation, I wouldn't even bother. I have one workbook in which every 2nd cell has an 'error checking' message of one kind or another.

As for turning off Excel 'error checking' function, that can certainly improve workbook performance (and delete any distracting messages). Unfortunately, it's also an application-level function that affects all workbooks, not just the one that's active at the time.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
Reply

Tags
export to excel



Similar Threads
Thread Thread Starter Forum Replies Last Post
Handle Text / Numeric values in SSRS while Export To Excel Generate chart from list of text values knownunknown Excel 6 04-24-2013 01:56 AM
Handle Text / Numeric values in SSRS while Export To Excel Mailing: Reading values from Excel to Word Jamal NUMAN Excel 9 09-02-2011 02:08 AM
Handle Text / Numeric values in SSRS while Export To Excel [How To] Generate Alpha Numeric Values in Excel 2010 stnicholas81 Excel 1 07-25-2011 01:31 AM
How Do I Put Text Values Into A CSV That Excel Will Leave Along? eBob.com Excel 2 05-04-2011 07:01 AM
Objective: Automatically export email text,attachment text to DB friendly format SilentLee Outlook 0 11-14-2010 02:45 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 10:42 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft