473,503 Members | 6,385 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Does Importing Excel files into Access require a standard format?

26 New Member
I have data in an excel file(s) which is in Accounting format. This means that my feilds are going down the page and the values across. Do I have to change the excel format of the data? this would be extremely time consuming for each file. Or can I write a code that selects the data from the worksheet that I need to import? I am using Access 2003.
Any help would be greatly appreciated.
Oct 22 '07 #1
14 2010
Curben
47 New Member
I have data in an excel file(s) which is in Accounting format. This means that my feilds are going down the page and the values across. Do I have to change the excel format of the data? this would be extremely time consuming for each file. Or can I write a code that selects the data from the worksheet that I need to import? I am using Access 2003.
Any help would be greatly appreciated.
I Do not know if there is an obscure way to do what your doing, but I do know an easy way to make your excel file importable.

Create a new sheet
Copy all data from current sheet
Right click cel A1 on sheet two
Choose Paste Special
on the paste special box check the box for Transpose.


Now you should be able to import sheet two into access, if you need to do this often, either formulas or VBA Macros in Excel can refresh the data regularly. Depending on how many files you have the formulas option could be copied into multiple books.

Keep an eye on this thread however, I know very little in VBA and I would imagine sooner or later someone may know a way to import with vertical fields, but hopefully my help will get you started
Oct 22 '07 #2
ADezii
8,834 Recognized Expert Expert
I have data in an excel file(s) which is in Accounting format. This means that my feilds are going down the page and the values across. Do I have to change the excel format of the data? this would be extremely time consuming for each file. Or can I write a code that selects the data from the worksheet that I need to import? I am using Access 2003.
Any help would be greatly appreciated.
Curben's advice on Transposing the data in Excel seems to be sound. To the best of my knowledge, I see no easy way in Access to accomplish the same result. It would take some VBA trickery to flip-flop the Field designations and the data itself.
Oct 23 '07 #3
ALaurie10
26 New Member
Thanks alot. I really appreciate your assistance.
Oct 23 '07 #4
Curben
47 New Member
Thanks alot. I really appreciate your assistance.
If you need any help with automating the process for excel, let me know. Excel is my strongsuit.
Oct 23 '07 #5
ALaurie10
26 New Member
Yes Curben, I could really use your help. Unfortunately transposing the data is not working for me I have the basic name of my feild going down and the values going across. But there are four values for each feild. That is the first problem. The next problem is that, I many excel files that I need to transpose.
Oct 24 '07 #6
Curben
47 New Member
Yes Curben, I could really use your help. Unfortunately transposing the data is not working for me I have the basic name of my feild going down and the values going across. But there are four values for each feild. That is the first problem. The next problem is that, I many excel files that I need to transpose.
By your explenation, i am not sure why transpose would not work, can you be a little more in depth so i can understand, or if you can post up an example file somewhere i can take a look at it and then can provide more direct input
Oct 25 '07 #7
ALaurie10
26 New Member
ok, i am using access 2003 and excel 2003, my excel worksheet contain financial data. The Basic Name of each data feild are in cells going down the page( by record), For each Basic Name feild, I have four subfeilds of the Basic Name feild, with corresponding data( my values) that are in cells going across the page (by column). This is the crux of my dilemna.

I would like to be able to import the data of many different excel worksheets, which are all in similar format described above into an access table. Unfortunately, after a general import of my excel worksheet into access, I find that the data is specific or unique to Feild and record. The feilds after my import do not have similar information.

I am wondering if an SQL statement in a query would do the job of identifying specific feilds and records and putting it in an access table for me?
Oct 25 '07 #8
ALaurie10
26 New Member
here is an example:

Num Hrs Wk day
Work 10 50 2 5
pay 20 20 5 2
Oct 25 '07 #9
ALaurie10
26 New Member
ok that did not post correctly


........... Num........Week.........Hrs............day
Work.....10............5...............50......... .....6
Pay........6.............12..............4........ ........2..


get the idea?
Oct 25 '07 #10
Curben
47 New Member
ok that did not post correctly


........... Num........Week.........Hrs............day
Work.....10............5...............50......... .....6
Pay........6.............12..............4........ ........2..


get the idea?
Getting it . . . If I understand your worksheet is only 5 columns (for example) wide and builds onto rows? Or do columns get added in groups with each entry?

For arguments sake, this seems more like what excel is specifically meant to do. Financial spreadsheets and accounting. If it does need to be in access, it can be done, but will take some work and a fair amount of formulas/reporting to reach that goal. I am sure we can reach either a single method that can be reused and updateable w/o much hassles going forward to get all of your files in line. We will just need to go back and forthe a bit to resolve.

Answer the questions I posed and ill mull over some ideas, we will see what i have when you reply.
Oct 25 '07 #11
ALaurie10
26 New Member
My excel worksheet goes from A to AH. And I am sure some of the columns are hidden. The some of the data is calulated on the worksheet itself. Other data is referenced from another worksheet which is hidden and which pre-populates the data on the worksheet that holds data which I am trying to import. The hidden worksheet pulls the data from XML's. However the data that I need is determined in my current worksheet.
Oct 25 '07 #12
Curben
47 New Member
My excel worksheet goes from A to AH. And I am sure some of the columns are hidden. The some of the data is calulated on the worksheet itself. Other data is referenced from another worksheet which is hidden and which pre-populates the data on the worksheet that holds data which I am trying to import. The hidden worksheet pulls the data from XML's. However the data that I need is determined in my current worksheet.
Without the actual sheet, i can only wrap my mind around this so far. The answer, if there really is one; lies in either a pivot table, or creating a new sheet that pulls data from the first sheet in a standard format.

You can create A header row, then align Vlookups or Hlookups to reorganize data for importing purposes; an example using the table you posted might be
...................WorkNum........................ .....................PayNum
=vlookup("Work",A1:AH100,2,False)......=vlookup("P ay",A1:AH100,2,False)

Or a similiar way to concatenate the data. If that might work, see how you can aligh the data for import, if not, let me know and i will see what i can think of next
Oct 26 '07 #13
ALaurie10
26 New Member
Thanks, I am going to try it.
Oct 26 '07 #14
Curben
47 New Member
Thanks, I am going to try it.
Best of Luck, Please let me know if you get it to work
Oct 26 '07 #15

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

Similar topics

9
4016
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...
2
3586
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...
9
3893
by: jillandgordon | last post by:
I am trying to import an excel file into Access 97. It looks perfectly all right but, every time I try to import it, I get to the lst step and am told that it was not imported due to an error. ...
2
3159
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...
0
7194
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
7267
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
7316
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...
1
6976
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7449
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5566
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,...
0
4666
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3160
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
372
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.