importing text and numbers from excel

G

Guldo K

Hello.
I have a problem importing data from excel.
I used to import a table from excel; this table had numbers (long) in
the first column, and text in the second. Fine.

Now, text shows up in the first column in excel, too. So the first
excel column now contains both numbers and text. I've changed the
field type in access from 'number' into 'text', and tried to import
using the insert query I've always used.

Unfortunately, text from the first excel column is not imported; I get
null instead. (or maybe zero length strings? I don't know)
Numbers from the first excel column, instead, are correctly imported
as text.

How can I fix it?

Thank you.
 
J

Jim/Chris

When importing an Excel file the first few rows determine
the formatting. Make sure you have alphanumeric data in
these rows, preferably the first row. I sometime add a
dummy record as the first record in excel with the correct
formatting.

Jim
 
V

Van T. Dinh

If I have a "mixed" Column in Excel, I always create a "Calculated" Column
using the Spreadsheet function Text() to convert both numeric values and
text values from the original Column to Text values.

When I import the modified Excel spreadsheet, I skip the original Column and
import the "Calculated" Column.
 
J

Jamie Collins

Guldo K said:
I have a problem importing data from excel.
I used to import a table from excel; this table had numbers (long) in
the first column, and text in the second. Fine.

Now, text shows up in the first column in excel, too. So the first
excel column now contains both numbers and text. I've changed the
field type in access from 'number' into 'text', and tried to import
using the insert query I've always used.

Unfortunately, text from the first excel column is not imported; I get
null instead. (or maybe zero length strings? I don't know)
Numbers from the first excel column, instead, are correctly imported
as text.

See:

http://www.dicks-blog.com/excel/2004/06/external_data_m.html

Jamie.

--
 

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

Top