View Single Post
 
Old 06-17-2016, 11:22 AM
aman.chauhan aman.chauhan is offline Mac OS X Office 2013
Novice
 
Join Date: Jun 2016
Posts: 1
aman.chauhan is on a distinguished road
Post Index and Match functions

I have the following Data in Column A-

Column A
aman has email aman@gmail.com
tom has email tom@yahoo.com
John has email john@company.com
mike has email mike@industry.com

In column C I have the following data-

Column C
gmail
yahoo

I need to search for the text in Column C in the string of texts in Column A and return the following -

Column A Column B Column C
aman has email aman@gmail.com gmail yahoo
tom has email tom@yahoo.com yahoo gmail
John has email john@company.com
mike has email mike@industry.com


I have used the following query-

INDEX($C$1:$C$2,MATCH(1,COUNTIF(A1,"*"&$C$1:$C$2&" *"),0))

But it is giving me wrong result-

Column A Column B Column C
aman has email aman@gmail.com #N/A yahoo
tom has email tom@yahoo.com #N/A gmail
John has email john@company.com #N/A
mike has email mike@industry.com #N/A


Can someone please help.
Reply With Quote