+ Reply to Thread
Results 1 to 8 of 8

Moving data when a match is found on a different Tab.

  1. #1
    Registered User
    Join Date
    07-20-2009
    Location
    London
    MS-Off Ver
    Excel 2003
    Posts
    63

    Moving data when a match is found on a different Tab.

    Hi

    I have 2 sheets 'REPORT & TRACKER', what i'm trying to do is this, In COL A of tracker is a reference number, i need to find this number in Report and once it is fouond then the data from cells M,H & I need to be moved over into B,C & D in the Tracker tab.

    I've attached a example

    Thanks in advance
    Attached Files Attached Files
    Last edited by E3iron; 10-06-2010 at 04:50 AM.

  2. #2
    Forum Expert davegugg's Avatar
    Join Date
    12-18-2008
    Location
    WI, US
    MS-Off Ver
    2010
    Posts
    1,884

    Re: Moving data when a match is found on a different Tab.

    You can use Vlookups to accomplish this.
    In column B of the Tracker sheet, copy down:

    Please Login or Register  to view this content.

    In column C of the Tracker sheet, copy down:

    Please Login or Register  to view this content.
    and in column D of the Tracker sheet, copy down:

    Please Login or Register  to view this content.

    Obviously the A5 in the formulas should reference column A of the current row.
    You can check out the help file on VLookups for details, if needed.
    Is your code running too slowly?
    Does your workbook or database have a bunch of duplicate pieces of data?
    Have a look at this article to learn the best ways to set up your projects.
    It will save both time and effort in the long run!


    Dave

  3. #3
    Registered User
    Join Date
    07-20-2009
    Location
    London
    MS-Off Ver
    Excel 2003
    Posts
    63

    Re: Moving data when a match is found on a different Tab.

    Thanks Dave

    But all i seem to get is N/A#, i changed the array from C3:t5 to C3:T118.

    Also i didn't mention that the report tab varies in lenght from week to week.

  4. #4
    Forum Expert davegugg's Avatar
    Join Date
    12-18-2008
    Location
    WI, US
    MS-Off Ver
    2010
    Posts
    1,884

    Re: Moving data when a match is found on a different Tab.

    The length shouldn't matter; you can make it C3 to T999 as long as your data never has more than 999 lines. Did the formulas work in your sample sheet for you? They worked for me. If you click on the formula button after typing the entire formula in, it will give the result from each argument. Which argument is causing it to fail?

  5. #5
    Registered User
    Join Date
    07-20-2009
    Location
    London
    MS-Off Ver
    Excel 2003
    Posts
    63

    Re: Moving data when a match is found on a different Tab.

    I just tried the sample sheet and it worked for me also, i try again in my work book

  6. #6
    Registered User
    Join Date
    07-20-2009
    Location
    London
    MS-Off Ver
    Excel 2003
    Posts
    63

    Re: Moving data when a match is found on a different Tab.

    I've just put this into my workbook but i still get NA

    Attached a bigger example workbook.
    Attached Files Attached Files

  7. #7
    Forum Expert davegugg's Avatar
    Join Date
    12-18-2008
    Location
    WI, US
    MS-Off Ver
    2010
    Posts
    1,884

    Re: Moving data when a match is found on a different Tab.

    The data you are trying to match with on the Report tab is in column C. In your larger example, you changed the Vlookup argument to look at column A. If you change this:

    Please Login or Register  to view this content.
    to this:

    Please Login or Register  to view this content.
    it works.

  8. #8
    Registered User
    Join Date
    07-20-2009
    Location
    London
    MS-Off Ver
    Excel 2003
    Posts
    63

    Re: Moving data when a match is found on a different Tab.

    Sorted thank you

+ 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