+ Reply to Thread
Results 1 to 3 of 3

Matching row data from multiple columns

  1. #1
    Registered User
    Join Date
    10-11-2009
    Location
    England
    MS-Off Ver
    Excel 2003
    Posts
    2

    Matching row data from multiple columns

    Hi

    I am trying to organise data from multiple columns and need some help to find a quick way of doing it.

    To explain the problem. I have stock values for two stocks on trading dates where the trading dates become out of sync (the trading dates are different for different countries), but want to align the row data into a new worksheet (Eg Column A = dates, Column B = stock values, Column C = dates, and Column D = values of different stock). A and C start on the same date but after a certain number of rows become out of sync, and the only way i have found is to go through the sheet manually and move the data around.

    So what i want to do is to create a new worksheet with the dates in column A, b stock values on dates given in column A, but also want the D stock values on the matching dates given in column A.

    Can someone help? Im fairly new to vba.

    Thanks guys

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Matching row data from multiple columns

    Mockup a sample worksheet with 20 rows of data or so, then mockup your sample desired results. Click GO ADVANCED and use the paperclip icon to post up your workbook.

    You may not require a VBA solution, but we'll take a look.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    Registered User
    Join Date
    10-11-2009
    Location
    England
    MS-Off Ver
    Excel 2003
    Posts
    2

    Re: Matching row data from multiple columns

    Hi

    Thanks for your response. I have attached the workbook with the data in.
    I have tried to use the lookup command in column H, which works fine until row 27. See the colour coded cells.

    There is also a module within the sheet with a couple of subs that i have tried to use to do the same thing, which again works to some extent, but not completely.

    Thanks for your help. Its been bothering me for too long.
    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)

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