+ Reply to Thread
Results 1 to 4 of 4

Moving data when a match is found

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

    Unhappy Moving data when a match is found

    Evening All

    I'm not very experienced with macros even though i think i am.

    I have 2 sheets Old and 2009 Sample, in col B i have a job numbers. These job numbers only appear once in Old but more than once in 2009 Sample.

    Now i think a macro is the best way to solve my problem but i may be wrong.

    What i want is the macro to look in start with the first job number in Old and when it finds a match(which may be more than one) i would like it to copy the information in col R/S/T and copy into S/T/U in 2009 Sample for all matching job numbers

    I.E ( Cols that need to be moved and new location)
    Old 2009 Sample
    R/S/T S/T/U
    AB/AC/AD/AE AC/AD/AE/AF
    AM/AN/AO/AP/AR/AS/AT/AU/AV/AW AM/AN/AO/AP/AR/AS/AT/AU/AV/AW

    Thanks in advance for your help
    Attached Files Attached Files
    Last edited by E3iron; 08-16-2010 at 08:42 AM. Reason: solved

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

    Re: Moving data when a match is found

    I would use formulas, like so...
    Attached Files Attached Files
    _________________
    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
    07-20-2009
    Location
    London
    MS-Off Ver
    Excel 2003
    Posts
    63

    Re: Moving data when a match is found

    Thanks very much Jerry, could i ask you to explain the formula to me or point me in the right diretion to where i can find this out, its a bit above me.

    I will have a good look at it in the morning and if this solves my problem i will change the prefix to SOLVED.

    Thanks again

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

    Re: Moving data when a match is found

    That's a standard INDEX/MATCH formula. Press F1 and readup on INDEX. It's not as complicated as it looks, it's just a long formula.


    ======
    INDEX/MATCH explanation
    http://www.excelforum.com/excel-gene...ame-row.html#3

+ 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