google-sheets

Google Sheet - copy range if match


Please see this example sheet: Example Sheet

I have some known data in B2:W18 I would have this data copied to B22:W24 if the value in A22:A24 matches the value in A2:A18

The data that should populate automatically are colored in yellow

What could I do?


Solution

  • You may try with xlookup:

    =xlookup(A24;A$2:A$18;B$2:W$18;)
    

    enter image description here