Not sure what your final aim is. If you are copying the newly organized data to a new sheet, it would be easy to "Paste as Values" and then filter on the zeros and delete those rows. If you want the blank rows removed automatically, here is a solution that uses ARRAYED Formulas.
...confirmed by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER. You will know the array is active when you see curly braces { } appear around your formula. If you do not CTRL+SHIFT+ENTER you will get an error or a clearly incorrect answer. Press F2 on that cell and try again.
In Q2 copied down is this arrayed formula
In R2 copied down is this arrayed formula
Bookmarks