LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 65
Default Delete Rows where there are #N/A Values

Hi,

I have a collumn

X
#N/A
X
X
#N/A
#N/A
#N/A

The #N/A's where produced through vlookups but I have copy paste special so
they are value only I have tried the sub

LASTROW2 = Cells(Rows.Count, 1).End(xlUp).row
For NB = LASTROW2 To 1 Step -1
Cells(NB, 5).Select
If Cells(NB, 5).Value = "X" Then
Selection.EntireRow.Delete
End If
Next NB

But all rows is deleted

Thanks

In Advance

--
Message posted via OfficeKB.com
http://www.officekb.com/Uwe/Forums.a...tions/200608/1

 
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
Can anyone tell me how to hide rows that have 0 values and text. Aussie Charts and Charting in Excel 2 April 13th 06 10:57 AM
Data values WON'T DELETE in PivotTable drop-downs Natalie 1229 Excel Discussion (Misc queries) 3 March 27th 06 09:18 PM
Delete empty rows from print in Excel Ashfaq Excel Worksheet Functions 2 March 27th 06 12:56 PM
Count on multiple values with duplicate rows Carla Excel Worksheet Functions 1 November 22nd 05 09:25 PM
copy exact values from RangeA to Range B which has extra rows guptasa@gossami .com Excel Discussion (Misc queries) 1 May 16th 05 09:21 AM


All times are GMT +1. The time now is 03:50 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"