Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2
Default searching for cells that "contain" certain value

I am trying to filter several columns of a spreadsheet that contain specific
values on an OR basis, so I can't use the built in filters. I am using the
following function:

=IF(ISBLANK($A$1),"TRUE",(IF(OR(A3=$A$1,E3=$E$1,F3 =$F$1),TRUE,FALSE)))

I can then filter one column which is either true or false. This is great
provided the values I am searching for are exact which they are not, does
anyone know how I may alter this function to return true or false if the cell
"contains" a specific value.

Cheers
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5,441
Default searching for cells that "contain" certain value

Giulia,

Note: this is case sensitive:

=IF(ISBLANK($A$1),"TRUE",(IF(OR(ISNUMBER(FIND($A$1 ,A3)),ISNUMBER(FIND($E$1,E3)),ISNUMBER(FIND($F$1,F 3))),TRUE,FALSE)))

IF you need it to be case insensitive, you could wrap the cell references in UPPER functions:

ISNUMBER(FIND(UPPER($A$1),UPPER(A3)))

HTH,
Bernie
MS Excel MVP


"Giulia" wrote in message
...
I am trying to filter several columns of a spreadsheet that contain specific
values on an OR basis, so I can't use the built in filters. I am using the
following function:

=IF(ISBLANK($A$1),"TRUE",(IF(OR(A3=$A$1,E3=$E$1,F3 =$F$1),TRUE,FALSE)))

I can then filter one column which is either true or false. This is great
provided the values I am searching for are exact which they are not, does
anyone know how I may alter this function to return true or false if the cell
"contains" a specific value.

Cheers



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2
Default searching for cells that "contain" certain value

AWESOME ............ Thankyou

"Bernie Deitrick" wrote:

Giulia,

Note: this is case sensitive:

=IF(ISBLANK($A$1),"TRUE",(IF(OR(ISNUMBER(FIND($A$1 ,A3)),ISNUMBER(FIND($E$1,E3)),ISNUMBER(FIND($F$1,F 3))),TRUE,FALSE)))

IF you need it to be case insensitive, you could wrap the cell references in UPPER functions:

ISNUMBER(FIND(UPPER($A$1),UPPER(A3)))

HTH,
Bernie
MS Excel MVP


"Giulia" wrote in message
...
I am trying to filter several columns of a spreadsheet that contain specific
values on an OR basis, so I can't use the built in filters. I am using the
following function:

=IF(ISBLANK($A$1),"TRUE",(IF(OR(A3=$A$1,E3=$E$1,F3 =$F$1),TRUE,FALSE)))

I can then filter one column which is either true or false. This is great
provided the values I am searching for are exact which they are not, does
anyone know how I may alter this function to return true or false if the cell
"contains" a specific value.

Cheers




  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default searching for cells that "contain" certain value

or
isnumber(search(...))
to make it not case sensitive.

Bernie Deitrick wrote:

Giulia,

Note: this is case sensitive:

=IF(ISBLANK($A$1),"TRUE",(IF(OR(ISNUMBER(FIND($A$1 ,A3)),ISNUMBER(FIND($E$1,E3)),ISNUMBER(FIND($F$1,F 3))),TRUE,FALSE)))

IF you need it to be case insensitive, you could wrap the cell references in UPPER functions:

ISNUMBER(FIND(UPPER($A$1),UPPER(A3)))

HTH,
Bernie
MS Excel MVP

"Giulia" wrote in message
...
I am trying to filter several columns of a spreadsheet that contain specific
values on an OR basis, so I can't use the built in filters. I am using the
following function:

=IF(ISBLANK($A$1),"TRUE",(IF(OR(A3=$A$1,E3=$E$1,F3 =$F$1),TRUE,FALSE)))

I can then filter one column which is either true or false. This is great
provided the values I am searching for are exact which they are not, does
anyone know how I may alter this function to return true or false if the cell
"contains" a specific value.

Cheers


--

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
Want a serious muslim match?Join our club and start searching now!!! [email protected] Excel Discussion (Misc queries) 0 May 17th 06 07:47 AM
Want a serious muslim match?Join our club and start searching now!!! [email protected] Excel Worksheet Functions 0 May 17th 06 07:25 AM
cell background color while searching through cells MatthewTap Excel Discussion (Misc queries) 1 January 17th 06 08:00 PM
Searching for first and last in a table to chart (gantt) VLB Excel Discussion (Misc queries) 3 October 31st 05 11:57 AM
Searching for partial data in a column Severin Excel Discussion (Misc queries) 2 October 3rd 05 06:33 PM


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