Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 57
Default Search for text in multiple columns

Hello,

I use the following to search a column for names in a list (Sponsors) and
then print the name to the cell if found, otherwise print "False".

=IF(SUM(-ISNUMBER(SEARCH(Sponsors,A2)))=0,"False",INDEX(Spo nsors,MATCH(TRUE,ISNUMBER(SEARCH(Sponsors,A2)),0)) )

This works great, but I need to expand the search to cover multiple columns.
The columns are not contiguous. I need to search columns A, D, H, L, and P,
for names in the list, for instance, and print the name to the cell if the
name appears in any of these columns.

Is this possible?

Thank you,
Tom
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 57
Default Search for text in multiple columns


Slight correction, it searches a cell for a matching value in the list and
prints that matching value if found. I would like to search multiple cells,
so check A2, D2, and so on for a match.

"tommcbrny" wrote:

Hello,

I use the following to search a column for names in a list (Sponsors) and
then print the name to the cell if found, otherwise print "False".

=IF(SUM(-ISNUMBER(SEARCH(Sponsors,A2)))=0,"False",INDEX(Spo nsors,MATCH(TRUE,ISNUMBER(SEARCH(Sponsors,A2)),0)) )

This works great, but I need to expand the search to cover multiple columns.
The columns are not contiguous. I need to search columns A, D, H, L, and P,
for names in the list, for instance, and print the name to the cell if the
name appears in any of these columns.

Is this possible?

Thank you,
Tom

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
Sum on multiple columns with search criteria steve711 Excel Worksheet Functions 3 May 15th 09 04:45 PM
search multiple columns jason2444 Excel Discussion (Misc queries) 1 August 28th 07 10:26 PM
Search Across Multiple Columns Efrain Excel Discussion (Misc queries) 1 February 8th 07 05:24 PM
search cells in multiple columns of same row jsd219 Excel Discussion (Misc queries) 6 October 29th 06 06:22 PM
LOOKUP w/ multiple search columns? Fotop Excel Discussion (Misc queries) 1 March 24th 06 12:10 PM


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