+ Reply to Thread
Results 1 to 5 of 5

Wildcard Query to return certain criteria

  1. #1
    Gee
    Guest

    Wildcard Query to return certain criteria

    I have a db with 3000 records. Each record has a unique number that means
    something. I want to return all the records that have 0 as the third digit
    eg., **0****. What formula do I need to enter to do this?

    Thanks,
    G

  2. #2
    Dave Peterson
    Guest

    Re: Wildcard Query to return certain criteria

    Maybe you can apply Data|filter|autofilter
    and do a custom filter of:
    begins with ??0

    If they values are really numbers, you could use a helper column to convert
    those values to text:

    =a2&""
    then use that same filtering technique.

    Gee wrote:
    >
    > I have a db with 3000 records. Each record has a unique number that means
    > something. I want to return all the records that have 0 as the third digit
    > eg., **0****. What formula do I need to enter to do this?
    >
    > Thanks,
    > G


    --

    Dave Peterson

  3. #3
    Bob Tarburton
    Guest

    Re: Wildcard Query to return certain criteria

    I need two columns.
    If your unique number is in column A with no header row, then
    In B1: =IF(MID(A12,3,1)="0",ROW())
    In C1: =INDEX(A:A,MATCH(SMALL(B:B,ROW()),B:B,0))
    Copy B1:C1 down
    If you do not start in row 1, change the ROW() so that it yields a "1" in
    the first row.
    For example ROW()-4 if the data starts in row 5

    Someone else might be able to combine these to columns, or maybe just try
    what Dave just recommended.

    "Gee" <[email protected]> wrote in message
    news:[email protected]...
    >I have a db with 3000 records. Each record has a unique number that means
    > something. I want to return all the records that have 0 as the third
    > digit
    > eg., **0****. What formula do I need to enter to do this?
    >
    > Thanks,
    > G




  4. #4
    Gee
    Guest

    Re: Wildcard Query to return certain criteria

    Sorry didn't work - only returned some of the data.

    "Dave Peterson" wrote:

    > Maybe you can apply Data|filter|autofilter
    > and do a custom filter of:
    > begins with ??0
    >
    > If they values are really numbers, you could use a helper column to convert
    > those values to text:
    >
    > =a2&""
    > then use that same filtering technique.
    >
    > Gee wrote:
    > >
    > > I have a db with 3000 records. Each record has a unique number that means
    > > something. I want to return all the records that have 0 as the third digit
    > > eg., **0****. What formula do I need to enter to do this?
    > >
    > > Thanks,
    > > G

    >
    > --
    >
    > Dave Peterson
    >


  5. #5
    Dave Peterson
    Guest

    Re: Wildcard Query to return certain criteria

    It worked ok for me if the values were text (not numeric) and I included all the
    rows in the autofilter range.

    Gee wrote:
    >
    > Sorry didn't work - only returned some of the data.
    >
    > "Dave Peterson" wrote:
    >
    > > Maybe you can apply Data|filter|autofilter
    > > and do a custom filter of:
    > > begins with ??0
    > >
    > > If they values are really numbers, you could use a helper column to convert
    > > those values to text:
    > >
    > > =a2&""
    > > then use that same filtering technique.
    > >
    > > Gee wrote:
    > > >
    > > > I have a db with 3000 records. Each record has a unique number that means
    > > > something. I want to return all the records that have 0 as the third digit
    > > > eg., **0****. What formula do I need to enter to do this?
    > > >
    > > > Thanks,
    > > > G

    > >
    > > --
    > >
    > > Dave Peterson
    > >


    --

    Dave Peterson

+ 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