Seems like there should be a way to goto Next if the empty cell condition is met but I can't find it.
For x = 1 To lastrow
Data = Str(F1.Cells(x, 1))
ActiveSheet.Cells(x, 1).Select
If IsEmpty(ActiveCell.Value) Then ????
If Data <> "0" Then Ary1(x, 1) = Data: g = g + 1
Next
For x = 1 To lastrow
Data = Str(F1.Cells(x, 1))
ActiveSheet.Cells(x, 1).Select
If IsEmpty(ActiveCell.Value) Then ????
If Data <> "0" Then Ary1(x, 1) = Data: g = g + 1
Next