+ Reply to Thread
Results 1 to 4 of 4

grab data from one sheet and put it into another

  1. #1
    Registered User
    Join Date
    11-06-2009
    Location
    Sacramento, CA
    MS-Off Ver
    Excel 2007
    Posts
    5

    Exclamation grab data from one sheet and put it into another

    Hello!

    I have two documents with very similar information. Some rows are duplicates. However, there is one column of information missing from the 1st spreadsheet. Let's call them Sheet1 and Sheet2.

    How do I tell Excel:
    In Sheet1, IF A2 matches any field in Sheet 2, column A

    Then: copy the data from the same row, in a different column (Sheet1 A3) and put it into a specific corresponding cell (Sheet2 A3)

    Basically I'm trying to grab a product ID from sheet2 and put it in the matching cell, for that specific product. I have all teh product IDs in column A in sheet 2. The product IDs field in Sheet 1 is blank. I need to populate it with teh correct information from Sheet 2. But there are many moreproducts in sheet 2 than in sheet 1, so I can't just sort and do a copy paste. It needs to think "if the product exists in sheet 2, grab the info from sheet 2 and put it into sheet 1 for that product id."

    Any ideas?

    Thanks in advance!
    Emily

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: grab data from one sheet and put it into another

    I use INDEX/MATCH for this, but you can also use VLOOKUP() or LOOKUP() based on some other restrictions about the layout of the table you're searching. INDEX/MATCH has none of those restrictions.

    Here's a sample sheet showing exactly what you're looking to do.
    INDEX-MATCH-Simple.xls
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    Registered User
    Join Date
    11-06-2009
    Location
    Sacramento, CA
    MS-Off Ver
    Excel 2007
    Posts
    5

    Re: grab data from one sheet and put it into another

    That's exactly what I'm looking for! Thank you SO much!!

  4. #4
    Registered User
    Join Date
    11-06-2009
    Location
    Sacramento, CA
    MS-Off Ver
    Excel 2007
    Posts
    5

    Re: grab data from one sheet and put it into another

    I spoke too soon. Can you please look at my file and tell me what I'm doing wrong? I seem to be stuck. http://furnitureusa.com/formula.xls

    All i want to do is create a formula which says:

    Look at the tab testing-allproduct C2. If that value exists in the tab name store-allproduct, cell c2, then take the value from store-allproduct cell a2, and put that value into testing-allproduct cell A2.

    But all I get is NA! Any help you can offer would be very much appreciated!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1