+ Reply to Thread
Results 1 to 3 of 3

Thread: Copying data using a unique ID

  1. #1
    Registered User
    Join Date
    11-25-2011
    Location
    Leicester,England
    MS-Off Ver
    Excel 2010
    Posts
    1

    Copying data using a unique ID

    Hi,

    I have been struggling with this one for a while to the point I gave up and have done it manually for the past few months.


    I have a list of products all with unique ID numbers on both spreadsheets. The list of products and ID numbers are not in the same order and cannot be. For example chairs on book one is in row 2 yet in book two its in row 5.

    I want excel to pull data from the chairs row in book one and insert it into the chairs row in book two.

    Using the chairs example is would mean excel pulling data from for example cell e2 and inserting it into e5 on another spreadsheet because it has matched the unique Id codes.

    Is this possible I have been looking all over playing with lookups etc and cant even get close but then again im very new to excel for work.

    I hope I explained this properly

    Thanks
    Aaron

  2. #2
    Forum Guru pike's Avatar
    Join Date
    12-11-2005
    Location
    Alstonville, Australia
    MS-Off Ver
    2010
    Posts
    5,151

    Re: Copying data using a unique ID

    To best describe or illustrate your problem you would be better off attaching a dummy workbook, the workbook should contain the same structure and some dummy data of the same type as the type you have in your real workbook - so, if a cell contains numbers & letters in this format abc-123 then that should be reflected in the dummy workbook. Don't upload a picture when you have a workbook. None of us is inclined to recreate your data. Upload the workbook and manually add an 'after' situation so that we can see what you expect. In addition clearly explain how you get the results.

    To attach a file to your post, you need to be using the main 'New Post' or 'New Thread' page and not 'Quick Reply'.
    To use the main 'New Post' page, click the 'Post Reply' button in the relevant thread.

    On this page, below the message box, you will find a button labelled 'Manage Attachments'.
    Clicking this button will open a new window for uploading attachments.

    You can upload an attachment either from your computer or from another URL by using the appropriate box on this page.
    Alternatively you can click the Attachment Icon to open this page.

    To upload a file from your computer, click the 'Browse' button and locate the file.

    To upload a file from another URL, enter the full URL for the file in the second box on this page.
    Once you have completed one of the boxes, click 'Upload'.

    Once the upload is completed the file name will appear below the input boxes in this window.
    You can then close the window to return to the new post screen.
    regards pike

    If the solution helped please donate
    here to the RSPCA

    Sites worth visiting;

    J&R Solutions - royUK

    AJP Excel Information - Andy Pope

    Spreadsheet Toolbox

    VBA for smarties - snb

  3. #3
    Forum Guru darkyam's Avatar
    Join Date
    03-05-2008
    Location
    Colorado, US
    MS-Off Ver
    2007
    Posts
    2,170

    Re: Copying data using a unique ID

    Should be simple enough. If your unique codes are in A, then for sheet 2, E1 could have =Vlookup(A1,Sheet1!$A$1:$E$100,5,0) This will match up the codes and return the value from the fifth column once it's found a match. If the unique codes occur in column F or later, you can use =Index(Sheet1!E:E,Match(A1,Sheet1!F:F,0)), adjusting F:F to whatever column the unique values are in.
    Life is about perseverance. Remember: today's mighty oak tree is just yesterday's nut that held its ground.

    If you like a post, please rate it with the scales icon (top right).
    If you feel really indebted, please consider a donation to charity, such as Feed the Children or Habitat for Humanity.

+ 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.2.0