Solved

Cleaning up Excel Sheet before importing to Access

Posted on 2011-02-14
12
262 Views
Last Modified: 2012-05-11
I have an excel sheet that has junk at the top because it's exported from a formatted Crystal Report with titles.  Is there something I can do to strip off the headers before importing it into Access?

When I import to Access, the headers are not consistant and it fouls up the queries.

Thanks,
Craig
0
Comment
Question by:OnsiteSupport
  • 5
  • 3
  • 2
  • +1
12 Comments
 
LVL 33

Expert Comment

by:jppinto
ID: 34890361
You can simple delete those lines, no?
0
 
LVL 120

Expert Comment

by:Rey Obrero (Capricorn1)
ID: 34890368
have you tried importing the excel file into a temp table without the column names?

btw, better if you upload a copy of the excel file and give details what you want to be cleaned.
0
 
LVL 33

Expert Comment

by:jppinto
ID: 34890369
...those ROWS, no?
0
Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

 

Author Comment

by:OnsiteSupport
ID: 34890382
0
 

Author Comment

by:OnsiteSupport
ID: 34890391
ippinto....I want this automated as part of an application for anyone to import the data.  I don't want them touching the "raw" spreadsheet.

Thanks
0
 
LVL 120

Expert Comment

by:Rey Obrero (Capricorn1)
ID: 34890439
you can create a copy of the excel file (in codes)
delete the last row in codes
how is the first row be cleaned?
0
 

Author Comment

by:OnsiteSupport
ID: 34890446
Sorry  What do you mean by "In Codes?"
0
 
LVL 120

Accepted Solution

by:
Rey Obrero (Capricorn1) earned 500 total points
ID: 34890474
in codes > not manually..
0
 

Author Comment

by:OnsiteSupport
ID: 34890517
It was just a bit painful matching column names to real names in the query.  Guess I can't get around that one.

Thanks for the tip
0
 
LVL 100

Expert Comment

by:mlmcc
ID: 34891390
You could export just the data then you should get the fieldnames as the titles

mlmcc
0
 

Author Comment

by:OnsiteSupport
ID: 34891978
The design of the headings in crystal causes the export to jumble the order of columns.
0
 
LVL 100

Expert Comment

by:mlmcc
ID: 34894036
If you choose the data only then the report headings don't get used but the field column names.

mlmcc
0

Featured Post

The Eight Noble Truths of Backup and Recovery

How can IT departments tackle the challenges of a Big Data world? This white paper provides a roadmap to success and helps companies ensure that all their data is safe and secure, no matter if it resides on-premise with physical or virtual machines or in the cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Phishing attempts can come in all forms, shapes and sizes. No matter how familiar you think you are with them, always remember to take extra precaution when opening an email with attachments or links.
As tax season makes its return, so does the increase in cyber crime and tax refund phishing that comes with it
This Micro Tutorial demonstrates how to create Excel charts: column, area, line, bar, and scatter charts. Formatting tips are provided as well.
This Micro Tutorial will demonstrate how to use a scrolling table in Microsoft Excel using the INDEX function.

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question