I have a named range of data, called ‘data’. I’m trying to find a formula or array formula that will return data in a new range of cells, but will all the blank rows missing.
i.e. data is:
row x y
1 A 77
2
3 B 23
4 A 100
5
And my new range is:
row x y
1 A 77
3 B 23
4 A 100
It’s ok if the blank rows end up at the end of the array. So far I am stumped
You should use the special cells method for this. Either with vba or Manually.
Manually
2007/2010
Select column A
Home Tab -Find & Select – Goto Special – Blanks – Ok
Home Tab – Delete Cells – Entire Row – Ok
VBA
If you want to leave the original data intact and copy the range to another sheet try something like:
FORMULA
If you really need a formula take a look here:
Remove Blanks – Array Formula