Hi,
I'm struggling with a task for my studies. To put it simply, I have two different Excel files as input data. One of them (Excel 1) contains account numbers and their corresponding category according to the german GAAP (generally accepted accounting principles). The second file (Excel 2) contains the account numbers and their balances. My aim is to join the two files based on account number, and aggregate the balances to see the sum of the individual GAAP-Items.
My problem:
In Excel 1, some accounts are listed two times. One of them would be correct if the balance is positive, the other one would be correct if the balance is negative.
See my attached image for an example. If the Account "X123123" has a positive balance, it belongs to "claims on banks", if the balance is negative it belongs to "liabilities to banks".
Since I join the two Excel files based on the Account number, and the Account "X123123" appears two times in Excel 1, it joins an examplary balance of EUR 500 two times, one time to the Assets, one time to Liabilities.
Is there a way to assign the Account to the right GAAP-Item based on the balance BEFORE joining it with Excel 2? I struggled here because I can only find the balance in Excel 2, but I need to know if the balance is positive or negative to assign it to Assets/Liabilites.
Glad for any suggestions! Thanks!