rhservan
asked on
How do I convert an alphanumeric field in SSRS and export to excel to avoid the number stored as text error?
I have a report with 12 columns. 11 columns export fine to excel. However, I have one of the SSRS columns that is an numeric & alphanumeric, aaa1111....etc.. When I export to excel and I open the file to view I have the green error mark in the cells of that column that are just numbers.
If I change to the expression =CDbl(Fields!your_numerica l_column.V alue) on the field all of my numbers only are corrected but the alphanumeric have errors. Please assist.
If I change to the expression =CDbl(Fields!your_numerica
ASKER
Here is the expression that I placed on that field:
=""+Fields!TrailerNumber.V alue+""
This worked only on the alphanumeric but not the numeric only.
=""+Fields!TrailerNumber.V
This worked only on the alphanumeric but not the numeric only.
try
=""""+Fields!TrailerNumber .Value+""" "
or
="'"+Fields!TrailerNumber. Value+"'"
=""""+Fields!TrailerNumber
or
="'"+Fields!TrailerNumber.
ASKER
This worked to remove the errors in excel:
=""""+Fields!TrailerNumber
However, in both the report and excell it shows the double quote around the values. Is there a way to hide them?
E.g. - "41244" or "JBHY3277"
Or perhaps another method. I am testing the other expression now.
ASKER
Second expression results:
This worked to remove the errors in excel:
="'"+Fields!TrailerNumber. Value+"'"
However, in both the report and excell it shows the double quote around the values. Is there a way to hide them?
E.g. - '41244' or 'JBHY3277'
This seems to be pretty much the same issue with the single quotes. Waiting for further advisement.
This worked to remove the errors in excel:
="'"+Fields!TrailerNumber.
However, in both the report and excell it shows the double quote around the values. Is there a way to hide them?
E.g. - '41244' or 'JBHY3277'
This seems to be pretty much the same issue with the single quotes. Waiting for further advisement.
what is your query?
ASKER
Is there a particular part of the query you need to view?
the part for "aaa1111"
ASKER
Here is the query.
EESample.txt
EESample.txt
which column is creating issue?
ASKER
Trailernumber
also can you please post a sample excel file that shows the issue...
can you please post a small sample of that excel file
as an excel file, attachement I mean
ASKER
Here you go.
EESamplexls.xls
EESamplexls.xls
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
when you select a range make sure first cell has that green option... so you can ignore all warnings for that selection...
ASKER
Just to confirm, the solution is only in Excel and not in SSRS?
expression = '"' + ... + '"'