Clearing or Deleting cells with formulas returning ""

S

scaryboy

I need a macro line that will delete the contents of cells in a range
that have formulas that return a blank cell. the if formulas in the
cells return "" or some number. i need to empty the cells that do not
return a number.

TIA
Fred R.
 
D

Dave Peterson

Select your range to fix
Edit|goto|special
Select Formulas
But uncheck Numbers
Leave Text, Logical, Errors checked
Click Ok

Now hit the delete key.

If you record a macro when you do it, you'll have your code.
 

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

Top