Hello,
I am working with a formula (that I got from this board a good while ago), which calculates the change versus the data in a previous cell, but it selects a whole range of cells as the data is ‘dynamic’ in nature, meaning is changing all the time.
This is the formula:
=(OFFSET(G27,0,MAX(0,MATCH(0,G27:S27,0)-2))-OFFSET(G27,0,MAX(0,MATCH(0,G27:S27,0)-3)))
The formula works ok as long as the first cell (ex. G27 in my case) is anything higher than 0. However if it is 0, it stopps there, it doesn’t go all the way to S27. Is there a way to overcome this limitation and to let the range be selected from the first cell and only check for the end whether it is 0 or higher?
Attached a small example for illustration. The problem is highlighted with red.
Thanks,
K.