How to detect non-contiguous data?

Hello - I have a data entry spreadsheet (Excel 2010) where several users collaborate to enter safety awards data for their corporate divisions. Despite voluminous instructions to the contrary, somebody always wants to copy & paste, and then paste several rows waaaaay down the input sheet after dozens, if not hundreds, of blank rows.

This causes problems with charting , and before each quarter, somebody has to go in and clean up the spreadsheet to make sure everything gets reported.

If there a VBA routine that can run to detect these non-contiguous blocks of data?

Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Ingeborg Hawighorst (Microsoft MVP / EE MVE)Microsoft MVP ExcelCommented:

Select all columns columns with data and then sort the data by one of the columns. That will push all blank rows to the bottom.

cheers, teylyn
Ingeborg Hawighorst (Microsoft MVP / EE MVE)Microsoft MVP ExcelCommented:
This is not a duplicate. It addresses a different problem. The other question is about handling hidden columns and avoiding overwriting formulas with copy and paste operations. This one is about handling empty rows and the approach to a solution is different.
mlagrangeAuthor Commented:
Teylyn is correct - 2 different questions. Sorry about not responding sooner; I got pulled away on other things.
JavaScript Best Practices

Save hours in development time and avoid common mistakes by learning the best practices to use for JavaScript.

mlagrangeAuthor Commented:
Thanks for your response, but I was looking a VBA routine that the users could kick off from a button or link on the spreadsheet.
Ingeborg Hawighorst (Microsoft MVP / EE MVE)Microsoft MVP ExcelCommented:
Well, turn on the macro recorder, then do what I suggested above. Stop the macro recorder There is your VBA routine.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
mlagrangeAuthor Commented:
Slappin' my forehead... ok, thanks!
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Excel

From novice to tech pro — start learning today.