SOLVED

IF(ISNUMBER(SEARCH with INDEX MATCH

Copper Contributor

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 Matching Unique ID. In the sample below, I have manually used IF(ISNUMBER) for Sheet 1 row 2 to show target end result. However, this does not contain any matching of unique ID.

 

My goal is for sheet 1 to be a template for when new data comes into sheet 2 (which is an export from a separate source) I can automate population of the data on sheet 1. I believe I would need to use a combination of IF(ISNUMBER and INDEX MATCH but have been unsuccessful thus far.

clipboard_image_0.png

3 Replies
best response confirmed by pcassidy (Copper Contributor)
Solution

@pcassidy 

For such sample

Sheet1

image.png

Sheet2

image.png

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.

Thank you Sergei! This works perfectly.

@pcassidy , you are welcome

1 best response

Accepted Solutions
best response confirmed by pcassidy (Copper Contributor)
Solution

@pcassidy 

For such sample

Sheet1

image.png

Sheet2

image.png

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.

View solution in original post