Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 08-09-2022, 04:27 PM
JHalter JHalter is offline Windows 10 Office 2019
Advanced Beginner
Deleting Multiple Rows
 
Join Date: Nov 2021
Posts: 46
JHalter is on a distinguished road
Default Deleting Multiple Rows

I copied over a list to excel which has data in row 1, then row 2 and 3 are blank, and data in row 4. This goes on for about 2000 rows. How do I quickly delete the 2 rows that are blank in between the cells that contain data?

Looks like this...

123


blank
blank
456
blank
blank
789
blank
blank
Reply With Quote
  #2  
Old 08-10-2022, 01:53 AM
rollis13's Avatar
rollis13 rollis13 is offline Deleting Multiple Rows Windows 10 Deleting Multiple Rows Office 2016
Competent Performer
 
Join Date: Jan 2021
Location: Cordenons
Posts: 140
rollis13 will become famous soon enough
Default

Try this on a test file since the result depends on what data you have in your sheet (no blanks in data rows):

- press key F5 and click 'Special...' (or Go To Special from menu Home / Find & Select dropdown)
- select 'Blanks'
- OK
- use 'Delete Sheet Rows' (from menu Home / Delete dropdown)
Reply With Quote
  #3  
Old 08-10-2022, 05:11 AM
ArviLaanemets ArviLaanemets is offline Deleting Multiple Rows Windows 8 Deleting Multiple Rows Office 2016
Expert
 
Join Date: May 2017
Posts: 873
ArviLaanemets has much to be proud ofArviLaanemets has much to be proud ofArviLaanemets has much to be proud ofArviLaanemets has much to be proud ofArviLaanemets has much to be proud ofArviLaanemets has much to be proud ofArviLaanemets has much to be proud ofArviLaanemets has much to be proud ofArviLaanemets has much to be proud of
Default

In case there is a column, which is never empty when there is anything entered into any other cell in same row:

Select the whole datarange, and from Home menu Sort & Filter. You get filter selection controls at top of datarange (in header row in case you had them, in 1st row of datarange otherwise);
Set the filter condition for column where always must be some value to '(Blanks)';
Select all filtered rows (row numbers at left of worksheet are colored blue), and delete them.

In case the is not such column (which must be always filled):
At right your datarange, into next column enter the formula like =COUNTA(A1:X1), which counts not empty cells in row, and copy this formula down for whole datarange;
Set Sort & Filter for datarange (the column with formula included);
Set the filter condition for added column to 0, and delete all filtered rows;
Delete the column with formula.
Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Deleting Multiple Rows Deleting rows lourid Excel Programming 5 03-15-2022 09:39 AM
VBA - Deleting Rows (criteria based) BobbyG Project 1 07-31-2017 08:55 AM
Deleting Multiple Rows Deleting rows with partially redundant data Noah14 Excel Programming 1 09-19-2014 11:46 PM
Deleting rows & pushing them up causing issues ep2002 Excel 2 08-29-2014 02:09 AM
Deleting Multiple Rows Deleting rows with specific criteria joflow21 Excel 9 11-22-2013 12:10 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 09:36 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft