filter and empty cells

lezawang

Well-known Member
Joined
Mar 27, 2016
Messages
1,805
Office Version
  1. 2016
Platform
  1. Windows
Hi
I have a table like the one below. I want to apply filter so I can find empty cells and then delete them. When I apply filter on Name column, the filter give me only 2 names, Mary1 and Jack1. I do not see David1 in the list. I think because of the empty Row (row #3 , I put dot so you can see it but it is empty). How can I fix that? Thank you.

[TABLE="width: 200"]
<tbody>[TR]
[TD]name
[/TD]
[TD]jan
[/TD]
[TD]feb
[/TD]
[TD]mar
[/TD]
[/TR]
[TR]
[TD]mary1
[/TD]
[TD]1
[/TD]
[TD]3
[/TD]
[TD]33
[/TD]
[/TR]
[TR]
[TD]jack1
[/TD]
[TD]10
[/TD]
[TD]33
[/TD]
[TD]55
[/TD]
[/TR]
[TR]
[TD].[/TD]
[TD].[/TD]
[TD].[/TD]
[TD].[/TD]
[/TR]
[TR]
[TD]david1
[/TD]
[TD]20
[/TD]
[TD]20
[/TD]
[TD]89
[/TD]
[/TR]
</tbody>[/TABLE]
 
Last edited:

Excel Facts

Highlight Duplicates
Home, Conditional Formatting, Highlight Cells, Duplicate records, OK to add pink formatting to any duplicates in selected range.
If you want to delete all blank rows, this macro will do that.
Code:
Sub DeleteRows()
    Columns("A:A").SpecialCells(xlCellTypeBlanks).EntireRow.Delete
End Sub
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,182
Members
453,020
Latest member
Mohamed Magdi Tawfiq Emam

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