Hi guys!
Thanks to Forum Guru Marcol, I could solve the first step of my problem: to give a "similarity" score to each code from a list of 4-digit codes.
Here is the formula:
Now this list of codes is made of several sub-lists, each of them representing a different acquirer (I'm doing my Thesis on Mergers & Acquisitions). These acquirers are identifiable by a code.=MAX(IF(COUNTIF($A$2:$A$8,A2)-1>0,4,0),IF(SUMPRODUCT(--(LEFT($A2,3)=LEFT($A$2:$A$8,3)))-1>0,3,0),IF(SUMPRODUCT(--(LEFT($A2,2)=LEFT($A$2:$A$8,2)))-1>0,2,0),IF(SUMPRODUCT(--(LEFT($A2,1)=LEFT($A$2:$A$8,1)))-1>0,1,0))
Basically, I need to give a "similarity" score for the acquisitions of a single acquirer, and not the whole list.
Here is an example:
Attach you will find the excel file: target-to-target similarity 5.xlsx"Acquiror's code" "Target Industry code" "Target-to-target similarity"
2003030 1311 4
2003030 1311 4
2003030 4924 0
2003030 1311 4
2003030 1382 2
--------------------
2023748 4911 2
2023748 5172 1
2023748 1311 4
2023748 4924 2
2023748 1382 2
2023748 1311 4
2023748 4931 2
2023748 5541 1
2023748 8731 0
--------------------
2024763 1311 4
2024763 1311 4
Thanks in advance,
Glux
Bookmarks