+ Reply to Thread
Results 1 to 2 of 2

Macro or function to lookup and copy and paste the information

  1. #1
    Registered User
    Join Date
    04-02-2009
    Location
    London
    MS-Off Ver
    Excel for Mac 2008 and OppenOffice Spreadsheets
    Posts
    3

    Macro or function to lookup and copy and paste the information

    Hi there,

    I have a workbook with 2 worksheets, one called Tracking list, the other Product ID.

    I am looking for a way (function or macro) to look up data from the Product ID and put it into the Tracking list.

    The tracking list has a column called Product ID that contains numbers from 0001 onwards.
    The Product ID (worksheet) has four columns: Product ID, Code, LOT, Expiry Date.

    If I input the Product ID, 0001, into the tracking list, I would like Excel to lookup the corresponding Product ID, be it 0001, 0005 or 0189 etc. from the Product ID worksheet and return the three fields beside it to the tracking list.

    Does that make sense?

    Hope I haven't confused you too much.

    I look forward to your reply.

    Thanks

  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: Macro or function to lookup and copy and paste the information

    You want a simple INDEX/MATCH formula. Here's my explanation:
    http://www.excelforum.com/excel-gene...ame-row.html#3

    That's enough info to construct your formula. If not, post up a complete layout so I can show the correct formula without having to mock it up myself.

    GO ADVANCED and use the paperclip icon to attach your sheet.
    _________________
    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!)

+ 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