Oct 07 2022 12:06 AM
Hi,
I have downloaded my monthly banks statement as an excel document, and I currently have a table that has 3 columns:
Narration (The business name)
Debit
Credit
I want to be able to combine all the debit/credit in a column with all other entries that have the same narration.
This is an example of what the data looks like
This is an example of what I want to be able to do
Thanks for any help!
Oct 07 2022 12:32 AM - edited Oct 17 2022 02:54 PM
Hi @Jeremy1565
A classic PivotTable does it easily (avail. in attachement). Otherwise...
With Power Query, Group by [Narration] and do an aggregate Sum or [Debit] and an aggregate Sum of [Credit]:
Sample attached
Oct 07 2022 04:24 AM
In case you want to do it with formulas and run Microsoft 365...
in J3:
=LET(
Narrations, UNIQUE(Table1[Narration]),
Debits, BYROW(Narrations, LAMBDA(rw, SUMIF(Table1[Narration],rw,Table1[Debit]))),
Credits, BYROW(Narrations, LAMBDA(rw, SUMIF(Table1[Narration],rw,Table1[Credit]))),
CHOOSE(SEQUENCE(,3), Narrations, Debits, Credits)
)