You are here:

Excel/macros/ excel 2007


Is it possible to look for and delete every value smaller than 0.5 in a range of cells in an excel spreadsheet?

This will clear the cells in Column A that are less then .5

Sub ClearLessThanPointFive()

   Dim Rws As Long, Rng As Range

   Rws = Cells(Rows.Count, "A").End(xlUp).Row
   Set Rng = Range(Cells(2, 1), Cells(Rws, 1))
   Rng.AutoFilter Field:=1, Criteria1:="<.5"

End Sub

About Excel
This topic answers questions related to Microsoft Excel spreadsheet (or workbook) stand-alone or Mircrosoft Office Excel including Excel 2003, Excel 2007, Office 2000, and Office XP. You can get Excel help on Excel formulas(or functions), Excell macros, charting in Excel, advanced features, and the general use of Excel. This does not provide a general Excel tutorial nor the basics of using a spreadsheet. It provides specific answers to using Microsoft Excel only. If you do not see your Excel question answered in this area then please ask an Excel question here


All Answers

Answers by Expert:

Ask Experts


Dave Morrison


I can answer most excel questions My Website is


I have been working with spreadsheets since 1991. I am a self-trained excel developer since 2005.

My website

Business admin. U of R.

Awards and Honors
Microsoft Excel MVP 2011-2012

©2016 All rights reserved.