I need to copy cells from one sheet to the other based on another cell.
If cell.columnA from sheet1 contains the text from cell.columnA from sheet2, copy cell.columnB, cell.columnC, cell.columnD from sheet1 to sheet2.
Is this possible to do?
I need to copy cells from one sheet to the other based on another cell.
If cell.columnA from sheet1 contains the text from cell.columnA from sheet2, copy cell.columnB, cell.columnC, cell.columnD from sheet1 to sheet2.
Is this possible to do?
This is completely possible. I would use the if and vlookup functions. Something like this:
=IF($A1=Sheet1!$A1, VLOOKUP(Sheet1!$A1, Sheet1!$A1:$D1, 2),"")
The dollar signs lock the columns so you can paste over many rows, the if checks for equality of column a values, Sheet1!$A1:$D1 is the range you specified between columns a through d, and the 2 represents the second column in that range. This example was for column b in row 1 on sheet 2.
$A1=Sheet1!$A1 is saying A1 from Sheet2 is equal to A1 from Sheet1? If it it true, then it calculates the second part.vlookup' may not be the simplest way, but it looks for a value Sheet1!$A1` in a range Sheet1!$A1:$D1 and when it finds a match, will go to whichever column you specify to pull the value. In this example, colB=2, colC=3, colD=4.