I am trying to create a list displaying two columns; the first column live balances of a list of bank accounts (calculated using other information within the sheet) and the second column showing an all-time-high for the corresponding account on that same row.
Therefore, if the live balance (in column A) is greater than the previous all-time-high balance (in column B), then then column A will overwrite column B. If column A is less than column B, column B will continue to display the all-time-high.
If the current balance is 0 and has never had a positive balance - thus indicating it is a new account with no previous all-time-high - the all-time-high shown in column B would show 0 also.
But it is important that the values shown in column A can remain to be live calculations after the script has been triggered and for the script not to overwrite the SUM function behind the figures in column A.
I am new to scripts and have been struggling with this for a while. If anyone can provide any assistance, I'd be grateful.