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

  • SEARCH
  • Home
  • 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 7504463
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T21:34:41+00:00 2026-05-29T21:34:41+00:00

I have an Excel worksheet that has 30k+ rows. I’d like to cut the

  • 0

I have an Excel worksheet that has 30k+ rows. I’d like to cut the first 14k rows, but manually doing it (highlighting selected columns with mouse) seems like an insane waste of time.

How can I do this pro grammatically? I don’t actually have scripting experience in Excel, but I can program in PHP. I’m sure I could use the PHPExcel module at PEAR to create a script that can copy the first 14k rows and insert it into a new spreadsheet object, but that seems a lot more complicated for what I need.

Another option would be to save the Excel file as a csv file and import into a mysql database table. The problem with this is that the reason I need to cut the first 14k rows is that those columns aren’t correctly aligned (whereas the remainder are), which makes a db import a problem.

  • 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-05-29T21:34:44+00:00Added an answer on May 29, 2026 at 9:34 pm

    If you insist on doing it programmatically, the syntax is:
    range("1:14000").cut

    Otherwise, selecting manually IS quicker, if you know how to do it:
    press ctrl+G (short for Edit, Go to) then type 1:14000, then press Enter. Done.
    With MS-Office, the first rule has always been: the best program is no program.

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

Sidebar

Related Questions

I have an Excel worksheet that has the following macro. I'd like to loop
I have a Microsoft Excel worksheet that has hundreds of rows of items. The
I have a Excel worksheet that has a button. When I call the usedRange()
I have an Excel Workbook that has several worksheets in it. The tables in
I have a Excel addin that displays some structures on the worksheet. Users can
I have an Excel file that has a bunch of VBA and macro code
Good Morning, I have a rather odd thing happening with an Excel WorkSheet that
I have a VBA macro that copies rows from one worksheet into another based
I have the this code that will create excel file and work sheet then
I have the following Excel worksheet: | A B C -+--------------- 1|id date views

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.