Results 1 to 7 of 7

VBA to match and sort data in two columns, then copy to another two colums

Threaded View

  1. #1
    Registered User
    Join Date
    10-16-2017
    Location
    Melbourne
    MS-Off Ver
    2016
    Posts
    4

    VBA to match and sort data in two columns, then copy to another two colums

    Hi All, looking for some direction on this one, thanks in advance.

    I have copied data from an external website and cleaned it up. I need to sort the data in a couple of columns (H and J) and copy it to columns A and B maintaining the integrity of the row so I can use VLOOKUP from another sheet.

    The data in columns (H and J) is mixed but I want to sort it so if the content partially matches a specific text it gets copied to Colum A but if it doesn’t match then it is to be copied into column B. Sometimes columns H and J will both contain a partial match to the specific text, in those instances I want to copy the data in column H to column A and from column J to column B. This is the result I'm trying to achieve

    Text to partially match within a cell = “Ro Roc”

    EG.PNG
    Attached Images Attached Images
    Last edited by P1w2; 10-16-2017 at 11:25 PM. Reason: fix example

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. i need to sort three columns of data so the numbers match all columns where found
    By lisagonzalez in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 04-24-2015, 03:10 PM
  2. Need to match and sort data in 6 columns
    By gbunt8199 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-07-2014, 12:10 AM
  3. copy data to new workbook & sort data into different categories if criteria match
    By natnauk16 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-07-2013, 03:53 AM
  4. Sort and Match Uneven Columns of data
    By MustardMan in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 11-21-2012, 01:43 PM
  5. How to match up and sort columns with same data?
    By skizoid7 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 09-23-2010, 01:27 PM
  6. Sort and match whole columns' data?
    By coolieku in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-09-2009, 12:52 AM
  7. Replies: 9
    Last Post: 07-02-2008, 06:16 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