Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

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

Posted on 2011-03-09
4
Medium Priority
?
255 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 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

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

Author Closing Comment

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

Expert Comment

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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

Microsoft's Excel has many features that most people will never need nor take advantage of.  Conditional formatting is one feature that you may find a necessity once you start using it.
This article describes a serious pitfall that can happen when deleting shapes using VBA.
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…

927 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