+ Reply to Thread
Results 1 to 3 of 3

Match and copy cell value to the row where it find the match

  1. #1
    Registered User
    Join Date
    01-22-2014
    Location
    qatar
    MS-Off Ver
    Excel 2013
    Posts
    2

    Match and copy cell value to the row where it find the match

    Good Day everybody! I recently joined this forum as I found it very helpful for people like me who loves programming . I am a newbie in programming macro so pardon me if you find my question very elementary.
    Actually I have a table that needs to be updated by using a match command. i have a workbook with two sheets named "Data" and "Form". In the "Data" sheet, i have a table of different products in column A. What I need is to copy the row of data in the "Form" when it find the match in "Data" sheet and copy it to the row where the product is located.
    Thanks in advance!!!
    Last edited by excelboy23; 01-23-2014 at 02:18 AM.

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,944

    Re: Match and copy cell value to the row where it find the match

    Hi and welcome to the forum

    You dont need VBA for this, INDEX/MATCH will do it for you

    Give it a shot, and if you still have a problem, upload a sample workbook and we can put something together

    The syntax is...
    =index(criteria-to-find,column-to-search-in,0),row-number,column-number)
    =match(criteria-to-find,column-to-search-in,0) 0 returns exact match
    =MATCH(criteria-to-find,row-to-search-in,0)
    soooo that gives us...
    =index(criteria-to-find,match(criteria-to-find,column-to-search-in,0),match(criteria-to-find,row-to-search-in,0)
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Registered User
    Join Date
    01-22-2014
    Location
    qatar
    MS-Off Ver
    Excel 2013
    Posts
    2

    Re: Match and copy cell value to the row where it find the match

    thanks Fdibbins, i have uploaded the file so that it will be easier for me to explain what i need. Thanks for your help
    Attached Files Attached Files

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] VBA code Error: find the records that match the criteria in a specified cell and copy
    By meer_ali in forum Excel Programming / VBA / Macros
    Replies: 17
    Last Post: 01-02-2014, 03:30 AM
  2. Range.Find function fails to find a match but For loop confirms that match exists
    By 6StringJazzer in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 12-08-2013, 03:35 PM
  3. [SOLVED] Application.Match help. Find a match if first 4 numbers are the same. Asterisk not working
    By thelisa in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 07-24-2013, 08:01 AM
  4. [SOLVED] Match one cell with another, if match found copy adjacent cells
    By Xiophoid in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 04-07-2013, 05:50 AM
  5. Replies: 5
    Last Post: 02-29-2012, 08:51 PM

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