Consulting

Results 1 to 3 of 3

Thread: match value and copy to other colums

  1. #1

    match value and copy to other colums

    Dear All

    I am seeking a macros i have a data of A1:A50 actual data should be match with "C" colums and remaining unmatch values should copy to Sheet2 ......

    Pls help me to solve this issue "urgent"

    Thanks

  2. #2
    DEAR ALL

    STILL I AM LOOKING FOR HELP FROM YOU PEOPLE....PLS HELP

  3. #3
    Administrator
    VP-Knowledge Base
    VBAX Grand Master mdmackillop's Avatar
    Joined
    May 2004
    Location
    Scotland
    Posts
    14,489
    Location
    [VBA]Sub DoMatch()
    Dim Cel As Range, c As Range
    For Each Cel In Range("A1:A50")
    Set c = Range("C:C").Find(Cel, , , xlWhole)
    If c Is Nothing Then
    Cel.Copy Sheets(2).Cells(Rows.Count, 1).End(xlUp).Offset(1)
    End If
    Next
    End Sub
    [/VBA]
    MVP (Excel 2008-2010)

    Post a workbook with sample data and layout if you want a quicker solution.


    To help indent your macros try Smart Indent

    Please remember to mark threads 'Solved'

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •