Forum Discussion
pcassidy
Aug 23, 2019Copper Contributor
IF(ISNUMBER(SEARCH with INDEX MATCH
Hello, See image of sample data below for reference. I am looking for help to insert value of Sheet1, Row1 Column Header based on if the text is also in Column B, Sheet2 of the row of the Matchin...
- Aug 23, 2019
For such sample
Sheet1
Sheet2
formula in Sheet1!B2 could be
=IF(ISNA(MATCH(1, INDEX( ($A2=Sheet2!$A$1:INDEX(Sheet2!$A:$A,COUNTA(Sheet2!$A:$A)))*ISNUMBER(SEARCH(B$1,Sheet2!$B$1:INDEX(Sheet2!$B:$B,COUNTA(Sheet2!$A:$A)))), 0), 0)),"",B$1)and drag it the right and down.
In general that could be done by Power Query.
pcassidy
Aug 26, 2019Copper Contributor
Thank you Sergei! This works perfectly.
SergeiBaklan
Aug 26, 2019Diamond Contributor
pcassidy , you are welcome