Skip to main content

How to split cell values vertically in Excel?

Author: Xiaoyang Last Modified: 2025-04-07

When working in Excel, you may encounter situations where multiple values in a single row or multiple rows need to be converted into a vertical list. This is especially useful when data is stored in a horizontal format but needs to be processed or analyzed in a column format.

This guide will cover three efficient methods to convert cell values vertically:

Split cell values into rows vertically in Excel


Split cell values into rows vertically by a Formula (Excel 365)

If you have Excel 365, you can use the TEXTSPLIT, TEXTJOIN, and TRANSPOSE functions to convert cell values vertically without manual effort.

Please copy and paste the following formula into a blank cell, and press "Enter" key, Excel will automatically spill the data into multiple rows, see screenshot:

=TRANSPOSE(TEXTSPLIT(TEXTJOIN(";", TRUE, A1:A4), ";"))
📝 Note: You can modify the delimiter (;) in the formula to match your data.

 split cells vertically with a formula

🔍 Explanation of this formula:
  1. TEXTJOIN(";", TRUE, A1:A4 ): Joins the text in cells A1 to A4 into a single string, separated by semicolons (;).
  2. TEXTSPLIT(...): Splits the combined string back into separate values using the semicolon as the delimiter.
  3. TRANSPOSE(...): Converts the resulting vertical list of values into a horizontal row (or vice versa, depending on the original orientation).
Pros & Cons:

Pros:

  • ✔ Dynamic Updates: If the source data changes, the formula automatically updates the results.
  • ✔No Manual Effort: Eliminates the need for repetitive manual splitting.
  • ✔Customizable Delimiters: Replace the semicolon (;) with any delimiter (e.g., comma, space) to suit your data.

Cons:

  • ✘ Only available in Excel 365 , does not work in older Excel versions.

Split cell values into rows vertically by Kutools for Excel

If you use Excel 2019 or earlier, you can use "Kutools for Excel" – a powerful add-in with specialized tools to transform and manage data easily. With its "Split Data to Rows" feature, you can seamlessly convert cell values vertically based on any delimiter you need.

Kutools for Excel offers over 300 advanced features to streamline complex tasks, boosting creativity and efficiency. Itegarate with AI capabilities, Kutools automates tasks with precision, making data management effortless. Detailed information of Kutools for Excel...         Free trial...

After installing "Kutools for Excel", please do as this:

  1. Click "Kutools" > "Merge & Split" > "Split Data to Rows", see screenshot:
     Click Kutools > Merge & Split > Split Data to Rows
  2. In the "Split Data to Rows" dialog box, specify the following operations:
    • Select the cells that you want to split;
    • In the "Delimiter" section, select the delimiter to define how the cell content should be split. Here, I will select "semicolon".
    • Finally, click "OK" button.
       specify the options in the dialog box

Result: The data will be converted into a vertical column.
 split cells vertically with kutools

📝 Note: This method splits the data directly in the source area, so it is advisable to copy and back up the original data before using it.
Pros & Cons:

Pros:

  • ✔ Works in all Excel versions (2010, 2013, 2016, 2019, 2021, 365)
  • ✔No need for complex formulas or coding.
  • ✔Supports a wide range of delimiters.
  • ✔Kutools offers over 300 tools for data manipulation, saving time on other tasks.

Cons:

  • ✘ Requires Kutools installation

Split cell values into rows vertically by VBA code

For advanced users, VBA provides a robust solution to automate the vertical splitting of cell values. The VBA code below enables you to effortlessly split cell contents into rows using any custom separator.

1. Hold down the "ALT" + "F11" keys to open the "Microsoft Visual Basic for Applications" window.

2. Click "Insert" > "Module", and paste the following code in the "Module" Window.

VBA code: Split cell values into rows vertically by specific separator

Sub splitvertically()
'updatebyExtendoffice
    Dim xRg As Range
    Dim xOutRg As Range
    Dim xCell As Range
    Dim xTxt As String
    Dim xStr As String
    Dim xOutArr As Variant
    On Error Resume Next
    xTxt = ActiveWindow.RangeSelection.Address
    Set xRg = Application.InputBox("please select the data range:", "Kutools for Excel", xTxt, , , , , 8)
    If xRg Is Nothing Then Exit Sub
    Set xOutRg = Application.InputBox("please select output cell:", "Kutools for Excel", , , , , , 8)
    If xOutRg Is Nothing Then Exit Sub
    For Each xCell In xRg
        If xStr = "" Then
            xStr = xCell.Value
        Else
            xStr = xStr & ";" & xCell.Value
        End If
    Next
    xOutArr = VBA.Split(xStr, ";")
    xOutRg.Range("A1").Resize(UBound(xOutArr) + 1, 1) = Application.WorksheetFunction.Transpose(xOutArr)
End Sub

3. Then press "F5" key to run this code, and a prompt box will pop out to remind you select the cell values that you want to split vertically, see screenshot:
 vba to select the data range

4. And then click "OK" button, another box will pop out to remind you select a cell to put the result, see screenshot:
 vba to select the output range

5. Click "OK" button, and the cell values have been split into a list by a separator, see screenshot:
 vba to split the cells vertically

📝 Note: In the above code, you can change the semicolon ; to any other delimiters that you need.
Pros & Cons:

Pros:

  • ✔Automates the process, saving time
  • ✔Works in all Excel versions
  • ✔Can be customized for different delimiters

Cons:

  • ✘ Requires basic knowledge of VBA programming
  • ✘ Slightly complex for beginners

Converting cell values vertically in Excel can be achieved through multiple methods, each with its own strengths. By understanding these methods, you can choose the best approach for your specific needs and optimize your workflow in Excel. Whether you’re a beginner or an advanced user, these tools and techniques will help you handle data more effectively and efficiently. If you're interested in exploring more Excel tips and tricks, our website offers thousands of tutorials to help you master Excel.

Best Office Productivity Tools

🤖 Kutools AI Aide: Revolutionize data analysis based on: Intelligent Execution   |  Generate Code  |  Create Custom Formulas  |  Analyze Data and Generate Charts  |  Invoke Kutools Functions
Popular Features: Find, Highlight or Identify Duplicates   |  Delete Blank Rows   |  Combine Columns or Cells without Losing Data   |   Round without Formula ...
Super Lookup: Multiple Criteria VLookup    Multiple Value VLookup  |   VLookup Across Multiple Sheets   |   Fuzzy Lookup ....
Advanced Drop-down List: Quickly Create Drop Down List   |  Dependent Drop Down List   |  Multi-select Drop Down List ....
Column Manager: Add a Specific Number of Columns  |  Move Columns  |  Toggle Visibility Status of Hidden Columns  |  Compare Ranges & Columns ...
Featured Features: Grid Focus   |  Design View   |   Big Formula Bar    Workbook & Sheet Manager   |  Resource Library (Auto Text)   |  Date Picker   |  Combine Worksheets   |  Encrypt/Decrypt Cells    Send Emails by List   |  Super Filter   |   Special Filter (filter bold/italic/strikethrough...) ...
Top 15 Toolsets12 Text Tools (Add Text, Remove Characters, ...)   |   50+ Chart Types (Gantt Chart, ...)   |   40+ Practical Formulas (Calculate age based on birthday, ...)   |   19 Insertion Tools (Insert QR Code, Insert Picture from Path, ...)   |   12 Conversion Tools (Numbers to Words, Currency Conversion, ...)   |   7 Merge & Split Tools (Advanced Combine Rows, Split Cells, ...)   |   ... and more
Use Kutools in your preferred language – supports English, Spanish, German, French, Chinese, and 40+ others!

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!