the number in this cell is formatted as text and preceded by an apostrophe Help

brandon20

Board Regular
Joined
Feb 12, 2014
Messages
203
Hi,

I am having a data export issue from access to an excel .xlsx file. I am using Access 2010.

I am trying to export a column of numbers. But when it exports and I look in excel, the numbers all have a green indicator saying
"the number in this cell is formatted as text and preceded by an apostrophe"

I need these to just export as numbers.

The reason this is happening is because I needed to display blanks in some of the cells in the column, these cells must be blank but the other cells must be numbers.

How can I have these columns export as numbers and not be preceded by an apostrophe?



Here is the SQL I had to edit to ensure it exported certain cells as blanks.
SQL View:

iif(Last([DEV].MD)=10,null,Last([DEV].X)) AS TD_X,




Thanks,
Any help is appriciated
 

Excel Facts

Do you hate GETPIVOTDATA?
Prevent GETPIVOTDATA. Select inside a PivotTable. In the Analyze tab of the ribbon, open the dropown next to Options and turn it off
to get rid of the apostrophe, find ' and replace, its useful when you have leading zeros that fail to display correctly
 
Upvote 0
Hi,

Thanks for your help, I had thought to do that. But my goal was to export this sheet regularly and not have to step into it and do a find/replace.

In the end, when I did a find replace it did not find the '
So, not sure why it states that there is one. I ended up exporting the data with formatting and layout button clicked. This solves the issue, "the number in this cell is formatted as text and preceded by an apostrophe" does not show up anymore.

My one issue with exporting it with the layout button clicked is that it exports the data with "wrap text" on, I would like this to not be on but it is a very very minor issue.

Thanks again.
 
Upvote 0

Forum statistics

Threads
1,221,841
Messages
6,162,317
Members
451,759
Latest member
damav78

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top