Can you help me please?
I want a script to sum rows after a name change.
Something like this:
COLUMN A - COLUMN B - COLUMN C - COLUMN D - COLUMN E
aa - aa - 5€ - 5€ - 5€
aa - aa - 5€ - 5€ - 5€
aa - aa - 5€ - 5€ - 5€
bb - bb - 5€ - 5€ - 5€
bb - bb - 5€ - 5€ - 5€
I want this:
COLUMN A - COLUMN B - COLUMN C - COLUMN D - COLUMN E
aa - aa - 5€ - 5€ - 5€
aa - aa - 5€ - 5€ - 5€
aa - aa - 5€ - 5€ - 5€
blank blank - 15€ - 15€ - 15€
blank blank blank blank blank
bb - bb - 5€ - 5€ - 5€
bb - bb - 5€ - 5€ - 5€
blank blank - 10€ - 10€ - 10€
blank blank blank blank blank
PS:I am in the financial area, but with a great passion for the computer area, but unfortunately, I am not that good in this area, so I asked for your help.
Best Answer
You have transaction data including three currency/value fields. The total number of rows, and the number of transactions for each user/customer is unknown and can vary.
This key facets of this script are:
temparray
) to capture row valuestargetarray
) to accumulate row values, and to enable a single "write" command to update the output sheet.