How to Split One Column into Multiple Columns using an Excel Formula – 4 Examples

This is an overview.

How to Split One Column into Multiple Columns in Excel Formula

 


Example 1 – Using the LEFT and the RIGHT Functions to Split One Column into Multiple Columns in Excel

This is the sample dataset. .

Excel Formula with LEFT & RIGHT Functions to Split One Column into Multiple Columns

Steps:

  • Select C5.
  • Enter the formula:
=LEFT(B5,SEARCH(" ",B5)-1)

Excel Formula with LEFT & RIGHT Functions to Split One Column into Multiple Columns

Formula Breakdown

SEARCH(” “,B5)

searches for the space and returns its position.

LEFT(B5,SEARCH(” “,B5)-1)

extracts values to the left.

  • Press ENTER.
  • Drag down the Fill Handle to see the result in the rest of the cells.

Excel Formula with LEFT & RIGHT Functions to Split One Column into Multiple Columns

  • Select D5.
  • Enter the formula:
=RIGHT(B5,LEN(B5)-SEARCH(" ",B5))

LEFT and RIGHT Functions

  • Press ENTER.
  • Drag down the Fill Handle to see the result in the rest of the cells.

LEFT and RIGHT Functions

Formula Breakdown

SEARCH(” “,B5)

returns the position of the space.

LEN(B5)

returns the total number of characters.

RIGHT(B5,LEN(B5)-SEARCH(” “,B5))

returns the last name.

Read More: How to Split Column by First Space in Excel


Example 2 – Combining the INDEX and the ROW Functions to Split One Column into Multiple Columns in Excel

This is the sample dataset.

INDEX-ROW Formula to Split One Column into Multiple Columns in Excel

Steps:

  • Select D5.
  • Enter the formula:
=INDEX($B$5:$B$14,ROWS(D$5:D5)*2-1)

INDEX-ROW Formula to Split One Column into Multiple Columns in Excel

  • Press ENTER.
  • Drag down the Fill Handle to see the result in the rest of the cells.

INDEX-ROW Formula to Split One Column into Multiple Columns in Excel

Formula Breakdown

ROWS(D$5:D5)*2-1

returns the row number.

INDEX($B$5:$B$14,ROWS(D$5:D5)*2-1)

returns the value in $B$5:$B$14.

  • Select E5.
  • Enter the formula:
=INDEX($B$5:$B$14,ROWS(E$5:E5)*2)

INDEX ROW Formula

  • Press ENTER.
  • Drag down the Fill Handle to see the result in the rest of the cells.

INDEX ROW Functions

Formula Breakdown

ROWS(E$5:E5)*2

returns the row number.

INDEX($B$5:$B$14,ROWS(E$5:E5)*2)

returns the value in $B$5:$B$14.

Read More: Split Date and Time Column in Excel


Example 3 – Using the LEFT, MID and RIGHT Functions to Split One Column into Multiple Columns in Excel

In the dataset below, split the sold items column into three columns (CODE, SERIES, NUMBER).

Excel Formula with the Combination of LEFT, MID & RIGHT Functions

STEPS:

  • Select C5.
  • Enter the formula:
=LEFT(B5,3)

Excel Formula with the Combination of LEFT, MID & RIGHT Functions

  • Press ENTER.
  • Drag down the Fill Handle to see the result in the rest of the cells.

Excel Formula with the Combination of LEFT, MID & RIGHT Functions

  • Select D5.
  • Enter the formula:
=MID(B5,4,1)

Excel Formula with the Combination of LEFT, MID & RIGHT Functions

  • Press ENTER.
  • Drag down the Fill Handle to see the result in the rest of the cells.

LEFT, MID, RIGHT Functions

  • Select E5.
  • Use the formula:
=RIGHT(B5,3)

LEFT,MID, RIGHT Functions

  • Press ENTER.
  • Drag down the Fill Handle to see the result in the rest of the cells.

LEFT, MID and RIGHT Functions


Example 4 – Applying the IF Function to Split a column into Multiple Columns Based on a Value

In the dataset below, split the AMOUNT column into two columns: CASH and CARD.

Excel IF Formula to Split One Column into Multiple Columns

Steps:

  • Select C5.
  • Enter the formula:
=IF(C5="Cash",D5,"N/A")

Excel IF Formula to Split One Column into Multiple Columns

The formula returns the AMOUNT paid Cash in E5. Otherwise, it returns ‘N/A’.

  • Press ENTER.
  • Drag down the Fill Handle to see the result in the rest of the cells.

Excel IF Formula to Split One Column into Multiple Columns

  • Select F5.
  • Enter the formula:
=IF(C5="Card",D5,"N/A")

IF Function

The formula returns the AMOUNT paid by Card in F5. Otherwise, it returns ‘N/A’.

  • Press ENTER.
  • Drag down the Fill Handle to see the result in the rest of the cells.

IF Function output


Download Practice Workbook

Download the following workbook and exercise.


Related Articles

Get FREE Advanced Excel Exercises with Solutions!
Nuraida Kashmin
Nuraida Kashmin

Nuraida Kashmin, Bachelor's degree in Mechanical Engineering from Rajshahi University of Engineering & Technology. Since 2021, she wrote 45+ articles on Excel problems and reviewed over 1000 articles. Currently working as a Project Manager, she is responsible for developing and implementing content strategies, managing writers and editors, staying updated on new technology, analyzing data, and tracking content performance indicators. Her interests include Project Management, Creative Writing, Digital Marketing, Reporting, Monitoring & Documentation, and Online Advocacy for SAP &... Read Full Bio

We will be happy to hear your thoughts

Leave a reply

Advanced Excel Exercises with Solutions PDF

 

 

ExcelDemy
Logo