Hi excel & vba experts, I am new to vba and would like to seek some help regarding a current problem I am facing.
I have a table with many columns, of which there are 4 which are of interest to me.
1. The desk code
2. The ID
3. Debit
4. Credit
Accounting knowledge would dictate that only 1 of the columns, either debit/credit will be filled with a number, while the other column would be 0.
There are many rows with similar desk codes and IDs.
What I would like to do is, for each unique combination of desk code + ID, have the net Debit or Credit amount in a single row. Thus alot of repeated rows would be eliminated. In fact, this is similar to what a pivot table achieves.
However, the output would have to be in the same format as the original file, just with much reduced number of rows, for the next step of processing.
Can anyone help me with a solution for this please? have been racking my brains for days.
Using excel 2010.
thanks!!!
I have a table with many columns, of which there are 4 which are of interest to me.
1. The desk code
2. The ID
3. Debit
4. Credit
Accounting knowledge would dictate that only 1 of the columns, either debit/credit will be filled with a number, while the other column would be 0.
There are many rows with similar desk codes and IDs.
What I would like to do is, for each unique combination of desk code + ID, have the net Debit or Credit amount in a single row. Thus alot of repeated rows would be eliminated. In fact, this is similar to what a pivot table achieves.
However, the output would have to be in the same format as the original file, just with much reduced number of rows, for the next step of processing.
Can anyone help me with a solution for this please? have been racking my brains for days.
Using excel 2010.
thanks!!!