473,387 Members | 1,495 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,387 software developers and data experts.

Importing data from Multiple Excel Files into Access, mapping the fields and comparin

Hi, I'm moving over to Access from Filemaker I need to create an Access db that manages some data feeds from some supplier websites.

The data feeds come in differing excel formats 2003 and 2007. At the moment its 5 different feeds.

The feeds have the same general information in but come in different layouts. Example feed1.xls may have column 3 as
End Date, where feed2.xlsx may have column 6 as Expiry Date. The data is the same but in different columns and column names.

The end result I'm looking for is to merge all the data feeds into one table in Access to manage it. As the feeds change on a regular basis I also need to be aware of what has changed so highlighting the new / changed data would also be very useful.

Filemaker used to have a very good import tool that you could map excel fields to specific columns, but I cannot see this in Access.

What would be the best approach with Access?
Feb 2 '12 #1
10 4098
NeoPa
32,556 Expert Mod 16PB
That depends on how much automation you want to use. The more you want, the better information you'll need to provide in order even to be able to help and direct you.

At this stage though, I can tell you that importing in Access from Excel is quite lacking in flexibility and the ability to specify what you want. Therefore I would suggest you start looking at importing the spreadsheets into new tables and then examining the data imported in order to append it intelligently to your main table. Once the workbook has been imported you have access to all the fields and their names etc., etc.
Feb 3 '12 #2
Mihail
759 512MB
Why do not manage that in Excel ?
Create a new sheet, name the fields (columns) as you need, then fill that columns by simple append data from where you need.
Of course that task can be fully automated (in Excel VBA).
Feb 3 '12 #3
NeoPa
32,556 Expert Mod 16PB
Mihail:
Why do not manage that in Excel ?
It's possible to handle it in Excel if you're comfortable with Application Automation, but the question is quite specific :
Aiko Hayashi:
What would be the best approach with Access?
Feb 3 '12 #4
Mihail
759 512MB
Hi, NeoPa !
Sorry, but I handle English like chinese they're symbols: as an idea. :)
I understand 75% then I complete the rest from my brain.
So forget me if I can't be very specific trying to provide some help.
More than, some times (not this time) I post only for subscribe to a thread. But, if I think that I have an idea, I post that idea too.
Feb 3 '12 #5
NeoPa
32,556 Expert Mod 16PB
Mihail, I'm fully aware of the trouble you have posting and dealing with technical issues in English. I have trouble understanding much of what is said even by the people who are supposed to speak English natively, so I'm only impressed that you manage so well.

Don't worry about getting things wrong from time-to-time. We all do it anyway, and most of us don't have such a good excuse :-D

Only the most ignorant of members will ever criticise you for your attempts, and even those comments are unlikely to stay visible for very long ;-)
Feb 3 '12 #6
Hi, thanks for the responses and sorry for the late reply.

I will try and give some more specific info around what I have been asked to achieve.

So up to now I have been using Excel with a few macro’s to realign the columns around then merge to a single file, its turning into a right head ache as my manager has asked me to roll this out across the business, problem I have is that some of the sheets can be up-to twenty columns long. No two data feeds have the same column layout or even column names. Also more data feeds will soon be added. It seems to be a lot of manual work. I was hoping there would be a more elegant solution using Access and linking the tables in.

Here are some examples of the way that the excel data feed sheets are laid out.
(Most files contain a lot more columns)

File 1 – SupplierX–feed.xls
Opp Number Registered Customer Status Expiry
abc123 19/01/2012 BBC Approved 19/05/2012

File 2 – SupplierY-feed.xls
Customer name Deal ID Status Registration Date Expiry
ITV 555deal555 Review 02/02/2012 NA

File 3 – SupplierZ-feed.xls
Deal Number Customer Date Registered Deal Status Expiry Date
123456789 Channel5 01/10/2011 Expired 01/01/2012

Summary Report I’m looking to create will look like this.

Deal ID Customer Status Registered Expiry
abc123 BBC Approved 19/01/2012 19/05/2012
555deal555 ITV Review 02/02/2012 NA
123456789 Channel5 Expired 01/10/2011 01/01/2012

The data is generally the same but under different column names and different column position.

In term of automation, I was looking to dump all the data feeds into a single folder, this datadump would likely happen twice a week (mon + wed). Have these linked to a single Access database. Each feed as a separate table – this does not need to be dynamically created if say a new feed was added in, I can live with setting up a table each time again. The Deal ID columns will contain unique deal numbers, so this could be used a Primary key.

Access would then merge the feeds into a single report (prob to be exported to Excel).

Ideally I would be able view new records and changes to records since the previous datadump. E.g. in the above example if the status of deal 555deal555 for ITV changed to Approved I would be able highlight this record.
Feb 16 '12 #7
NeoPa
32,556 Expert Mod 16PB
As your question is all about finding the common ground between disparate feeds, it's unusual that you say nothing about how to identify this common ground apart from very generally and non-specifically. Clever computer programs aren't really clever. They don't think like humans. They need to be told how to respond to the data they find. To do that you need to analyse the data they're likely to find and set up rules for the program to follow.

I see nothing that would even help with that in your latest post (though clearly you're trying to provide the required information). I hope this helps you better to understand what is required before we can help you, to proceed.

What data is consistent across all feeds?
What are the column titles for this data across the different feeds?

I hope you appreciate also, that programming something like this is many times more complicated than doing it yourself manually. I would say too complicated for most people to handle. What you ask is not trivial, and even less trivial to pass on to someone else if they need to be told. Don't be surprised if you find it's all too complicated at the end of the day.
Feb 16 '12 #8
Mihail
759 512MB
As I see the problem I think that is easier to design a really database, using Access, starting from zero.
After you have a functionally program fill the tables, even manually, then forget Excel.

I say that based on two of your sentences:
1) At the moment its 5 different feeds (#1);
2) Also more data feeds will soon be added (#7)
I wish to add that more suppliers will soon be added. Isn't it ?

This and your simple data say me that this task is a perfect candidate for an Access database.

Alternatively, standardize the Excel input using unique identifier for suppliers, feeds and so on.
But, in my opinion, this is a hard work. And why to do that if Access is designated to mange that type of data ?

Sorry NeoPa.
Again I don't answer to original question, but, in my opinion, is no answer to fit the original question and Aiko's background.
One of them must be changed :) .
Feb 16 '12 #9
MMcCarthy
14,534 Expert Mod 8TB
Aiko

As I understand it. The data in these feeds is the same but the column titles and positions will vary. Access doesn't have a mapping tool as you understand it.

What NeoPa is saying to you is that in Access we use something call Automation to code the import routines. The code would be designed to open each excel workbook and examine it, then map the data appropriately. This code would necessarily be quite complicated.

An alternative suggestion you could try setting up saved import routines. By this I mean you can import each feed manually once and "Save and Name" the import steps. You can then use this template to import that feed from then on. However, this would depend on the feed never changing. By that I mean that column names and placement for Feed1.xls would always have to be the same.

If this is not the case the NeoPa's suggestion is the only way to go.
Feb 17 '12 #10
NeoPa
32,556 Expert Mod 16PB
Close enough Mary. Not necessarily Application Automation, as it could be handled within Access, but the code would necessarily be somewhat complicated if it had to determine (from rules not yet available to us) what should be where. This could be manipulated within Access, but I believe your idea about multiple, predefined, import routines set up manually, to match all possible scenarios is a more straightforward approach. More likely manageable by a standard power-user of Access rather than a full-blown developer.
Feb 17 '12 #11

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

Similar topics

2
by: Jen | last post by:
Trying to take one table in access and split it into multiple excel files(using an excel template); and then email based on email addresses in Table2; Of course, I would like to do all of this...
3
by: Arno R | last post by:
Hi all, I need to transfer a lot of (denormalized) data from Excel To Access. Data is totally wrong formatted for my needs. I need to transform rows and columns. I also need to be able to...
3
by: phong.lee | last post by:
Hello all, i'm new at this. I need some assistant in transferring data from excel to access. I created a macro that basically gather all the necessary data that i need to bring into access. I...
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...
3
by: theodorej | last post by:
......how do I select multiple Excel files to import into Access? Any insights would be deeply appreciated.
28
by: kkadakia | last post by:
I get a daily excel file for a entire month which I want to transfer into Access at the end of the month. So, there are around 20-25 excel files I get by the end of the month, and I would like to...
1
by: Haas C | last post by:
Hi All! I was wondering if you guys can help with this: I have created an Access database which has a table with identical fields as a tab in an Excel workbook. To update this table (tblClaims),...
2
by: ciaran.hudson | last post by:
Hi I have multiple excel files of the same format in a directory. They are called book1.xls, book2.xls, book3.xls and so on. What is the easiest way to import the tab named sheet1 from each of...
2
by: muddasirmunir | last post by:
I want to know how can we Import data from Excel into Excel Using vb6. Any help where can i start ?
0
by: zizi2 | last post by:
Hi, how do I output multiple excel files from one source using vbscript? Regards, Noluthando
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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: 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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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...

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.