Comments on: How to insert multiple rows in Excel: shortcut, right-click, VBA

Inserting rows in Excel is a routine task that many users encounter daily. While adding a single row is relatively simple, inserting multiple rows in the right places can sometimes be a challenge. Continue reading

Comments page 4. Total comments: 133

  1. Can anyone tell me how I can take the data below and create multiple rows for each column for the unique number. For Instance I need 3 rows for unique number 123, a row with Number, a row with current, and a row with amount.

    Unique Number Current Amount
    123 381.43 125.87 114.43
    1234 50.37 55.41 50.37
    12345 40.26 55.41 50.37
    123456 44.8 59.29 0
    234 647.31 194.19 176.54
    2345 324.71 78.77 71.61
    23456 324.71 238.7 71.61
    234567 549.01 78.77 71.61
    345 549.01 238.7 71.61
    3456 42.99 65.71 59.74
    34567 385.95 84.91 77.19
    345678 385.95 308.76 77.19
    456 0 84.91 77.19
    4567 0 308.76 77.19
    45678 119.47 65.71 59.74

  2. Hi I know this is a very old thread. Is it still alive??

    Thanks for your article! My question is how can I insert or delete a row and the other data maintain its numerical order. For example, if I insert a new row between numbered rows 5 and 6, how can I make sure that the new data is now numbered #5 and all of the subsequent or following data shifts up by one space and reflects its new position? So, in this case what used to be #5 in the list is now numbered #6?

  3. Genius and helpful thank you

  4. Thank you so much dear. 2nd method of entering rows multiple was much of a help. otherwise I would have wasted ma whole day to do that.

  5. Thank you, the helper column did the job, plain and simple!

  6. THANK YOU, both work!

  7. Thanks for help. It's really helpful for my big data file.

  8. Thanks a lot your teaching was really useful.

  9. Thanks Guys... simple & crisp article which helped me save many hours and made my day... Appreciate your help

  10. I want insert at different location in data execel sheet. Insert row must be a particular named down row.

  11. I neeD to add two rows but no empty rows. something like this:

    Site Name Class Name Participant Name
    Childplus CLEARWATER CENTER 4A CLEARWATER Ambrocio, Natalie
    ELC
    DIF
    Childplus CLEARWATER CENTER 4A CLEARWATER Cordes, ALan
    ELC
    DIF
    Childplus DUNEDIN CENTER 4B DUNEDIN Lopez, Carlos
    ELC
    DIF

  12. THANKS

  13. i am trying to serial number 123 again 123 again 123 serial key plz send

  14. Hi,

    I have a list of accounts and month end dates, below is a sample:

    account end_date return
    xxx-xxx-xxxx-1 Friday, May 31, 2013 -0.67
    xxx-xxx-xxxx-1 Sunday, June 30, 2013 -0.36
    xxx-xxx-xxxx-1 Wednesday, July 31, 2013 3.44
    xxx-xxx-xxxx-1 Saturday, August 31, 2013 -2.23
    xxx-xxx-xxxx-1 Monday, September 30, 2013 2.89

    I am trying to insert rows for all of the days between each month end date. For example I want to insert a new row for June 1, June 2, June 3.... June 29. Can anyone help me out? Thanks.

  15. How do I create a series between each blank row I want to insert numbers 1 to 100 but I don't want to add each individually is there a short cut?

    1. Hello Christian,

      You can select multiple areas and fill it with numbers using the following macro:

      Sub FillSelectedAreas()
      Dim area As Range
      Dim cell As Range
      Dim i As Integer
      For Each area In Selection.Areas
      i = 1
      For Each cell In area
      cell.Value = i
      i = i + 1
      If i > 100 Then
      Exit Sub
      End If
      Next
      Next
      End Sub

  16. thanks its really Work.

  17. Hello. I have a spreadsheet that needs to have data entered every 6 months for many specific items. Is there an easy way to add a row after the last entry for each item in order to make room to add the newest data or do I have to manually insert a row every time for each item?
    Ex:
    A B C
    OW-1 7/22/14 36.21
    1/19/15 37.89
    7/27/15 43.87
    OW-2 7/22/14 46.19
    1/19/15 44.24
    7/27/15 51.89
    OW-3 7/22/14 35.14
    1/19/15 32.13
    7/27/15 36.57

    1. Hello Angela,

      I recommend you find and select all cells that contains "OW" (hit Ctrl+F shortcut).

      Then run the following macro to select entire rows of selected cells:

      Sub SelectEntireRows()
      Selection.EntireRow.Select
      End Sub

      Now, when the row selected, you can use the insert function described above.

    2. After posting my question, the format of the example shifted all of my data to to be left aligned. The item identifiers are in column A, dates in column B and data in column C (Note: the item identifier is only listed once at the first entry, therefore the proceeding rows only have data in column B and C.)

  18. I'm trying to download data to Excel 2010 but it stops and gives message that there's too much data. It is only allowing the 65K some rows. How do I get all my download into into one file? Thanx!!!!

    1. Hello Deirdre,

      Try to change a format of workbook.
      File > Options > Save > Save file in this format: Excel Workbook (*.xlsx)

      Please see more info:
      https://answers.microsoft.com/en-us/office/forum/office_2010-excel/my-excel-2010-only-has-65536-rows-how-do-i-change/16811354-abad-41eb-bc65-049d47cfc553

      it may also be useful:
      Excel cannot complete this task with available resources error, Excel 2010
      https://support.microsoft.com/en-us/kb/2655178

  19. It's always nice to find a solution that's both simple and innovative.

    I coded something before I read this article but your solution was much smarter.

    Thanks

  20. thanx for soln. can you pls help inserting columns in similar way.

  21. To insert a blank row after each row that houses the word "TOTAL" down through your spreadsheet until "GRAND TOTAL"

    1) At the top (under the MACRO TITLE), type "Dim inX As Integer" (exactly as written in the quotations).

    2) At the end (between your last line in your MACRO and "END SUB", but on a different line), copy and paste the following:

    inX = 2
    Do Until Range("C" & inX) = "Grand Total"
    If Right(Range("C" & inX), 5) = "Total" Then
    Rows(inX + 1 & ":" & inX + 1).Insert Shift:=xlDown,CopyOrigin:=xlFormatFromLeftOrAbove
    End If
    inX = inX + 1
    Loop
    End Sub

  22. I am using MS Excel v10. I am trying to step into my V.B. / Macro and add an entry that will insert a blank row after each line showing Total! Please tell me there is an easy way to do this. I am doing it manually now and when you have multiple sheets it becomes burdensome. Can you help me? Thanks, R, Dave

  23. loved th method thanks for sharing

  24. Thank you

  25. Wonderful tip, this was quite helpful for me, if you need multiple rows in between copy the additional colom as said above....suposse the additional column is filled with 1 to 5 Numbers...and now if you need to add 5 rows, just copy and paste to last cell 5 times the result will so
    Example:
    Text Additional column
    A 1.00
    b 2.00
    c 3.00
    d 4.00
    e 5.00
    1.00
    2.00
    3.00
    4.00
    5.00

    After sorting with additional column you will find the result as below-
    A 1.00
    1.00
    b 2.00
    2.00
    c 3.00
    3.00
    d 4.00
    4.00
    e 5.00
    5.00

    So,I Find this as the quickest method and helped me a lot in my daily job.
    Thanks again

  26. Fantastic job with the last trick, I struggled with it so much to insert multiple rows between data. Very very handy!

    Good job.

    Thanks a ton.

  27. Thanks.
    Very helping.

  28. Special shortcut to insert rows with copied data in Excel if there's data to the down of your table

    1. Hello, Phani,

      For us to be able to help you better, please send me a sample with your data in Excel.

  29. Hi I am trying to insert two lines after each break in name change ome of my clients I have multiple times and some only once. Like subtotaling I want to add lines after each name change? Please help.

    1. Hello, Sabina,

      Most likely you need a macro or VBA. Sorry, I cannot help you with this.

  30. You're amazing!

  31. Thanks a lot for the trick it really saved my time

  32. I would like to add 3 empty rows after each vendor that I have listed in a column, How do I do this?

    1. Hello, Lori,

      Most likely you need a macro or VBA. Sorry, I cannot help you with this.

  33. No matter what, it greets me with "Excel cannot shift non-blank cells off of the worksheet....." :-(

  34. I have an excel file in which I have 20 sheets, all with formulas that are connected to the first page. I want to be able to insert/delete lines on the first page and that line on all sheets to be inserted or deleted as well, how do I accomplish this?
    Thanks,

  35. Its really helpful

  36. Is there a way to do this when the value changes - for example, I have 8 rows with "12345", then 8 rows of "54321" then 8 more of "92939". I would like to know if I can have a macro to insert blank rows between each "group" ?

    1. I think this can work

      Sub InsertEvery8th
      Dim rowNo, rowStart, rowFinish, rowStep As Long
      Dim rng2Insert As Range
      rowStep = 8
      rowStart = Application.Selection.Cells(1, 1).Row + 1

      rowFinish = (ActiveSheet.UsedRange.SpecialCells( _
      xlCellTypeLastCell).Row * 2) - rowStart
      Application.ScreenUpdating = False
      Application.Calculation = xlCalculationManual
      For rowNo = rowStart To rowFinish Step rowStep
      ActiveSheet.Cells(rowNo, 1).EntireRow.Insert
      Next
      Application.ScreenUpdating = True
      Application.Calculation = xlCalculationAutomatic
      End Sub

      1. Thank you x 1 Million for this. Used it in 10 files varying depending on the file every 110th, 109th, or 99th. You have to add one more number than the total set you have. So if you want a Row added for every 99 entries, the value is 100.
        It also adds a row before the first row after the header row. I'm sure this would be easy to code out, for me as a luddite it was only 10 files with 22,000 entries, so not a big deal to remove manually afterwards.

  37. Colums B&C are Merged in rows 1-23, when I insert rows in this section the merged formating does not carry over using format same as above or below. Is there a setting that can correct this? Please advise.

  38. Hi

    Can you please tell me how do i insert multiple rows in odd numbers rows ( in row # 3,5,7,9......) in huge list of data? Thanks.

    1. Please use the following macro to insert every other row from the first selected cell to the end of your data.

      Sub InsertEveryOtherRow()
      Dim rowNo, rowStart, rowFinish, rowStep As Long
      Dim rng2Insert As Range
      rowStep = 2
      rowStart = Application.Selection.Cells(1, 1).Row + 1

      rowFinish = (ActiveSheet.UsedRange.SpecialCells( _
      xlCellTypeLastCell).Row * 2) - rowStart
      Application.ScreenUpdating = False
      Application.Calculation = xlCalculationManual
      For rowNo = rowStart To rowFinish Step rowStep
      ActiveSheet.Cells(rowNo, 1).EntireRow.Insert
      Next
      Application.ScreenUpdating = True
      Application.Calculation = xlCalculationAutomatic
      End Sub

      If you are not very good at VBA, please see this article:
      https://www.ablebits.com/office-addins-blog/add-run-vba-macro-excel/

      1. Thank you. This script helped me to insert multiple blank rows in between thousands of records I have. However, I had to run the macro multiple times to achieve my results. Is there a way to have custom selection? Say for example, I have 12 vendors and I want to insert 12 blank rows between each row. It would be nice if you have a parameter in the macro that inserts the rows based on that parameter.

  39. I have a huge spreadsheet containing unique names of genes in one of the columns, and information about the genes in the subsequent columns. These gene names sometimes have similar letters in their name. Eg. genes that start with the name LRRC and usually have a numerical value after them. I am trying to select the entire row of every gene whose name starts with LRRC (which are scattered in the spreadsheet) and then copy it into the new spreadsheet. How do I do this? I've tried finding all, selecting all of the genes, but this isn't time efficient, as there are often hundreds of genes with this same name...

    1. Hello,

      Please try our Advanced Find and Replace add-in:
      Enter LRRC into the Find what field
      Click Find all
      Press Select cells and pick the option Select rows with all found entries.

  40. I m follow Add empty rows between multiple data lines in Excel sheet.
    Very quickly create format option.

    REgards,
    Jaheer

    1. Hello, Jaheer,

      Please give me more details about the problem you have.

  41. Thank you very very very much!
    god bless you!
    I was badly in trouble and was killing myself to find a way for inserting multiple blank rows in a huge list of data. thank you dude :)

    1. Thank you so much for your feedback, Hamid,

      Happy to hear you found the article helpful.

  42. I have a two page worksheet. How can I insert a new row in the first sheet but the last row in the first worksheet will automatically go down to the next page below the header in the second page? Please help

  43. I am inserting new rows to an existing spreadsheet and when I do that the row has no gridlines. Help?

    1. Hi Doreen!

      Thank you for your question. Most likely you have custom gridlines (color, size or style). For us me to be able to help you better, please email your workbook at support@ablebits.com

    2. File > Options > Advanced > Display Options for This Worksheet > Show Gridlines

Post a comment



Thank you for your comment!
When posting a question, please be very clear and concise. This will help us provide a quick and relevant solution to
your query. We cannot guarantee that we will answer every question, but we'll do our best :)