Search code examples
google-sheets

Google Sheet - copy range if match


Please see this:

MWRD USA 74,16 Giappone 5,16 UK 3,37 Canada 2,98 Francia 2,52 Svizzera 2,21 Germania 2,17 Australia 1,68 Olanda 1,08 Svezia 0,84 Altro 3,83
INDI India 100
FLXI India 100
XMEX Messico 100
XCHA Cina 100
1ASML Olanda 100
1CSCO USA 100
1MC Francia 100
LEONIA
SGLD
1 2 3 4 5 6 7 8 9 10 Rimanenti
unique paese % paese % paese % paese % paese % paese % paese % paese % paese % paese % %
INDI India 100
1ASML Olanda 100
MWRD USA 74,16 Giappone 5,16 UK 3,37 Canada 2,98 Francia 2,52 Svizzera 2,21 Germania 2,17 Australia 1,68 Olanda 1,08 Svezia 0,84 Altro 3,83
XMEX Messico 100

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