Apr 29 2021 01:33 PM
I'm very new at this. I am trying to hide a row on a sheet when there's no data in it. I have 10 sections of rows, each section containing 6 rows. Sometimes I might have data in 4 of them and I would like to hide the 2 without any data. I can't just delete them because of the formulas in the columns for when I do have data.
I'm using the IF function, because when I do have data, it becomes part of the formula for one of the columns.
=IF(A8=A9,(D9-D8), 0)
Basically, I need that last zero to be a command to hide the column.
Apr 29 2021 01:55 PM
Formulas return only values to the cells and nothing else, you can't change properties of the cell or perform any command with formula. That's VBA programming.
But perhaps it's easier to apply the filter and hide all rows with zero by it.