Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8838179
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T09:55:27+00:00 2026-06-14T09:55:27+00:00

Frequently I get data as pretty tables in many worksheets in an Excel workbook.

  • 0

Frequently I get data as “pretty tables” in many worksheets in an Excel workbook. By “pretty” I mean that there is explanatory text at the top and bottom of every worksheet, headers have merged cells, there are blanks lines between the header and the first data row, there are blank columns between data columns, etc.

Here is a screen grab of part of one offender.

Is there a best practice for reducing manual labor here?

One approach could be to fix all of these tables in Excel. Another could be to save “as-is” to tab-delimited txt, manually select and import the data rows, drop the blank columns, and manually enter the header information. I tend to do the later, but even this is fairly manual.

What are the pros doing? When I do it this way I feel like the guy who doesn’t know about cut and paste.

FWIW, I use Python, Stata, and R for most things, but I’m open to any tool that simplifies this process. Thanks!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T09:55:29+00:00Added an answer on June 14, 2026 at 9:55 am

    To be honest the amount of automation that I use in the process of cleaning data depends on the number of times I have to do it. For me I think modifying the files in Excel via macro.

    If your files always have the same format (for a particular task) you can simply record a macro of the steps you are doing to clean them up, and save them in your personal workbook

    If they are slightly different but have variations on a theme you can modify the recorded marco (ideally factoring out into functions like DeleteTopRows and DeleteEmptyColumns which would accept different parameters depending on the input file)

    I think Excel VBA is the easiest place to work from for this type of job because the excel app can help with a lot of built in functions. For example in your sheet above Range("10:11").Delete will remove them.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

There is a lot of (older) related data spread over many tables in our
In Silverlight, a frequently used pattern is: Request data Get back an empty container
I have a python script that runs a subprocess to get some data and
I am creating Java ME Application, its frequently get data from server with 5
My application would be frequently connecting to the web service to get some data
I have a object obj that is read by many threads frequently , but
Frequently we need to get some test data from our production sql server 2008
I am trying to get an overview about the hourly frequency of my data
When retrieving packages with Cabal, I frequently get errors with this message: user error
I am using Python's AWeber API (https://github.com/aweber/AWeber-API-Python-Library), and I frequently get these exceptions. I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.