Hi,
I want to conduct simple pair matching in Excel.
I have a group of companies (191) which have received a "treatment", and I want to match each company to exactly one other company from a larger group with 1286 companies.
Each company should be matched on the following criteria in this order: 1-digit SIC code (ranges 0-9), sales in the range 70% to 130% (ranges 0-999999) of the treatment firm and the lowest book-to-market ratio (ranges 0.0 to 999). For both companies, these values are arranged in 3 separate columns, such that I have 3x191 and 3x1286.
For each of the 191 entries, I would like to loop through the range of the first row that contains all matching SIC-codes, then within that range find all entries which are in the range of sales and then find the book-to-market ratio closest to the one of the treatment firm. The formula should return the value from the fourth column, which contains a unique identifier for the matched firm.
Bookmarks