How to insert same text in every other row in Excel?
In this article, we will show you how to insert same text in every other row in Excel. Read on for more details.
Insert same text in every one row with VBA code
Insert same text in every other row with Kutools for Excel
Insert same text in every one row with VBA code
Suppose you want to insert the text “Name”, “Data” and “Score” in every other row within a specified range, as shown in the screenshot below. Please try the following VBA code.
1. In the worksheet, press Alt + F11 keys simultaneously to open the Microsoft Visual Basic for Application window.
2. Click Insert > Module. See screenshot:
3. Copy and paste below VBA code into the Code editor.
VBA code: insert same text in every one row in Excel
Sub inserttexteveryonerow()
Dim Last As Integer
Dim emptyRow As Integer
Last = Range("A" & Rows.Count).End(xlUp).Row
For emptyRow = Last To 2 Step - 1
If Not Cells(emptyRow, 1).Value = "" Then
Rows(emptyRow).Resize(1).Insert
Range(Cells(emptyRow, "A"), Cells(emptyRow, "C")).Value = Array("Name", "Date", "Sore")
End If
Next emptyRow
End Sub
Notes: In the above code:
Insert same text in every other row with Kutools for Excel
With the above code, you can just insert text in every one row. How about insert text in every n row in Excel? In this section, we will show you the Insert Titles rows utility of Kutools for Excel. With this utility, inserting text in every nth row becomes easy.
1. Click Kutools > Insert > Insert Titles Rows to enable this utility.
2. In the Insert Titles Rows dialog box, you need to:
Now the specified text is inserted in every n row in the selected range.
Kutools for Excel - Supercharge Excel with over 300 essential tools. Enjoy permanently free AI features! Get It Now
Best Office Productivity Tools
Supercharge Your Excel Skills with Kutools for Excel, and Experience Efficiency Like Never Before. Kutools for Excel Offers Over 300 Advanced Features to Boost Productivity and Save Time. Click Here to Get The Feature You Need The Most...
Office Tab Brings Tabbed interface to Office, and Make Your Work Much Easier
- Enable tabbed editing and reading in Word, Excel, PowerPoint, Publisher, Access, Visio and Project.
- Open and create multiple documents in new tabs of the same window, rather than in new windows.
- Increases your productivity by 50%, and reduces hundreds of mouse clicks for you every day!
All Kutools add-ins. One installer
Kutools for Office suite bundles add-ins for Excel, Word, Outlook & PowerPoint plus Office Tab Pro, which is ideal for teams working across Office apps.





- All-in-one suite — Excel, Word, Outlook & PowerPoint add-ins + Office Tab Pro
- One installer, one license — set up in minutes (MSI-ready)
- Works better together — streamlined productivity across Office apps
- 30-day full-featured trial — no registration, no credit card
- Best value — save vs buying individual add-in