An interesting but tricky problem - though I'm not sure I fully understand what you're trying to achieve.
It may help if you populate your first table with the results you're expecting to know what the desired result looks like.
Questions:
- Are the companies (Comp1, Comp2, etc.) listed in the first table (Company) the same companies listed in Table1 (Partners)? YES
2. If so, are you just looking to create a ready-reckoner matrix of Partners x Services because not all partners offer all services and as a result the services displayed in the Partner table (Table1) are not in the same columns.
3. If not, what result do you expect when more than one Partner company offers one of your target services? For example, both Partner Comp1 and Comp5 offer Smart City.
Reply: I will use a companies name to perform a lookup in the excel table to see if the company performs services in the vertical (Agriculture, which of these companies offer service in the Agriculture, Airway, Smart Building or Smart City. Here is the expected outcome:
[TABLE="width: 885"]
<colgroup style="background-attachment: scroll; background-clip: border-box; background-color: transparent; background-image: none; background-origin: padding-box; background-position-x: 0%; background-position-y: 0%; background-repeat: repeat; background-size: auto; color: rgb(34, 34, 34); font-family: Verdana,Arial,Tahoma,Calibri,Geneva,sans-serif; font-size: 13px; font-size-adjust: none; font-stretch: 100%; font-style: normal; font-variant: normal; font-weight: 400; line-height: normal; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"><col style="background-attachment: scroll; background-clip: border-box; background-color: transparent; background-image: none; background-origin: padding-box; background-position-x: 0%; background-position-y: 0%; background-repeat: repeat; background-size: auto; color: rgb(34, 34, 34); font-family: Verdana,Arial,Tahoma,Calibri,Geneva,sans-serif; font-size: 13px; font-size-adjust: none; font-stretch: 100%; font-style: normal; font-variant: normal; font-weight: 400; line-height: normal; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"><col style="background-attachment: scroll; background-clip: border-box; background-color: transparent; background-image: none; background-origin: padding-box; background-position-x: 0%; background-position-y: 0%; background-repeat: repeat; background-size: auto; color: rgb(34, 34, 34); font-family: Verdana,Arial,Tahoma,Calibri,Geneva,sans-serif; font-size: 13px; font-size-adjust: none; font-stretch: 100%; font-style: normal; font-variant: normal; font-weight: 400; line-height: normal; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"><col style="background-attachment: scroll; background-clip: border-box; background-color: transparent; background-image: none; background-origin: padding-box; background-position-x: 0%; background-position-y: 0%; background-repeat: repeat; background-size: auto; color: rgb(34, 34, 34); font-family: Verdana,Arial,Tahoma,Calibri,Geneva,sans-serif; font-size: 13px; font-size-adjust: none; font-stretch: 100%; font-style: normal; font-variant: normal; font-weight: 400; line-height: normal; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"><col style="background-attachment: scroll; background-clip: border-box; background-color: transparent; background-image: none; background-origin: padding-box; background-position-x: 0%; background-position-y: 0%; background-repeat: repeat; background-size: auto; color: rgb(34, 34, 34); font-family: Verdana,Arial,Tahoma,Calibri,Geneva,sans-serif; font-size: 13px; font-size-adjust: none; font-stretch: 100%; font-style: normal; font-variant: normal; font-weight: 400; line-height: normal; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"><col style="background-attachment: scroll; background-clip: border-box; background-color: transparent; background-image: none; background-origin: padding-box; background-position-x: 0%; background-position-y: 0%; background-repeat: repeat; background-size: auto; color: rgb(34, 34, 34); font-family: Verdana,Arial,Tahoma,Calibri,Geneva,sans-serif; font-size: 13px; font-size-adjust: none; font-stretch: 100%; font-style: normal; font-variant: normal; font-weight: 400; line-height: normal; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"></colgroup><tbody style="background-attachment: scroll; background-clip: border-box; background-color: transparent; background-image: none; background-origin: padding-box; background-position-x: 0%; background-position-y: 0%; background-repeat: repeat; background-size: auto; color: rgb(34, 34, 34); font-family: Verdana,Arial,Tahoma,Calibri,Geneva,sans-serif; font-size: 13px; font-size-adjust: none; font-stretch: 100%; font-style: normal; font-variant: normal; font-weight: 400; line-height: normal; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;">[TR="bgcolor: transparent"]
[TD]
Agriculture[/TD]
[TD]
Airway[/TD]
[TD]
Digital Signage[/TD]
[TD]
Smart City[/TD]
[TD]
Smart Building[/TD]
[/TR]
[TR="bgcolor: transparent"]
[TD]-[/TD]
[TD="bgcolor: transparent"]-[/TD]
[TD="bgcolor: transparent"]-[/TD]
[TD="bgcolor: transparent"]Comp1[/TD]
[TD="bgcolor: transparent"]-[/TD]
[/TR]
[TR="bgcolor: transparent"]
[TD]-[/TD]
[TD="bgcolor: transparent"]-[/TD]
[TD="bgcolor: transparent"]Comp2[/TD]
[TD="bgcolor: transparent"]-[/TD]
[TD="bgcolor: transparent"]-[/TD]
[/TR]
[TR="bgcolor: transparent"]
[TD]Comp3[/TD]
[TD="bgcolor: transparent"]-[/TD]
[TD="bgcolor: transparent"]-[/TD]
[TD="bgcolor: transparent"]-[/TD]
[TD="bgcolor: transparent"]-[/TD]
[/TR]
[TR="bgcolor: transparent"]
[TD]-[/TD]
[TD="bgcolor: transparent"]-[/TD]
[TD="bgcolor: transparent"]-[/TD]
[TD="bgcolor: transparent"]-[/TD]
[TD="bgcolor: transparent"]-[/TD]
[/TR]
[TR="bgcolor: transparent"]
[TD]-[/TD]
[TD="bgcolor: transparent"]-[/TD]
[TD="bgcolor: transparent"]-[/TD]
[TD="bgcolor: transparent"]Comp5[/TD]
[TD="bgcolor: transparent"]Comp5[/TD]
[/TR]
</tbody>[/TABLE]
Question 3: ANSWER
Answer: Just add it to the list. See expected output above.