Search code examples
excelvbavlookup

VLOOKUP or VBA?


I was just wondering if anyone could help me with this please?

enter image description here

I am trying to look up information in the same/another spreadsheets.

Below where there's a dropdown menu, I would like to select a CREW name and output the information from A:D Column.

I have tried VLOOKUP but it when I type in the CREW name it would result in error, but when I type in the "Day" it will result in copying the entire row.

Thank you in advanced.


Solution

  • Create a new column in column AB. Give it any name you like.

    Use the formula =TEXTJOIN(",",TRUE,Q2:AA2) in AB2, and copy the formula down.

    Then, in cell A13 or thereabouts, enter the following formula:

    =FILTER(A1:D7,ISNUMBER(SEARCH(F10,AB1:AB7)),"No results")