LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Searching for keywords

Look at help for the worksheet functions Find and Search

--
Regards,
Tom Ogilvy


"tess457" wrote in message
...

is there a way of searching a range of cells, to see if ANY of the
contents of the cell match a string. For example, if cell A1 contains
the words "Pizza, Milk, Bread", and I am only searching for pizza, I
still want to select that cell?

Selection.FormulaR1C1 = "=OR(RC[-3]={""" & FVar & """})"

I am using the above code to filter my cells right now....but this only
works if the ENTIRE cell equals my search variable(FVar)? is there a way
of changing this code to test whether any contents of the cell equal my
search variable?? Thanks for the help!!


--
tess457
------------------------------------------------------------------------
tess457's Profile:

http://www.excelforum.com/member.php...o&userid=13938
View this thread: http://www.excelforum.com/showthread...hreadid=262187



 
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
extracting text between two keywords Michelle Excel Worksheet Functions 6 February 11th 09 05:50 PM
extracting text between two keywords Michelle Excel Worksheet Functions 2 February 11th 09 05:34 PM
Keyword search, several keywords Doman Excel Discussion (Misc queries) 1 July 24th 06 10:58 AM
Point Me. Searching strings for lists of keywords Brad[_12_] Excel Programming 6 December 9th 03 05:04 PM
VBA Keywords TAM Excel Programming 2 August 25th 03 07:38 PM


All times are GMT +1. The time now is 08:38 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"