LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 193
Default Function to seacrh for a word across multiple columns

or,

=--(countif(c1:f1,"*word*")0)

but there is a possible problem. If the word you are searching for appears
within another word. e.g. "forward" contains "for", "or", and "ward", so if
your cells contained "forward" and you were looking for one of those words,
they would be found even if they weren't actually there. A slight variation
would be:

=--(countif(c1:f1,"* word *")0)

but you would then have a situation where words at the beginning or end of a
string, or words with punctuation beside them, would not be found. So the
answer to this one could be quite a bit more complex than you would think,
is that why you have ignored the answers given to your earlier post?



"T. Valko" wrote in message
...
Maybe something like this...

=COUNT(MATCH("*word*",C1:F1,0))

--
Biff
Microsoft Excel MVP


"Vibeke" wrote in message
...
Hi, I have four columns of data (C-F) I need to search for a particular
word.
The data is addresses, i.e. it combines text and numbers and the word I'm
searching for can appear anywhere within it (or not at all). The function
I
require will return 1 if it does and 0 if it does not. Have tried various
iterations of if\search\match and so on to no avail - perhaps because I'm
searching a range of columns rather than a specific cell? I'd appreciate
your
suggestions. Regards,




 
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
Using lookup function on multiple rows and columns Trout Excel Worksheet Functions 2 September 25th 09 03:04 AM
Using count function for multiple columns Sekhri Excel Worksheet Functions 1 February 20th 09 09:39 AM
Vlookup Function with Multiple Reference Columns Biff Excel Worksheet Functions 4 December 30th 08 05:42 PM
how do i reference multiple rows/columns with one function? NewUser13 New Users to Excel 1 March 4th 05 06:49 PM
how do i reference multiple rows/columns with one function? NewUser13 New Users to Excel 0 March 4th 05 06:45 PM


All times are GMT +1. The time now is 03:31 PM.

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"