• 464K Members
• 6,689 Online
• 561K Conversations
SOLVED

New Contributor

# Copying data between worksheets

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

# Re: Copying data between worksheets

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. ;-)

Solution

# Re: Copying data between worksheets

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.

# Re: Copying data between worksheets

@Ingeborg Hawighorst This worked perfectly. Thank you!

Related Conversations
Tabs and Dark Mode
cjc2112 in Discussions on
46 Replies
Extentions Synchronization
Deleted in Discussions on
3 Replies
flashing a white screen while open new tab
Deleted in Discussions on
14 Replies
Security Community Webinars
Valon_Kolica in Security, Privacy & Compliance on
13 Replies
How to Prevent Teams from Auto-Launch
chenrylee in Microsoft Teams on
29 Replies
Stable version of Edge insider browser
HotCakeX in Discussions on
35 Replies