Hi,
In addition to the solution by @izaychik63, you may prefer to transform the blank cells to missing value and then handle them as usual.
Best, Armin