Numeric data being ignored

  • Thread starter Thread starter Anu
  • Start date Start date
A

Anu

I have a excel file with data that i import to other excel
files. Im doning this by using the querytable object.
The problem is that the source file contains text &
numeric data in one column. When this is imported onto the
new file, the numeric data is missing.
How can i force excel to treat the numbers as text.
The import is a part of a series of automated processes &
i need to achieve this progarmatically.

Thanks!
- Anu.
 
Anu

You could prefix the data with a single apostrophe ('). It won't display but
will transfer all as text. If you do VLOOKUPs or similar on this data it
may be difficult with this route.


--
HTH
Nick Hodge
Microsoft MVP - Excel
Southampton, England
(e-mail address removed)
 
I have tried the single apostrophe and it does display, am
I doing something wrong. I am creating a file out of our
mainframe comma delimited (.CSV).

Thanks

Adam Goch
Roadway Express
(e-mail address removed)
 
Adam

If the file has a .csv extension Excel ignores any settings. Try saving it
without an extension or with a .txt one.

--
HTH
Nick Hodge
Microsoft MVP - Excel
Southampton, England
(e-mail address removed)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top