Hello,
I want to insert a Formula to accumulate the Amount for the same Member in the same Company and return the calculation result in each row. See example below. If the same Member changed to a different Company in any given period, the accumulation starts from 0 in the new Company. The expected results are placed in column "Accumulated".

Could anyone help with this scenario without using macros?
Thank you in advance.