I have a column(for example: b1:b5000) that has cells that have info, and many other cells in that column that are empty. I have copied that column to another worksheet. On the new worksheet, I need to leave the order of the cells with info in the same order, but remove all of the empty cells in between. Also, when I change certain variables, some of the empty cells on the original worksheet will then have info, and some cells that had info will then be empty. So, every time I change a variable, I would like the list that excludes/hides empty cells to automatically readjust to the changes.
Here is an example:
B1 has a value of 6. B2 is empty. B3 has a value of 2. I want the value of B1 to be immediately followed by B3, leaving out empty cell B2. If B2 eventually has data, then I would like it to UNHIDE B2. So, then it would be B1 followed by B2 and then B3 (assuming b1 and b2 still have info in them as well).
Is there a simple way to do this with a formula or array? Thanks.
Here is an example:
B1 has a value of 6. B2 is empty. B3 has a value of 2. I want the value of B1 to be immediately followed by B3, leaving out empty cell B2. If B2 eventually has data, then I would like it to UNHIDE B2. So, then it would be B1 followed by B2 and then B3 (assuming b1 and b2 still have info in them as well).
Is there a simple way to do this with a formula or array? Thanks.