Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
Solved

# Put data from one sheet into another sheet.  With matching fields.

Posted on 2011-03-09
Medium Priority
254 Views
I have an excel workbook with two sheets.

The first sheet looks like this:

ITEM ID  |  QTY
1001       |   0
1002       |   0
1003       |   0
1004       |   0
1005       |   0
etc....

The second sheet looks like this:

1001       |   43
1023       |   32
1233       |   234
1043       |   432
1345       |   233

I need to have a formula that can put the data into the appropriate column in excel.  For instance (using my example).  In sheet 1, you would see 32 for the item id 1023.

Basically, the formula is going to look at sheet 2.... and match the item id with sheet 1, and put the data into the column next to it.

If it helps.  I have a sample file attached.
Example.xls
0
Question by:gocomputerz
[X]
###### Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

• Help others & share knowledge
• Earn cash & points
• 2
• 2

LVL 39

Accepted Solution

nutsch earned 2000 total points
ID: 35090000
=IF(ISNA(VLOOKUP(A3,Data!\$A\$1:\$B\$96,2,0)),0,VLOOKUP(A3,Data!\$A\$1:\$B\$96,2,0))

put in cell b3 and copy down

THomas
0

Author Comment

ID: 35090009
Thomas!  You sir are a genius!  Thank you so much.  You have greatly helped me.
0

Author Closing Comment

ID: 35090012
This user was awesome.  Fast response, and exactly what I needed.
0

LVL 39

Expert Comment

ID: 35090019
Glad to help. For info, vlookup is one of the most useful excel functions. There I've put it in an error handling if to avoid getting #N/A results, and get zeroes instead.

Thomas
0

## Featured Post

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

My attempt to use PowerShell and other great resources found online to simplify the deployment of Office 365 ProPlus client components to any workstation that needs it, regardless of existing Office components that may be needing attention.
This article describes how to use a set of graphical playing cards to create a Draw Poker game in Excel or VB6.