Dear all,
I am doing research on the effect of a merger/acquisition on the industry rivals.
If a company is an industry rival is based on the 4-digit SIC code.
I have 1863 unique M&A-announcements, which are all done in a specific 4-digit SIC code.
These 1863 SIC-codes are in one column. In total 234 unique SIC are in my data. Next to this column is the Year in which the acquisition is made.
These years range between 1900-2015. I want to get the average Cash position per M&A announcement of ALL companies active in that SIC-code at the year of the announcement.
I want to get this data from the Excel-tab in which I have data on the industry rivals downloaded from Compustat which are structured as followed.
Column 1: Year of Cash
Column 2: SIC code of the company
Column 3: Value of Cash
Multiple companies are active within the same SIC-code, so for example there are 4 companies active in SIC 1234 and 98 companies active in SIC 1245.
If an acquisition is done in SIC 1234 in Year 1995 there can be 4 companies active, but an acquisition done in SIC 1234 in 2014 there could be 10 companies active.
Could you help me providing with a Excel-code to match the SIC codes & Year of the M&A announcement with the average value of cash position of all companies active in that SIC code and in the year of announcement?
I tried some indexmatch/vlookup/hlookup functions but I did not succeed.
I would really appreciate your help. My excel is attached.
Kind regards,
Emiel
Bookmarks