Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 30
Default Filter a range of data with multiple criteria

I have a worksheet with about 4000+ users (rows).
I need to filter out the data containing one of the four codes starting with
A,D,L, or R.
How can I create a formula that will search for the codes in the column
starting with the above letters and return a TRUE if it is there and a FALSE
if it is not.
There are 8 columns per row. I just need to search in one column for the
above text.

Thanks!


  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default Filter a range of data with multiple criteria

=or(a2={"a","d","l","r"})

is one way.



NeedExcelHelp07 wrote:

I have a worksheet with about 4000+ users (rows).
I need to filter out the data containing one of the four codes starting with
A,D,L, or R.
How can I create a formula that will search for the codes in the column
starting with the above letters and return a TRUE if it is there and a FALSE
if it is not.
There are 8 columns per row. I just need to search in one column for the
above text.

Thanks!


--

Dave Peterson
  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 30
Default Filter a range of data with multiple criteria

ok but what if the codes are written like a7?
How can I write the formula so it searches for the "a" even though the 7 is
in the cell as well?

"Dave Peterson" wrote:

=or(a2={"a","d","l","r"})

is one way.



NeedExcelHelp07 wrote:

I have a worksheet with about 4000+ users (rows).
I need to filter out the data containing one of the four codes starting with
A,D,L, or R.
How can I create a formula that will search for the codes in the column
starting with the above letters and return a TRUE if it is there and a FALSE
if it is not.
There are 8 columns per row. I just need to search in one column for the
above text.

Thanks!


--

Dave Peterson

  #4   Report Post  
Posted to microsoft.public.excel.misc
Max Max is offline
external usenet poster
 
Posts: 9,221
Default Filter a range of data with multiple criteria

One way, in B2, copied down:
=SUMPRODUCT(--ISNUMBER(SEARCH({"a","d","l","r"},A2)))0
Replace SEARCH with FIND if you need it case sensitive. SEARCH is not case
sensitive.
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
"NeedExcelHelp07" wrote:
ok but what if the codes are written like a7?
How can I write the formula so it searches for the "a" even though the 7 is
in the cell as well?


  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default Filter a range of data with multiple criteria

=SUM(COUNTIF(A2,{"*a*","*D*","*L*","*R*"}))0
or
=SUM(COUNTIF(A3,"*"&{"a","D","L","R"}&"*"))0

This actually will test for 9A7 where A is anywhere in the cell.




NeedExcelHelp07 wrote:

ok but what if the codes are written like a7?
How can I write the formula so it searches for the "a" even though the 7 is
in the cell as well?

"Dave Peterson" wrote:

=or(a2={"a","d","l","r"})

is one way.



NeedExcelHelp07 wrote:

I have a worksheet with about 4000+ users (rows).
I need to filter out the data containing one of the four codes starting with
A,D,L, or R.
How can I create a formula that will search for the codes in the column
starting with the above letters and return a TRUE if it is there and a FALSE
if it is not.
There are 8 columns per row. I just need to search in one column for the
above text.

Thanks!


--

Dave Peterson


--

Dave Peterson


  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 30
Default Filter a range of data with multiple criteria

Thanks Max. It worked!

"Max" wrote:

One way, in B2, copied down:
=SUMPRODUCT(--ISNUMBER(SEARCH({"a","d","l","r"},A2)))0
Replace SEARCH with FIND if you need it case sensitive. SEARCH is not case
sensitive.
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
"NeedExcelHelp07" wrote:
ok but what if the codes are written like a7?
How can I write the formula so it searches for the "a" even though the 7 is
in the cell as well?


  #7   Report Post  
Posted to microsoft.public.excel.misc
Max Max is offline
external usenet poster
 
Posts: 9,221
Default Filter a range of data with multiple criteria

welcome. do check out Dave's response for alternatives
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
"NeedExcelHelp07" wrote in
message ...
Thanks Max. It worked!



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 for multiple criteria, including blank cells Striperon Excel Worksheet Functions 3 November 9th 06 06:33 PM
Create macro to filter on multiple criteria csdjj021191 Excel Worksheet Functions 7 October 3rd 06 01:52 PM
self-sizing adv.filter criteria range BorisS Excel Discussion (Misc queries) 3 September 24th 06 01:30 PM
Advanced filter and Criteria Range gearoid Excel Discussion (Misc queries) 2 July 20th 05 02:33 PM
"Criteria Range" in the "Data/Filter/Advanced Filter" to select Du TC Excel Worksheet Functions 1 May 12th 05 02:06 AM


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