How To Extract Text Before/After Space Or Comma Only In Excel? (2024)

How to extract text before/after space or comma only in Excel?

When you want to extract the text before or after the space from the list as shown as below, do you have a good way to get it done? Let me tell you some trick ways to extract text before or after space only in Excel.

  • Extract text before or after space or comma with formula
  • Extract text before or after space or comma with Kutools for Excel
  • Extract text before space or after space or any other separators

Extract text before or after space with formula in Excel

You can quickly extract the text before space from the list only by using formula.

Select a blank cell, and type this formula =LEFT(A1,(FIND(" ",A1,1)-1)) (A1 is the first cell of the list you want to extract text) , and press Enter button.
How To Extract Text Before/After Space Or Comma Only In Excel? (1)

Tips:
(1) If you want to extract text before or after comma, you can change " " to ",".
(2) If you want to extract the text after space only, use this formula =MID(A1,FIND(" ",A1)+1,256).
(3) This method extracts text by the first space in specified cells. If more than one spaces exist in the cell, for example the "Katty J James", the formula =MID(A1,FIND(" ",A1)+1,256) will extract all characters after the first space.

How To Extract Text Before/After Space Or Comma Only In Excel? (2)Formula is too complicated to remember? Save the formula as an Auto Text entry for reusing with only one click in future!
Read more… Free trial

Extract numbers (or text) only from one cell/column into different columns/rows

Kutools for Excel enhances its Split Cells utility and supports to batch extract all text characters or numbers from one cell/column into two columns/rows.

Get a 30-day full-featured free trial now!


How To Extract Text Before/After Space Or Comma Only In Excel? (3)

Kutools for Excel - Supercharge Excel with over 300 essential tools. Enjoy a full-featured 30-day FREE trial with no credit card required! Get It Now

Extract text before or after space with Kutools for Excel

If you have installed Kutools for Excel, you can use its Extract Text utility to quickly extract text before or after space only from a list.

Kutools for Excel - Packed with over 300 essential tools for Excel. Enjoy a full-featured 30-day FREE trial with no credit card required! Download now!

1. Select the list and click Kutools > Text > Extract Text. See screenshot:

2. In the pop-up dialog, type * and a space into the Text box, click Add button, only check this new added rule in the Extract list section, and click the Ok button.
Tip: If you want to extract text after space only, type a space and follow * into the Text box in this step.

3. In another popping dialog, please specify the first cell address of destination range you will output extracted data, and click OK button. Till now, you can see the texts before space have been extracted only.
How To Extract Text Before/After Space Or Comma Only In Excel? (5) How To Extract Text Before/After Space Or Comma Only In Excel? (6)
Note: If you want to extract text before or after comma, you can type *, or ,* into the Text box.

Extract text before space and after space/comma separately at the same time

Kutools for Excel supports another utility of Split Cell utility to help us extract both text before space/comma and text after space/comma, and output them into different cells. Please do as follows:

Kutools for Excel - Packed with over 300 essential tools for Excel. Enjoy a full-featured 30-day FREE trial with no credit card required! Download now!

1. Select the list of text strings that you will extract from, and click the Kutools > Text > Split Cells.

2. In the opening Split Cells dialog box, specify the split type in the Type section, check one split separator in the Split by section, and click the Ok button. See screenshot above:
In our case, we check the Split to Columns option and Space option, and click the Ok button. And now the list of text string is split to column or rows based on space. See screenshot below:
How To Extract Text Before/After Space Or Comma Only In Excel? (8)
Note: If you need to extract text before or after comma, please check the Other option in the first Split Cells dialog box, and type the comma "," into below box.

Demo: Extract text before or after space,comma or other delimiters by Kutools for Excel


Kutools for Excel: Over 300 handy tools at your fingertips! Start your 30-day free trial with no feature limitations today. Download Now!

Relative Articles:

Split text by space/comma/delimiter in Excel

Extract first / last / nth word from text string in Excel

Extract text between commas/brackets/parentheses in 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 | ...
Featured Features: Grid Focus |Design View | Big Formula Bar ||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 Toolsets: 12 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, ...) | (Advanced Combine Rows, Split Cells, ...) | ... and more

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...

How To Extract Text Before/After Space Or Comma Only In Excel? (9)

Read More... Free Download...

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!

Read More... Free Download...

Sort comments by

Oldest First

Newest First

Comments (32)

No ratings yet. Be the first to rate!

el

#42478

This comment was minimized by the moderator on the site

thanks a lot

Reply

NANDAKUMAR

#41078

This comment was minimized by the moderator on the site

hello olivia john
hello olivia john david
hello olivia john robert more

Excel contains the data we need, but I'd like a value of end to appear before words like as.

john
david
more
Please provide any formula's clarification.

Reply

Sunny NANDAKUMAR

#41196

This comment was minimized by the moderator on the site

Hi, Nandakumar, I do not understand you problem. Do you want to extract the end word from each string or like to add the end value of the front cell before words in next cell?

NANDAKUMAR

#41077

This comment was minimized by the moderator on the site

hello olivia john
hello olivia john david
hello olivia john robert more

Excel contains the data we need, but I'd like a value of end to appear before words like as.

hello olivia john john
hello olivia john david david
hello olivia john robert more more

Please provide any formula's clarification.

Reply

Hansa

#39135

This comment was minimized by the moderator on the site

https://www.extendoffice.com/documents/excel/1623-excel-extract-text-before-space.html

Reply

chris

#38001

This comment was minimized by the moderator on the site

Tried your example, I needed to read from cell D2 and read something before a space

=LEFT(D2,(FIND(" ","D2",1)-1))

and got: #VALUE!

Reply

- chris

#43955

This comment was minimized by the moderator on the site

Try with ";" instead of ","

Noha

#36106

This comment was minimized by the moderator on the site

What is the first "data" location for the sentence in row 6? ..Please answer me 🙏

Reply

matrix

#35462

This comment was minimized by the moderator on the site

Thank you!

Reply

DR

#35426

This comment was minimized by the moderator on the site

Muchas gracias

Reply

Aland

#32995

This comment was minimized by the moderator on the site

Hello, thanks for this article, but is there a way for a mid function to work on the second space?

Reply

kellytte Aland

#32996

This comment was minimized by the moderator on the site

Hi Aland,
For example there is a sentence in the cell B3, you can extract the text after the second space from this cell with formula =MID(B3,FIND(" ",B3,FIND(" ",B3)+1),256)

View Attachments(1 / 5)

Reply

Report

Mehar singh bisht

#31198

This comment was minimized by the moderator on the site

Mehar Kusum Manav Maa Singh Bisht

what is formula for separate above words...

Reply

kellytte Mehar singh bisht

#31199

This comment was minimized by the moderator on the site

Hi Mehar singh bisht,
Do you mean split “Mehar Kusum Manav Maa Singh Bisht”, and place every word in a separate cell? You can select the cell containing the content, and click Data > Split to Column (set the delimiter as space) to split it.

Reply

Report

There are no comments posted here yet

Load More

Please leave your comments in English

Posting as Guest

How To Extract Text Before/After Space Or Comma Only In Excel? (2024)
Top Articles
Latest Posts
Article information

Author: Allyn Kozey

Last Updated:

Views: 6166

Rating: 4.2 / 5 (63 voted)

Reviews: 86% of readers found this page helpful

Author information

Name: Allyn Kozey

Birthday: 1993-12-21

Address: Suite 454 40343 Larson Union, Port Melia, TX 16164

Phone: +2456904400762

Job: Investor Administrator

Hobby: Sketching, Puzzles, Pet, Mountaineering, Skydiving, Dowsing, Sports

Introduction: My name is Allyn Kozey, I am a outstanding, colorful, adventurous, encouraging, zealous, tender, helpful person who loves writing and wants to share my knowledge and understanding with you.