Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
Gee
 
Posts: n/a
Default 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   Report Post  
Posted to microsoft.public.excel.misc
Dave Peterson
 
Posts: n/a
Default 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   Report Post  
Posted to microsoft.public.excel.misc
Bob Tarburton
 
Posts: n/a
Default 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" wrote in message
...
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   Report Post  
Posted to microsoft.public.excel.misc
Gee
 
Posts: n/a
Default 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   Report Post  
Posted to microsoft.public.excel.misc
Dave Peterson
 
Posts: n/a
Default 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
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
Get External Data - not editable using Query Wizard MargaretBeckbury Excel Discussion (Misc queries) 7 January 17th 06 09:13 AM
Match Single Numeric Criteria and Return Multiple Numeric Labels Sam via OfficeKB.com Excel Worksheet Functions 0 December 29th 05 08:44 PM
AHHH! Again JAA149 Excel Discussion (Misc queries) 0 October 31st 05 11:36 AM
AHHHH-Get Data from Multiple Excel workbooks JAA149 Excel Discussion (Misc queries) 5 October 30th 05 05:19 PM
Formula to return ADDRESS of cell in range that meets criteria Christie Excel Worksheet Functions 1 March 4th 05 11:13 PM


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