Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default Selecting row data, filter out column nulls and reporting results?


Was this not close to what you wanted?
Simon Lloyd;269845 Wrote:
This should do what you need:

Code:
--------------------
Dim rng As Range

Dim MyCell As Range
Set rng = Sheets("Sheet1").Range("A1:A" & Range("A" & Rows.Count).End(xlUp).Row)
For Each MyCell In rng
If LCase(MyCell.Offset(0, 1).Value) = LCase("Yes") Then
Range(Cells(MyCell.Row, 1), Cells(MyCell.Row, 2)).Copy Destination:=Sheets("Sheet2").Range("A" & Rows.Count).End(xlUp).Offset(1, 0)
End If
Next MyCell

--------------------



--
Simon Lloyd

Regards,
Simon Lloyd
'The Code Cage' (http://www.thecodecage.com)
------------------------------------------------------------------------
Simon Lloyd's Profile: http://www.thecodecage.com/forumz/member.php?userid=1
View this thread: http://www.thecodecage.com/forumz/sh...ad.php?t=75202

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
Advanced filter dates and nulls JoHickey Excel Worksheet Functions 2 July 18th 07 03:17 PM
Selecting data that matches certain criteria in one column Anthony Excel Discussion (Misc queries) 7 May 17th 07 12:48 PM
Selecting data from a column RON Excel Worksheet Functions 3 March 7th 07 02:05 AM
Filter data & sum or avg the results? bryan stewart Excel Worksheet Functions 3 January 4th 07 07:47 PM
Reporting results of pivot table Julie Excel Worksheet Functions 5 January 31st 06 06:58 PM


All times are GMT +1. The time now is 05:18 PM.

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

About Us

"It's about Microsoft Excel"