Solved

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

Posted on 2011-03-09
4
246 Views
Last Modified: 2012-05-11
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.

Please help!  I need this within 24 hours!

If it helps.  I have a sample file attached.
  Example.xls
0
Comment
Question by:gocomputerz
  • 2
  • 2
4 Comments
 
LVL 39

Accepted Solution

by:
nutsch earned 500 total points
Comment Utility
=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

by:gocomputerz
Comment Utility
Thomas!  You sir are a genius!  Thank you so much.  You have greatly helped me.
0
 

Author Closing Comment

by:gocomputerz
Comment Utility
This user was awesome.  Fast response, and exactly what I needed.
0
 
LVL 39

Expert Comment

by:nutsch
Comment Utility
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

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
How do I paste a macro from one spreadsheet to another. 2 13
Recurring Excel Timelime for Veeam 2 29
Excel formula 6 21
Excel 3 20
A little background as to how I came to I design this code: Around 5 years ago I designed an add-in that formatted Excel files to a corporate standard, applying different cell colours and font type depending on whether the cells contained inputs,…
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
Learn how to create and modify your own paragraph styles in Microsoft Word. This can be helpful when wanting to make consistently referenced styles throughout a document or template.
This Micro Tutorial demonstrate the bugs in Microsoft Excel for Mac with Pivot Charts.

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now