Results 1 to 4 of 4

Merge/Join 2 Worksheet Data on Single Column

Threaded View

  1. #1
    Registered User
    Join Date
    04-08-2005
    Posts
    2

    Merge/Join 2 Worksheet Data on Single Column

    I need help automating a weekly process by creating a VBA macro. The process calls for merging the data of two worksheets into one NEW worksheet based on values in a single column. The two worksheets will have a varying number of tuples for every run, but the data format/layout will be the same. There are a few conditions: records/tuples must match on a single shared column (CODE in the example). If there is no match, the tuple will be included in the new sheet without any matching data to fill up the remaining columns. That would be the easiest way to spot the records that did not have a match.

    The data layout is below:

    WORKSHEET 1
    [Name] [Code]

    WORKSHEET 2
    [Time] [Code] [Amount]


    NOTE: Shared column is CODE.


    The real data has been simplified to these few columns to easily express the concept. Actual data is around 25 columns. Attached is a tab delimited example data file (forum_exampleData.txt).

    Thanks in advance for any contribution!
    Mary
    Attached Files Attached Files

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