+ Reply to Thread
Results 1 to 8 of 8

Find Matching cells in 2 columns & then Cut & Paste the matching cells next to each other

  1. #1
    Registered User
    Join Date
    10-31-2016
    Location
    toronto
    MS-Off Ver
    2011
    Posts
    4

    Find Matching cells in 2 columns & then Cut & Paste the matching cells next to each other

    Hi all,

    I have 2 columns with unique names in them (columns E & F) and the cells in each row are usually matching in E and F. If there is a blank/empty cell in column F then what i want to do is to have a vba code that will find and match the value in the adjacent column E with the value somewhere in column G. If a matching value in column G is found i need it to CUT the matching cells in column F & G and then paste it back into the same columns but into the empty cell next to the matching cell in column E. i attached a sample of what the columns look like.

    Any help would be appreciated. Thx


    EXCEL MATCH.png
    Attached Files Attached Files
    Last edited by kashb; 03-22-2021 at 04:41 PM. Reason: adding attahchment

  2. #2
    Forum Expert
    Join Date
    05-29-2020
    Location
    NH USA
    MS-Off Ver
    365
    Posts
    2,103

    Re: Find Matching cells in 2 columns & then Cut & Paste the matching cells next to each ot

    Please provide a sample file as per the yellow banner o that we don't have to retype your data and we can help you further.

  3. #3
    Forum Expert
    Join Date
    05-29-2020
    Location
    NH USA
    MS-Off Ver
    365
    Posts
    2,103

    Re: Find Matching cells in 2 columns & then Cut & Paste the matching cells next to each ot

    Here is a possible solution, but it's untested on real data.

    Please Login or Register  to view this content.

  4. #4
    Registered User
    Join Date
    10-31-2016
    Location
    toronto
    MS-Off Ver
    2011
    Posts
    4

    Re: Find Matching cells in 2 columns & then Cut & Paste the matching cells next to each ot

    thanks. i have attached the sample file

  5. #5
    Forum Expert
    Join Date
    05-29-2020
    Location
    NH USA
    MS-Off Ver
    365
    Posts
    2,103

    Re: Find Matching cells in 2 columns & then Cut & Paste the matching cells next to each ot

    Here is a tested version

    Please Login or Register  to view this content.

  6. #6
    Registered User
    Join Date
    10-31-2016
    Location
    toronto
    MS-Off Ver
    2011
    Posts
    4

    Re: Find Matching cells in 2 columns & then Cut & Paste the matching cells next to each ot

    Thanks for this. its working great but at the end for some reason it is taking the value in cell F2 which isnt empty and moving it to the bottom of the list in column F.

    Attachment 724923

  7. #7
    Forum Expert
    Join Date
    05-29-2020
    Location
    NH USA
    MS-Off Ver
    365
    Posts
    2,103

    Re: Find Matching cells in 2 columns & then Cut & Paste the matching cells next to each ot

    try

    Please Login or Register  to view this content.

  8. #8
    Registered User
    Join Date
    10-31-2016
    Location
    toronto
    MS-Off Ver
    2011
    Posts
    4

    Re: Find Matching cells in 2 columns & then Cut & Paste the matching cells next to each ot

    Works like a charm. Thanks so much for the help, makes things so much easier.

+ 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] Trying to find and past matching cells
    By twarren in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 12-10-2018, 10:35 AM
  2. Find a range of matching cells
    By jarhead58 in forum Excel Programming / VBA / Macros
    Replies: 36
    Last Post: 01-29-2018, 10:34 AM
  3. Find Matching Cells & copy/paste
    By backyardfun in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-31-2015, 02:40 PM
  4. Help matching cells and then looking at other column based on those matching cells
    By Ppessina in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-27-2013, 02:37 PM
  5. Copy/Paste Certain Cells matching criteria
    By dvs12c in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-18-2009, 11:05 AM
  6. need to find matching cells in 2 columns
    By riotstar in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-13-2005, 07:33 AM
  7. [SOLVED] Matching Cells/columns
    By gcn504 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 03-24-2005, 12:06 PM

Tags for this Thread

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