I've got the following function: A2-OFFSET(A2,5+(COUNTIF(B2:B7,"X")),0)
When I place an X within B2:B7, and the offset happens, it now does A2-A8, which is what I want, but I also want to be able to take into account that X and have the range change from B2:B7 to B2:B8. Which means if I now place an X in B8 that the result will return A2-A9. And so on. Is this possible?
Bookmarks