I'm trying to figure out how to write a formula that searches B9:AF9 for the first column that the code NS appears, then display a TEXTJOIN of the data in row 5 of that column, cell G1, and H1. I understand how to use LOOKUP, INDEX, and MATCH working with columns but not with rows. So if NS appears in D9, the results of the TEXTJOIN would be the data in D5,G1,H1. Can any one help?