if the data is the result of a formula, then it will never be empty (even if you set it to ""
), as having a formula is not the same as an empty cell
There are 2 methods, depending on how static the data is.
The easiest fix is to clear the cells that return empty strings, but that means you will have to fix things if data changes
the other fix involves a little editing of the formula, so instead of setting it equal to ""
, you set it equal to NA()
.
For example, if you have =IF(A1=0,"",B1/A1)
, you would change that to =IF(A1=0,NA(),B1/A1)
.
This will create the gaps you desire, and will also reflect updates to the data so you don't have to keep fixing it every time