excelexcel-formulalookupcopy-paste

Copy cells based on matching index numbers on excel?


Table to copy cells from

Table to copy cells from

Table to paste cells to

Table to paste cells on

The idea is to take the 2 cells in front of the one with index 3 in the first table and paste them in the second table where the indexes match. Since I have over 100 indexes and this process will likely be repeated in the future, how can I make this automatically?


Solution

  • Type this formula in cell G4.

    =INDEX(B$1:B$13,MATCH($F4,$A$1:$A$13,0),1)
    

    where change the value 13 (both) to the last row value of the source table .

    Then copy and paste cell G4 in the G and H column to the end of the target table.

    enter image description here