Inside The Web
    Facebook Twitter Instagram
    Inside The Web
    • Office
      • Excel
      • Ms Word
      • OneDrive
      • Google Docs
      • Google Sheets
      • Google Drive
    • Email
      • Gmail
      • Outlook
      • Emal Etiquette
    • Office Etiquette
    • Productivity
    Inside The Web
    Home»Office»Excel»How to Split Excel Cell Into Two Rows in Excel

    How to Split Excel Cell Into Two Rows in Excel

    Asmi DhakalBy Asmi DhakalDecember 19, 2023 Excel 4 Mins Read

    If you’ve grouped multiple data in a single cell, you might face issues during data analysis. You can resolve such issues by splitting cells into multiple rows.

    You can split Excel cells into two rows using Excel’s ability to transpose data. Either split the data into two columns using Text to Columns or create a formula using TEXTSPLIT and TRANSPOSE.

    Additionally, for advanced Excel users, we’ve included methods to split Excel cell into rows using Power Query and a VBA-based macro.

    Split the Cell Into Columns And Transpose Data

    You can swap the alignment of columns to rows and vice-versa in Excel. We will utilize this feature to split Excel cells into two rows.

    For this method, we’ll use Text to Column to split the cell into columns. Then, we’ll copy the columns and use Paste Options to paste the transposed data.

    1. Select your cell and head to the Data tab.
    2. From the Data Tools section, select Text to Column.
    3. In the Step 1 of 3 window of Text to Column, select Delimited > Next.
      text to column step 1
    4. Next, specify the separator under Delimiter > Finish.
      text to column step 2
    5. Select the two columns and hit Ctrl + C.
    6. Click on an empty cell and right-click on it.
    7. Click on Transpose under the Paste Options.
      Paste Transposed
    8. After you’ve pasted the transposed copy, remove the source data column (Ctrl + -).
      Delete column excel

    Use TRANSPOSE and TEXTSPLIT Function

    Function UsedData TypeSyntax
    TRANSPOSELOOKUP & REFERENCE=TRANSOPOSE(array)
    CHARMATH & TRIG=CHAR(number) 
    TEXTSPLITTEXT=TEXTSPLIT(text, col_delimiter, [row_delimier],[ignore_empty],[match_mode],[pad_with])
    Note: The arguments inside the square brackets are optional.

    We can also create a formula that splits Excel cells into two rows.

    We’ll be using TEXTSPLIT which separates the cell using a delimiter, and TRANSPOSE which switches the alignment to a row.

    Let’s separate range A2:A11 into two rows in this table.

    Data table

    As Flash Fill uses relative referencing, we will have to break the task into two formulas. The first formula will only split the even-numbered cell while the second formula will only split the odd-numbered cell.

    In cell C2, enter the following formula:

    =TRANSPOSE(TEXTSPLIT(A2,CHAR(10)))
    TRANSPOSE and TEXTSPLIT

    Select cells C2 and C3 and use the fill handle to apply the formula till C11.

    To transpose the rest of the items, enter the following formula on cell C12:

    =TRANSPOSE(TEXTSPLIT(A3,CHAR(10)))
    TRANSPOSE and TEXTSPLIT function

    Select cells C11 and C12 and apply the formula till C22.

    Use Power Query

    The Power Query utility is a powerful automation tool in Excel. If you’re using Excel 2016 or later, Power Query comes built-in with your Excel program.

    Using Power Query, easily split a cell into rows by specifying a delimiter.

    1. Select your table/range.
    2. Go to the Data tab and select From Table/Range in the Get & Transform Data section.
      get table or range
    3. If prompted, select OK in the Create Table pop-up.
    4. Select your column in the Power Query window.
    5. From the Transform section, select Split column > By Delimiter.
      Split Column by delimiter
    6. Under Select or enter delimiter, choose your separator.
    7. Expand Advanced options.
    8. Under Split into, select Rows > OK.
      Split column
    9. Choose Close & Load from the Home tab.
      Close and Load Power Query

    Create a Macro Using VBA

    Create a macro to automate splitting an Excel cell into two rows.

    Before you head on, make sure you’ve enabled the Developer tab from Excel options. Without the Developer tab, you won’t be able to edit macro code in the future.

    In this data table, we have a list of individuals that are in charge of different projects.

    Data table Excel

    We’re looking to split our rows based on column B. Here’s how we create and run our macro to unpivot the table:

    1. Press Alt + F11 on your keyboard.
    2. Select Insert > Module.
      Insert Module VBA
    3. Copy-paste the following code. Remember to adjust the sheet name accordingly:
    Sub splitByColB()
    Dim r As Range, i As Long, ar
    Set r = Worksheets("Sheet1").Range("B999999").End(xlUp)
    Do While r.Row > 1
    ar = Split(r.Value, ",")
    If UBound(ar) >= 0 Then r.Value = ar(0)
    For i = UBound(ar) To 1 Step -1
    r.EntireRow.Copy
    r.Offset(1).EntireRow.Insert
    r.Offset(1).Value = ar(i)
    Next
    Set r = r.Offset(-1)
    Loop
    End Sub
    VBA Macro to split cell into multiple rows
    1. Select F4 to run the macro.
      Data sheet Excel
    Asmi Dhakal

      Asmi is a content writer specializing in MS Office. She loves writing Excel-related content to assist other users to learn their way around the program. She started using Excel when she first entered the industry as a marketing intern. Soon, she realized that learning the often-overlooked spreadsheet program was no piece of cake. In her articles, she attempts to brief out complex topics to help beginner to intermediate-level Excel users. Asmi uses Excel for everything, including creating a grocery list to managing her personal finance. She’s a bit dramatic when it comes to the Flash Fill feature; so much so that could write a eulogy out of it. When she’s not working, you’ll find her learning a new recipe, or cleaning up her mess (out of the failed recipe).

      Related Posts

      Excel By Nisha Gurung

      How to Compare Two Columns in Excel Using VLOOKUP

      Excel By Nisha Gurung

      How to Share Excel Files with Multiple Users

      Excel By Nisha Gurung

      How to Filter Based on a List in Excel

      Add A Comment
      Table of ContentsToggle Table of ContentToggle
      • Split the Cell Into Columns And Transpose Data
      • Use TRANSPOSE and TEXTSPLIT Function
      • Use Power Query
      • Create a Macro Using VBA
      • Home
      • About Us
      • Privacy Policy
      © 2025 Inside The Web

      Type above and press Enter to search. Press Esc to cancel.