Using a function to delete blank cells

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi,

I hope I ask this in the right way: I have 4 column, 2,000 row sprdsht. I
want to instruct Excel to look in column B, and if any column is blank, then
delete it. In other words, out of all the records, I only want to see the
ones that have text in col B. Does anyone know of a formula/function that can
do that, or can you point me in the right direction?

Thanks,
Brian
 
a Function can't but a Macro can
so if u realy mean that every Row's where column B is empty is deleted then
try this:

Sub CleanUp()
Range("B1:B2000").SpecialCells(xlCellTypeBlanks).EntireRow.Delete
End Sub


"Carter Devereaux" skrev:
 
No worksheet function can delete things, only return results.

I would try this.............

Select column B and F5>Special>Blanks>OK.

Edit>Delete>Entire Row.


Gord Dibben MS Excel MVP

On Fri, 31 Aug 2007 09:16:00 -0700, Carter Devereaux <Carter
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top