credit-debit booking, stacking accounts with pivot

Henceman

New Member
Joined
Oct 9, 2017
Messages
46
Hello,

I am having trouble assembling a booking entry based on the data I have. I need to stack pivot columns for that, but I dont know how to achieve that.
In the attachment you see how the data I have is formatted, and the table below ( I also attached a desired version in jpg) would present how I need the information

AccountAmount
1471555001​
53,9​
Debit entries
1471555002​
35,28​
Debit entries
1471555003​
88,94​
Debit entries
1471555004​
106,72​
Debit entries
3471003001​
-284,84​
Credit entries
1471666001​
74,38​
Debit entries
1471666002​
59,02​
Debit entries
1471666003​
88,94​
Debit entries
1471666004​
59,02​
Debit entries
3971003001​
-281,36​
Credit entries
Total
0​

As you see, I would need to have all the accounts (debit and credit) in one column.
As there are 2 different debit accounts and serveral line items, there is always 2 different credit accounts which reverse the total of the respectable debit account. There are also other characteristics, like customer number, which needs to be repeated for each of the debit accounts (the reason why there cant be fewer rows).

My original guess was, that I would somehow need to aggregate the the columns, and create a - total per account for credit...
But I guess you guys have a simpler solution...

End goal is, that the person responsible, can simply refresh the original dataset and copy the values straight ffrom this pivot for the booking.
 

Attachments

  • calculation.PNG
    calculation.PNG
    15.7 KB · Views: 22
  • result.PNG
    result.PNG
    14.3 KB · Views: 22

Excel Facts

Create a Pivot Table on a Map
If your data has zip codes, postal codes, or city names, select the data and use Insert, 3D Map. (Found to right of chart icons).

Forum statistics

Threads
1,215,339
Messages
6,124,363
Members
449,155
Latest member
ravioli44

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