+ Reply to Thread
Results 1 to 2 of 2

Filter non-number client names

  1. #1
    Desmond
    Guest

    Filter non-number client names

    I need to prepare data to create a PivotTable, and have filtered two columns,

    Workbooks("2005q4").Worksheets("Master").Rows("2:" & Rows.Count).AutoFilter
    Field:=2, Criteria1:=">=07/01/2006", Operator:=xlAnd,
    Criteria2:="<=07/31/2006"

    Workbooks("2005q4").Worksheets("Master").Rows("2:" & Rows.Count).AutoFilter
    Field:=4, Criteria1:="<>Query", Operator:=xlAnd, Criteria2:="<>Gratuity"

    Now i need to filter the client name which are numbers, they look like:

    786
    AAA
    BBB
    65
    CCC
    5677
    DDD
    EEE
    .......

    Any suggestions, thank you in advance!


  2. #2
    Tom Ogilvy
    Guest

    Re: Filter non-number client names

    Probably easiest to use an adjacent column to put in a formula that will
    return a result which is easy to filter on.

    =iserror(1*A2)
    drag fill down the columrn

    Filter on True if you want the non-numbers or False if you want the numbers.

    --
    Regards,

    "Desmond" <[email protected]> wrote in message
    news:[email protected]...
    > I need to prepare data to create a PivotTable, and have filtered two

    columns,
    >
    > Workbooks("2005q4").Worksheets("Master").Rows("2:" &

    Rows.Count).AutoFilter
    > Field:=2, Criteria1:=">=07/01/2006", Operator:=xlAnd,
    > Criteria2:="<=07/31/2006"
    >
    > Workbooks("2005q4").Worksheets("Master").Rows("2:" &

    Rows.Count).AutoFilter
    > Field:=4, Criteria1:="<>Query", Operator:=xlAnd, Criteria2:="<>Gratuity"
    >
    > Now i need to filter the client name which are numbers, they look like:
    >
    > 786
    > AAA
    > BBB
    > 65
    > CCC
    > 5677
    > DDD
    > EEE
    > ......
    >
    > Any suggestions, thank you in advance!
    >




+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1