Smart Systems for Home

Plain how-to guides for smart home, security and home Wi-Fi

How to Divide a Row in Excel: Step-by-Step

· 6 min read · Home Tech

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

To divide a row in Excel, you don't literally split the row itself; instead you split the contents of cells in that row into multiple columns or rows. The most reliable method is to use Data > Text to Columns for delimited text, or use formulas such as TEXTSPLIT (Microsoft 365) or LEFT/FIND/MID for dynamic splitting. For dividing numeric values across cells, you use a formula like =A1/2 in a new row. This guide covers both interpretations, with clear steps for each.

What You'll Need

  • Microsoft Excel (desktop or web). Steps may differ slightly by version and platform.
  • Your data in a single row (or column) that you want to split.
  • For formulas: basic familiarity with cell references.
  • Optional: a blank column or row adjacent to your data to hold the split results.

Step-by-Step

Method 1: Split Text in a Row Using Text to Columns

  1. Select the row of cells you want to divide. For example, if your data is in A1:D1, select A1:D1.
  2. Go to the Data tab on the ribbon.
  3. Click Text to Columns. The Convert Text to Columns Wizard opens.
  4. Choose Delimited if your data is separated by a character such as a comma, space, or semicolon. Choose Fixed width if you want to split at specific character positions.
  5. Click Next.
  6. For Delimited: tick the delimiter that matches your data (e.g., Comma, Space, Semicolon). You can also specify a custom delimiter under Other. For Fixed width: drag the break lines in the preview to set where splits occur.
  7. Click Next.
  8. Optionally, set the data format for each column (General, Text, Date, etc.). This is useful if your split values include leading zeros or dates.
  9. Click Finish. Excel splits the selected cells into multiple columns, overwriting adjacent cells to the right. Ensure those cells are empty before you start.

Method 2: Split a Row into Multiple Rows (Unpivot or Power Query)

If you want to turn one row with multiple values into multiple rows (e.g., one row per item), use Power Query:

  1. Select your data range (including headers if any).
  2. Go to Data > From Table/Range. If prompted, confirm the range and whether it has headers.
  3. In the Power Query Editor, select the columns you want to unpivot. For a single row with multiple columns, select all value columns.
  4. Right-click the selected column headers and choose Unpivot Columns (or use Transform > Unpivot Columns).
  5. This converts the selected columns into two columns: Attribute (the original column name) and Value (the cell content). Each original column becomes a row.
  6. Optionally, rename the columns and filter as needed.
  7. Click Close & Load to load the result to a new worksheet.

Note: Power Query is available in Excel for Microsoft 365, Excel 2019, and Excel 2016 (as an add-in). Steps may differ slightly by version.

Method 3: Divide Numeric Values in a Row by a Constant

If you want to divide each number in a row by a specific number (e.g., convert units), use a formula:

  1. Click an empty cell where you want the first result.
  2. Type =A1/2 (replace A1 with your cell reference and 2 with your divisor).
  3. Press Enter. The result appears.
  4. Drag the fill handle (small square at the bottom-right of the cell) across the row to apply the formula to other cells. Alternatively, copy the formula and paste it into the other cells.
  5. If you want to replace the original values, copy the results, then use Paste Special > Values over the original cells, and delete the formula cells.

Method 4: Use TEXTSPLIT (Microsoft 365 only)

If you have a Microsoft 365 subscription, you can use the TEXTSPLIT function to split text into multiple cells dynamically:

  1. In an empty cell, type =TEXTSPLIT(A1, ",") (replace A1 with your cell reference and "," with your delimiter).
  2. Press Enter. The text splits into adjacent cells to the right.
  3. To split into rows instead of columns, add the row delimiter argument: =TEXTSPLIT(A1, , ",").

Note: TEXTSPLIT is not available in Excel 2019 or earlier. For older versions, use Text to Columns or formulas like LEFT, MID, FIND.

Common Mistakes

  • Overwriting adjacent data: Text to Columns overwrites cells to the right without warning. Always ensure those cells are empty or work on a copy.
  • Wrong delimiter: If your data uses a semicolon but you select comma, the split won't work. Check your data carefully.
  • Forgetting to format columns: Leading zeros or dates may be altered if you leave the format as General. Set the column format to Text or Date as needed.
  • Using TEXTSPLIT in older Excel: The function returns #NAME? error if not available. Use alternative methods.
  • Dividing by zero: In formulas, dividing by zero returns #DIV/0!. Ensure your divisor is not zero.
  • Not using absolute references: When dividing by a constant, use an absolute reference (e.g., =$B$1) if you plan to copy the formula.

Tips

  • Always make a backup copy of your worksheet before using Text to Columns, as it permanently changes your data.
  • Use Flash Fill (Ctrl+E) to quickly split data based on patterns. Type the desired result in the first cell, then press Ctrl+E to fill down.
  • For complex splits, consider using Power Query, which is non-destructive and can be refreshed.
  • When dividing numbers, you can use the Paste Special > Divide operation: copy the divisor, select the range, then Paste Special and choose Divide.
  • Use TRIM and CLEAN functions to remove extra spaces or non-printable characters before splitting.

Troubleshooting

  • Text to Columns splits incorrectly: Check the preview in the wizard. If the delimiter is not recognized, try a different delimiter or use Fixed width.
  • Data disappears after split: Undo (Ctrl+Z) immediately. Then ensure adjacent cells are empty and try again.
  • Formulas return errors: Check for #DIV/0! (division by zero), #VALUE! (non-numeric text), or #NAME? (function not recognized). Adjust accordingly.
  • TEXTSPLIT not working: Ensure you have Microsoft 365. If not, use Text to Columns or Power Query.
  • Power Query not available: In Excel 2016, Power Query may need to be enabled via File > Options > Add-ins. In Excel 2010/2013, download the Power Query add-in from Microsoft.
  • Split results in wrong cells: Text to Columns always writes to the right of the selected cells. If you need results elsewhere, copy them after splitting.

Frequently Asked Questions

Can I divide a row into multiple rows without Power Query?

Yes, you can manually copy and paste, or use formulas like INDEX and ROW to rearrange data, but Power Query is the most efficient method for large datasets.

What is the difference between Text to Columns and TEXTSPLIT?

Text to Columns is a one-time operation that overwrites cells, while TEXTSPLIT is a dynamic formula that spills results and updates automatically if the source changes.

How do I split a row by a specific character like a hyphen?

In Text to Columns, choose Delimited and tick Other, then type the hyphen in the box. In TEXTSPLIT, use the hyphen as the delimiter argument.

Can I divide a row into equal parts?

If you mean splitting text into equal-length chunks, use Fixed width in Text to Columns or a formula with MID and SEQUENCE. If you mean dividing numbers equally, use a formula like =A1/3.

Why does Text to Columns overwrite my data?

Text to Columns writes results to the right of the selected cells. To avoid overwriting, insert enough blank columns first or perform the operation on a copy.

Is there a way to split a row into columns using a formula in older Excel?

Yes, you can use a combination of LEFT, MID, FIND, and SUBSTITUTE functions, but it's more complex. For example, to extract text before a comma: =LEFT(A1, FIND(",", A1)-1).