Search code examples
excelcellexcel-formula

Inserting row alternatively in an excel sheet


I have an excel sheet which looks like this:

enter image description here

I want to insert row(or cell) below every filled cell. Like this: enter image description here

I have thousands of records so need to do this automatically. How can I achieve this?

Thanks in advance!


Solution

  • A non-VBA approach would be to make a new sheet, and enter this formula in A1:

    =INDEX(Sheet1!A:A, ROUNDUP(ROW(A1)/2, 0))
    

    Then select A1 and A2 (leaving A2 blank), copy it, select twice the number of rows as in Sheet1, and paste.

    If you only want values, you could then select column A and copy, then paste special and paste values only.