Forum Discussion
Copying data between worksheets
- May 10, 2019
Try this formula in cell B2 of Worksheet A, then copy the formula down.
=IFERROR(VLOOKUP(A2,'Worksheet B'!A:B,2,FALSE),"")
In words: find the value from A2 in the list in columns A:B of worksheet B, when found, return the value from the 2nd column (column B). If no match is found Vlookup will return an error. If an error is encountered, the formula returns a blank cell.
Try this formula in cell B2 of Worksheet A, then copy the formula down.
=IFERROR(VLOOKUP(A2,'Worksheet B'!A:B,2,FALSE),"")
In words: find the value from A2 in the list in columns A:B of worksheet B, when found, return the value from the 2nd column (column B). If no match is found Vlookup will return an error. If an error is encountered, the formula returns a blank cell.
IngeborgHawighorst This worked perfectly. Thank you!