I am stuck with a logic to implement in a VBA Code. I have two tables in two different worksheets & I want to join them based on column which will occur multiple times in both the sheets.
I have attached a screenshot of my need. Please help me! Thanks in advance. I am trying to replicate the table here, not sure if this would come good.
>|===================|====================|===========================|
>| Table 1 | Table 2 | Result |
>|===================|====================|===========================|
>| Fruit | Store | Fruit | Buyer | Buyer | Fruit | Store |
>|===================|====================|===========================|
>| Apples | Walmart | Apples | Rita | Rita | Apples |Walmart |
>--------------------|--------------------|---------------------------|
>| Apples | Target | Grapes | Rita | Rita | Apples |Target |
>--------------------|--------------------|---------------------------|
>| Grapes | Walmart | Grapes | Peter | Rita | Grapes |Walmart |
>--------------------|--------------------|---------------------------|
>| Grapes | Target | Oranges | Rita | Rita | Grapes |Target |
>--------------------|--------------------|---------------------------|
>| Oranges| Walmart | Oranges | Peter | Rita | Oranges|Walmart |
>--------------------|--------------------|---------------------------|
>| Oranges| Target | Oranges | Tom | Rita | Oranges|Target |
>|===================|====================|---------------------------|
> | Peter | Grapes |Walmart |
> |---------------------------|
> | Peter | Grapes |Target |
> |---------------------------|
> | Peter | Oranges|Walmart |
> |---------------------------|
> | Peter | Oranges|Target |
> |---------------------------|
> | Tom | Oranges|Walmart |
> |---------------------------|
> | Tom | Oranges|Target |
> |===========================|
>
Screenshot: