Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc,microsoft.public.excel.programming
external usenet poster
 
Posts: 106
Default Use Advanced Filter to Detect non blank rows

I am trying to split a range of data into 2 sheets -- one for employees

with a valid tech number and one for employees with no valid tech
number (tech number = "0000" or ""). The tech number is a text field
as there may be leading zeros.

I used the following code to create the sheet for employees with no
valid tech numbers, but I'm having problems determining the correct
criteria to create the sheet for employees with a valid tech number.
Here's the code:


Private Sub Test_Filter_Click()
Set sh = Worksheets("Compiled Totals")
Set rng = sh.Range(sh.Cells(8, "A"), _
sh.Cells(sh.Rows.Count, "O").End(xlUp))


'Create Upload Data for Hourly Non Technician Employees
Sheets("Upload Data Hourly").Select
rng.AdvancedFilter Action:=xlFilterCopy, _
CriteriaRange:=Sheets("Field Rep Time
Sheet").Range("A41:A43"), _
CopyToRange:=Sheets("Upload Data Hourly").Range("A2"), _
Unique:=False
Sheets("Upload Data Hourly").Rows(2).Delete


End Sub


Criteria range:
Tech_No
0000
=


For the second sheet, I tried using the following criteria range with
no luck:


=d2<""
=d2<"0000"


If I could somehow set a criteria for all rows beginning with row 9 for

which the value of column d 0, it would work. Any idea how to do
that?

Any help would be appreciated. Thanks!

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 Daisy10 Excel Worksheet Functions 1 August 2nd 06 02:38 AM
Advanced Filter not working babypenquin Excel Worksheet Functions 1 June 22nd 06 05:48 PM
excel should allow me to filter rows on basis of the cell color heramb Excel Worksheet Functions 0 March 22nd 06 05:18 PM
Sort Macro to Exclude Blank Rows? ScottPcola Excel Worksheet Functions 1 January 5th 06 07:10 PM
Is de-duping in advanced filter limited to a number of rows Sully Excel Worksheet Functions 2 November 30th 05 02:23 PM


All times are GMT +1. The time now is 07:28 PM.

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"