I have an excel function: =Max(0, -Min(A1-B1, C1-B1))
and A1,B1,C1 are the Value column in the table:
Date, Key, Value
assume for now the Date is irrelevant and the Key is A,B,C for A1,B1,C1
How do I implement this excel function? The way I originally did it I had two joins (to get the values all in separate columns on the same row) but this seemed like overkill and there must be a smarter way?
You could probably reduce it to one join, since you only need
Bfor theApart: