How to Extract Text After First Space in Excel (3 Suitable Ways)

This guide will use the sample dataset pictured below.

Sample Data


Method 1 – Merging MID Function With FIND Function to Extract Text After the First Space in Excel

Syntax of the FIND Function:

=FIND(find_text, within_text, [start_num])

Explanation of the Arguments:

  • Find_text is the specific character to find in a reference cell.
  • Within_text is the reference cell where the text character is located.
  • Start_num is the serial number of the specific character. If you enter “1, it will return the first specific character number. If you enter “2, it will return the second specific character.

Return Value:

The FIND function returns the character number of a specific character in a text.

Step 1: Select the Find_text Argument

  • Copy the following text as the find_text:
=FIND(" ",)

Suitable Ways to Extract Text After First Space in Excel

Step 2: Select the Within_text Argument

  • Click on cell B5 to select it as the within_text:
=FIND(" ",B5)

Suitable Ways to Extract Text After First Space in Excel

Step 3: Type the Start_num Argument

  • To find the first space in cell B5, type “1” as the start_num argument with the following formula:
=FIND(" ",B5,1)

Suitable Ways to Extract Text After First Space in Excel

Step 4: Find the Space Character Number

  • Press Enter to see the space character number.

Suitable Ways to Extract Text After First Space in Excel

Step 5: Apply the MID Function

Syntax of the MID Function:

=MID(text, start_num, num_chars)

Explanation of the Arguments:

  • Text is the reference cell where the text character is located.
  • Start_num is the first character number from which it will return the value.
  • Num_chars is the last character number. It will return the result up to that character in the character number serial.

Return Value:

The MID function returns the cell value from Start_num to Num_chars character serial number.

  • For the text argument, select cell B5 and enter the following formula:
=MID(B5,FIND(" ",B5,1)

Suitable Ways to Extract Text After First Space in Excel

  • For the start_num argument, enter the value returned from the FIND function from Step 4.
=MID(B5,FIND(" ",B5,1)

Suitable Ways to Extract Text After First Space in Excel

  • Enter the num_chars argument as “20” with the following formula:
=MID(B5,FIND(" ",B5,1),20)

Suitable Ways to Extract Text After First Space in Excel

Step 6: Results

  • Press Enter to see the result with the extracted value.

Suitable Ways to Extract Text After First Space in Excel

  • Use the AutoFill tool to apply the same formula to the required blank cells.

Suitable Ways to Extract Text After First Space in Excel

Read More: How to Extract Text Before Character in Excel


Method 2 – Combining RIGHT, LEN, and FIND Functions to Extract Text After the First Space in Excel

Step 1: Apply the FIND Function

  • Enter the FIND function with the following formula:
=FIND(" ",B5,1)

Suitable Ways to Extract Text After First Space in Excel

Step 2: Insert the LEN Function

Syntax of the LEN Function:

=LEN(text)

Explanation of the Arguments:

  • Text is the reference text value.

Return Value:

The LEN function returns the character number of a specific text.

  • To find the difference in character numbers from the right side, type the following formula:
=LEN(B5)-FIND(" ",B5,1)

Suitable Ways to Extract Text After First Space in Excel

  • You should see 13 returned as the result.

Suitable Ways to Extract Text After First Space in Excel

Step 3: Insert the RIGHT Function

Syntax of the RIGHT Function:

=RIGHT(text,[num_chars])

Explanation of the Arguments:

  • Text is the reference text value.
  • Num_chars is the number of a specific character from the right side.

Return Value:

The RIGHT function returns the text for a specific character number from the right side.

  • To select B5 as the text argument, type the following formula:
=RIGHT(B5,LEN(B5)-FIND(" ",B5,1))

Suitable Ways to Extract Text After First Space in Excel

  • To select the num_chars argument, insert the return value of the LEN function from Step 2 with the following formula:
=RIGHT(B5,LEN(B5)-FIND(" ",B5,1))

Suitable Ways to Extract Text After First Space in Excel

Step 4: Results

  • Press Enter to see the first extracted value after space.

Sample Data

  • Use the AutoFill tool to get all the extracted values.

Sample Data

Read More: How to Extract Text after a Specific Text in Excel


Method 3 – Running a VBA Code to Extract Text After the First Space in Excel

Step 1: Create a Module

  • Press Alt+F11 to open the VBA Macro.
  • Click on the Insert tab.
  • Select the Module option.

Sample Data

Step 2: Write a VBA Code

  • Copy and paste the following VBA code:
Sub VBA_to_extract_text()
'Declare variable
Dim Selection_Rng As Range
Dim cell_Value As Range
'Define Selection range to get from selection
Set Selection_Rng = Application.Selection
'Apply for loop
For Each cell_Value In Selection_Rng
'Formula to extract text after space
cell_Value.Offset(0, 1).Value = Right(cell_Value, Len(cell_Value) - InStr(cell_Value, " "))
Next cell_Value
End Sub

Sample Data

Step 3: Select the Cells

  • Select the cells in the range.

Sample Data

Step 4: Run the Program

  • Click on Save
  • Click on the Play icon or press F5.

Sample Data

Step 5: Final Results

  • All the values will be extracted at once, as shown in the image below.

Sample Data


Similar Readings


Download Practice Workbook

Download this practice workbook to exercise while reading this article.


Related Readings


<< Go Back to Extract Text in Excel | String Manipulation | Learn Excel

Get FREE Advanced Excel Exercises with Solutions!
Bhubon Costa
Bhubon Costa

Bhubon Costa, B.Sc. in Naval Architecture & Marine Engineering from Bangladesh University of Engineering & Technology, has worked with the ExcelDemy since 2021. Currently, he has been working as a reviewer. Notably, he has written over 90 articles and led several VBA content development teams. He has a great passion for the fields of data analytics and data science. His areas of expertise include Excel VBA, Power Query, Pivot Table, Power BI, MySQL, PostgreSQL, machine learning, and Python... Read Full Bio

We will be happy to hear your thoughts

Leave a reply

Advanced Excel Exercises with Solutions PDF

 

 

ExcelDemy
Logo