+ Reply to Thread
Results 1 to 2 of 2

Need function for matching samples

  1. #1
    Registered User
    Join Date
    05-18-2010
    Location
    Copenhagen, Denmark
    MS-Off Ver
    Excel 2003
    Posts
    3

    Need function for matching samples

    Hi guys

    I need to solve a matching problem.

    I have two samples of data, and for each sample i have 5 columns of data (company name, IPO year, SIC code, Total assets and ROA)

    I would like to set up a function that based on the one sample (RLBOs) matches each observation on IPO year, SIC code, Total assets and ROA respectively and returns the company name from the other sample (IPOs).

    I envision a function that first matches on IPO year, then finds the closest SIC code within that subsample, then finds the closest total assets within that subsample and finally finds the closest ROA within that subsample.

    So, for each firm in the RLBO sample I need to find the closest matching firm in the IPO sample on the specified variables.

    I've attached both samples in case my description is unclear.

    Any help is greatly appreciatied!
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor
    Join Date
    06-17-2009
    Location
    Chennai,India
    MS-Off Ver
    Excel 2003,excel 2007
    Posts
    678

    Re: Need function for matching samples

    whis the source file and which is the destination file give two examples

    as far as I can understand
    your first row (row no. 2) in RLBO
    is
    2005 371 $1,220,354 6.51

    the corresponding values in IPO is row no. 378 and the company name is
    ACCURIDE CORPORATION

    do you want this company name is to be entered in A2 of RLBO

+ 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