rippchen10247
New Member
- Joined
- Apr 18, 2013
- Messages
- 18
Hey all,
though I can code in Visual Basic, this is my first time in smaller VBA. For my job, I need to apply a more complex matching procedure in excel.
Specifically, I try to match two companies in the following manner: I have 2 company lists with about 1000 companies on list 1 and 5000 companies on list 2 respectively.
The lists have identical colums for each company entry, e.g. the market value of a company, pricing dates etc. My aim is to match the companies one on one, so that each company of the first list is matched with one company of the second list. The matching should refer to criterias based on the other colums / data entries for each company.
For example: Company A (list1) is matched with Company B (list2) based on information about the market value of a company and pricing dates, whereby the companies should match in both criteria as accurately as possible. E.g. List 1 is for reference and company A should be matched with a company B out of list 2, when B has a market value as well as pricing dates in certain definable ranges around the values of Company A.
Moreover, I want to apply let say 10 criteria for matching and if the conditions are not fulfilled cumulatively, at least the first 9 criteria should be fulfilled for a match, if not possible at least the first 8, if not possible at least the first 7 and so on. After all, every company on list 1 should should be matched with a certain company of the bigger list 2.
Do you have any (parts of) solutions how to code this?
though I can code in Visual Basic, this is my first time in smaller VBA. For my job, I need to apply a more complex matching procedure in excel.
Specifically, I try to match two companies in the following manner: I have 2 company lists with about 1000 companies on list 1 and 5000 companies on list 2 respectively.
The lists have identical colums for each company entry, e.g. the market value of a company, pricing dates etc. My aim is to match the companies one on one, so that each company of the first list is matched with one company of the second list. The matching should refer to criterias based on the other colums / data entries for each company.
For example: Company A (list1) is matched with Company B (list2) based on information about the market value of a company and pricing dates, whereby the companies should match in both criteria as accurately as possible. E.g. List 1 is for reference and company A should be matched with a company B out of list 2, when B has a market value as well as pricing dates in certain definable ranges around the values of Company A.
Moreover, I want to apply let say 10 criteria for matching and if the conditions are not fulfilled cumulatively, at least the first 9 criteria should be fulfilled for a match, if not possible at least the first 8, if not possible at least the first 7 and so on. After all, every company on list 1 should should be matched with a certain company of the bigger list 2.
Do you have any (parts of) solutions how to code this?