Copying data between worksheets

New Contributor

I've got two separate worksheets that have different sets of data. The first column on each sheet is an ID number column, which is the only commonality between the two. Worksheet A contains all possible ID numbers and Worksheet B contains a subset of Worksheet A. I need to copy all rows with data in Worksheet B into Worksheet A and match those rows based on ID number. How would I do this?


In my example, I need to copy the number in the Host column in Worksheet B over to corresponding Donor ID row in Worksheet A.


Thanks for any guidance!!


3 Replies


Hi, Michelle! You can apply a VLOOKUP formula in sheet A, referring to the range in sheet B that has all the information.

Please check these videos and see if they help.


I hope this helps! 

Good luck. ;-)

Check the Excel Essentials Course: Find out how to do a VLOOKUP in Excel and for what situations you can use Excel's Vlookup and Hlookup formulas for. Download the free Excel Vlookup workbook here:
Check the Excel Essentials Course: Quickly learn the ins and outs of Excel's VLOOKUP formula. I show 2 practical examples of the VLOOKUP formula. I also explain why your VLOOKUP formula might not be working correctly. Summary: The Excel VLOOKUP
Download Excel Start File: Download Excel Finished File: Learn all you need to



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.




@Ingeborg Hawighorst This worked perfectly. Thank you!

Related Conversations
Stable version of Edge insider browser
HotCakeX in Discussions on
35 Replies
flashing a white screen while open new tab
cntvertex in Discussions on
13 Replies
Tabs and Dark Mode
cjc2112 in Discussions on
22 Replies
How to Prevent Teams from Auto-Launch
chenrylee in Microsoft Teams on
28 Replies
PacketMon Components are not loading in WAC 1909
HotCakeX in Windows Admin Center on
2 Replies