Many to Many Relationship VBA Code

Sadi915

New Member
Joined
Mar 7, 2021
Messages
3
Office Version
  1. 365
  2. 2019
Platform
  1. Windows
I have a set of data in Input sheet. It should be mapped through many-many relationship logic.

Input Sheet:

IP(Header)FP(Header)QP(Header)
CHYT
1​
JATR
2​

Output sheet:

IP(Header)FP(Header)QP(Header)
CHYT
1​
CHYT
2​
CHTR
1​
CHTR
2​
JAYT
1​
JAYT
2​
JATR
1​
JATR
2​

Please download mini workbook for better understanding. Your thoughts are highly appreciated.


Many to Many Relationship VBA.xlsm
ABC
1IP(Header)FP(Header)QP(Header)
2CHYT1
3JATR2
Input Sheet
 

Attachments

  • Screenshot (98).png
    Screenshot (98).png
    204.4 KB · Views: 9

Excel Facts

How to fill five years of quarters?
Type 1Q-2023 in a cell. Grab the fill handle and drag down or right. After 4Q-2023, Excel will jump to 1Q-2024. Dash can be any character.
Welcome to the MrExcel Message Board!

Cross-posting (posting the same question in more than one forum) is not against our rules, but the method of doing so is covered by #13 of the Forum Rules.

Be sure to follow & read the link at the end of the rule too!

Cross posted at: Many to Many mapping relationship Using VBA - OzGrid Free Excel/VBA Help Forum
If you have posted the question at more places, please provide links to those as well.

If you do cross-post in the future and also provide links, then there shouldn’t be a problem.
 
Upvote 0

Forum statistics

Threads
1,223,249
Messages
6,171,031
Members
452,374
Latest member
keccles

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top