Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Reed
 
Posts: n/a
Default Function to del rows based on cell value

I want to search a range of cells (column R). If any of the cells in column
"R" are blank/null, I want to delete the row. What is the best way to
accomplish this for a wheet or a workbook?
  #2   Report Post  
JE McGimpsey
 
Posts: n/a
Default

One way:

Select column R. Choose Edit/Go To/Special, select blanks and click OK.
Right-click one of the selected cells and choose Delete. Select Entire
Row from the popup, and click OK.


or, via macro:


Public Sub DeleteBlankRows()
On Error Resume Next
Columns(18).SpecialCells(xlCellTypeBlanks).EntireR ow.Delete
On Error GoTo 0
End Sub

You can find many other ways in the archives:

http://groups.google.com/advanced_gr...ugroup=*excel*




In article ,
"Reed" wrote:

I want to search a range of cells (column R). If any of the cells in column
"R" are blank/null, I want to delete the row. What is the best way to
accomplish this for a wheet or a workbook?

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Insert rows based on specific value bob Excel Worksheet Functions 6 February 29th 08 07:11 PM
Hyperlinks using R[1]C[1] and offset function in its cell referenc Elijah-Dadda Excel Worksheet Functions 0 March 5th 05 03:31 AM
Can I count in an array based on a function? HokieLawrence Excel Worksheet Functions 2 February 12th 05 03:05 AM
Cell Formula reference to cell Based On third Cell Content Gabriel Excel Discussion (Misc queries) 0 February 11th 05 05:35 AM
parse cell and insert rows? Gorrila Grod Excel Worksheet Functions 3 November 5th 04 08:19 AM


All times are GMT +1. The time now is 03:28 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"