473,396 Members | 1,777 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Need help Importing data from excel

23
I am trying to import data from a spreadsheet into a pre-created table. The table however has columns that the spreasheet does not such as an autonumber PK and an ID as the FK.

What is the best way to get start importing into column 3 of the table from the spreadsheet and keep the first 2 columns intact.

The other problem I have is when I try to import some calculated fields from excel I get #NUM! in the table.

Any help would be appreciated.
Nov 3 '06 #1
4 1589
NeoPa
32,556 Expert Mod 16PB
Your first question doesn't seem very clear, can you remember what it means?
As for the second, is the #NUM data already in the Exel spreadsheet? I suspect it is.
Tidy up your Excel data first then you could try 'Linking' the spreadsheet instead of importing it.
That way you could merge it in intelligently using an action query.
Nov 3 '06 #2
Fotorat
13
I think I know what you mean, to start importing from into the 3rd access tbl field you could simply insert to blank columns into the excel sheet so column A and B are blank.

the second problem you have in your formula cells in excel is that you are actually pasting in the formula text not the result of the formula. you can get around this in excel by highligthing the whole sheet and doing copy> paste special > values. warning> this will over write your formulas with the results, but will import ok

Tony
Nov 3 '06 #3
PEB
1,418 Expert 1GB
Ehe NeoPa you see... the sample Copy /Paste sometimes is more powerfull than the programming tools that we use ;)

Only Hide the columns that you don't ned to populate with info and the other will follow...

:)

And I think our language is sometimes a bit sofisticated for begginers...

But we think that everybody wants to do the things programatically :)

Best regards..
Nov 4 '06 #4
MMcCarthy
14,534 Expert Mod 8TB
I am trying to import data from a spreadsheet into a pre-created table. The table however has columns that the spreasheet does not such as an autonumber PK and an ID as the FK.

What is the best way to get start importing into column 3 of the table from the spreadsheet and keep the first 2 columns intact.

The other problem I have is when I try to import some calculated fields from excel I get #NUM! in the table.

Any help would be appreciated.
As NeoPa said, link the spreadsheet rather than importing it.

Now use an update query to add your data to the table if the records already exist (you will need some field value in common) or an append query to add new data to your table.
Nov 7 '06 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

4
by: Little PussyCat | last post by:
Hello, I nee to write something that will transfer excel data into an SQL Server table. I have for another database application I wrote have it importing Excel spreadsheet data using cell by...
11
by: Grim Reaper | last post by:
I am importing a .csv file into Access that has 37 fields. My problem is that sometimes the last field only has data at the end of the column (it looks like when you import a file into Access, for...
9
by: Edward S | last post by:
I budget for a Project in an Excel sheet as illustrated below. The months below are usually a 2 year period i.e. 24 months, though it could be over 24 months depending upon a Project. I then...
7
by: Darren | last post by:
I have been attempting to create a reservation planning form in excel that imports Data from an Access database and inserts that information automaticly into the correct spreed sheet and the...
2
by: nutthatch | last post by:
I want to be able to import an Excel spreadsheet into Access 2K using the macro command Transferspreadsheet. However, the file I am importing (over which I have no control) contains some records...
1
by: Geoff Jones | last post by:
Hi I have a question which I hope somebody can answer. I have written a VB application with which I want to import an Excel file, analyze the data within it and do some calculations. There are...
2
by: Snozz | last post by:
The short of it: If you needed to import a CSV file of a certain structure on a regular basis(say 32 csv files, each to one a table in 32 databases), what would be your first instinct on how to...
2
by: jereviscious | last post by:
Hi all - Last resort time. I'm importing data from a spreadsheet that I receive from one of my vendor using interop.excel. The date field in excel is entered as 4/7/2006, but when I retrieve...
5
by: hharriel | last post by:
Hi, I am hoping someone can help me with an issue I am having with excel and ms access. I have collected data (which are in individual excel files) from 49 different school districts. All...
3
by: mukeshsrivastav | last post by:
dear sir i want to move form excel to access. i have 5 excel file having same formats and fields.now i want to import all data in one access table. importing one file is easy .but importing and...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.