Delete entire row based on one cell? :(

jayson26

Board Regular
Joined
Aug 26, 2002
Messages
78
Is it possible to delete entire rows if the first cell in that row (the cell in Column A) is blank?

thanks

:)
 

Excel Facts

How to show all formulas in Excel?
Press Ctrl+` to show all formulas. Press it again to toggle back to numbers. The grave accent is often under the tilde on US keyboards.
Yes. Would you like to do this via VBA or using Filters? What does your data look like, i.e. is their some column which will always have data in it even though column A is blank, or are you just looking to delete blank rows?
 
Upvote 0
Forget vba for this:

Select column A

Edit | Goto | Special | Blanks
Edit | Delete | Entire Row

Done and Done.
 
Upvote 0
I have a spreadsheet which has data in Columns A through F.
Most rows have data in every cell (i.e.: A2, B2, C2, D2, E2, F2).
Some rows, however, do not have any data in the A cell.
I'd like to delete these entire rows without having to sort the list.
What are your suggestions?

thanks.
:)
 
Upvote 0
DRJ's response is right on. If you want the code, here it is...

Columns("A:A").Select
Selection.SpecialCells(xlCellTypeBlanks).Select
Selection.EntireRow.Delete
Range("A1").Select

You could also select the entire range and use an autofilter, but that's more work than needed.

K
 
Upvote 0
I forgot about those special "Go To" functions. Those are good ones to remember.
 
Upvote 0

Forum statistics

Threads
1,224,592
Messages
6,179,777
Members
452,942
Latest member
VijayNewtoExcel

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top