I'm in need of your help to figure out the following. I have following lookup data:
I'm looking for Account code 1 in following range and pickup all the instances of Code 1 in this range and put in Account Code 2.
This is the output which I'm looking for:
I am looking for a VBA code which looks for all possible matches for a given number and inserts those many rows.
I know it is achievable in Excel but I am very naive when it comes to Excel related stuff, can someone please help me with this?
Regards,
Code:
<code>Account Code1 Account Code2 Description1 Description 2
2500 B/Sheet Receivable
2508 B/Sheet Payable
2504 PL Sales</code>
Code:
<code>
Account Code1 Account Code2
2500 20100
2508 45000
2500 20300
2504 24000
2500 70000
2508 40300</code>
Code:
<code>Output
Account Code1 Account Code2 Description1 Description 2
2500 20100 B/Sheet Receivable
2500 20300 B/Sheet Receivable
2500 70000 B/Sheet Receivable
2508 45000 B/Sheet Payable
2508 40300 B/Sheet Payable
2504 24000 PL Sales</code>
I know it is achievable in Excel but I am very naive when it comes to Excel related stuff, can someone please help me with this?
Regards,
Last edited: