Subtract a value from the last non-blank cell in the same column
I have a Numbers table with a date in column A and a Value (number) in column B.
In column C, I need a formula to subtract the value in B from the “last non-blank cell” value in column B, such as B8- B5, then B9 - B8 (see table below). The table will often have multiple blank cells between values entered into column B.
I found a similar question, but their values were chronological (always increasing). So, I could not get their recommended solution to work. In my case, the values in column B can increase or decrease with each entry.
Any help would be greatly appreciated.
MacBook Pro (2020 and later)