Hello,
I'm stuck on a part of my spreadsheet
I have a worksheet that is pulling formulas based on text that is pasted in. I found a formula online that has been very helpful (but confusing), allowing me to look up a column of text items within one cell and return a result based on the item found.
=LOOKUP(9.99999999999999E+307,SEARCH(" "&Lists!$A$2:$A$1000&" "," "&H2&" "),Lists!$B$2:$B$1000)
This is searching for any text listed in a cell between A2:A1000 inside of cell H2 and returning the corresponding result from B2:B1000. I do not know why the " " are necessary at the beginning and end of the SEARCH function, but the whole formula doesn't work if they aren't there.
I need this formula to reference the H column and the row the formula is on, so I thought I could use an indirect function....
=LOOKUP(9.99999999999999E+307,SEARCH(" "&Lists!$A$2:$A$1000&" "," "&INDIRECT("H"&ROW())&" "),Lists!$B$2:$B$1000)
However, this returns #N/A
Anybody know why INDIRECT would break it?
Thank you!
Bookmarks