Tip: Other languages are Google-Translated. You can visit the English version of this link.
Log in
x
or
x
x
Register
x

or

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 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. Full Feature Free Trial 30-day!
ad split cell separate text numbers

Office Tab Enable Tabbed Editing and Browsing in Office, and Make Your Work Much Easier...
Kutools for Excel Solves Most of Your Problems, and Increases Your Productivity by 80%
  • Reuse Anything: Add the most used or complex formulas, charts and anything else to your favorites, and quickly reuse them in the future.
  • More than 20 text features: Extract Number from Text String; Extract or Remove Part of Texts; Convert Numbers and Currencies to English Words...
  • Merge Tools: Multiple Workbooks and Sheets into One; Merge Multiple Cells/Rows/Columns Without Losing Data; Merge Duplicate Rows and Sum...
  • Split Tools: Split Data into Multiple Sheets Based on Value; One Workbook to Multiple Excel, PDF or CSV Files; One Column to Multiple Columns...
  • Paste Skipping Hidden/Filtered Rows; Count And Sum by Background Color; Create Mailing List and Send Emails by Cell's Value...
  • Super Filter: Create advanced filter schemes and apply to any sheets; Sort by week, day, frequency and more; Filter by bold, formulas, comment...
  • More than 300 powerful features; Works with Office 2007-2019 and 365; Supports all languages; Easy deploying in your enterprise or organization.

arrow blue right bubble 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.

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.

note ribbon 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

arrow blue right bubble 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.

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.
     
Note: If you want to extract text before or after comma, you can type *, or ,* into the Text box.

Kutools for Excel - Includes more than 300 handy tools for Excel. Full feature free trial 30-day, no credit card required! Get It Now


arrow blue right bubble 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:

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:

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.


arrow blue right bubbleDemo: Extract text before or after space,comma or other delimiters by Kutools for Excel

In this Video, Kutools and Kutools Plus tabs are added by Kutools for Excel. If need it, please click for 30-day free trial without limitation!

arrow blue right bubbleRelative Articles:


Kutools for Excel Solves Most of Your Problems, and Increases Your Productivity by 80%

  • Reuse: Quickly insert complex formulas, charts and anything that you have used before; Encrypt Cells with password; Create Mailing List and send emails...
  • Super Formula Bar (easily edit multiple lines of text and formula); Reading Layout (easily read and edit large numbers of cells); Paste to Filtered Range...
  • Merge Cells/Rows/Columns without losing Data; Split Cells Content; Combine Duplicate Rows/Columns... Prevent Duplicate Cells; Compare Ranges...
  • Select Duplicate or Unique Rows; Select Blank Rows (all cells are empty); Super Find and Fuzzy Find in Many Workbooks; Random Select...
  • Exact Copy Multiple Cells without changing formula reference; Auto Create References to Multiple Sheets; Insert Bullets, Check Boxes and more...
  • Extract Text, Add Text, Remove by Position, Remove Space; Create and Print Paging Subtotals; Convert Between Cells Content and Comments...
  • Super Filter (save and apply filter schemes to other sheets); Advanced Sort by month/week/day, frequency and more; Special Filter by bold, italic...
  • Combine Workbooks and WorkSheets; Merge Tables based on key columns; Split Data into Multiple Sheets; Batch Convert xls, xlsx and PDF...
  • More than 300 powerful features. Supports Office/Excel 2007-2019 and 365. Supports all languages. Easy deploying in your enterprise or organization. Full features 30-day free trial.
kte tab 201905

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!
officetab bottom
Say something here...
symbols left.
You are guest ( Sign Up? )
or post as a guest, but your post won't be published automatically.
Loading comment... The comment will be refreshed after 00:00.
  • To post as a guest, your comment is unpublished.
    Abbas Aziz · 7 months ago
    If i buy a licence then for how many days will it be valid for me?
    • To post as a guest, your comment is unpublished.
      kellytte · 6 months ago
      Hi Abbas Aziz,
      For license issues, please contact support@extendoffice.com
  • To post as a guest, your comment is unpublished.
    Atul · 2 years ago
    Hi,

    I want to know the formula which can give me the text after few characters. how to retrive that?

    can someone help with this

    Regards/-
    atul
    • To post as a guest, your comment is unpublished.
      Mahwish · 2 years ago
      Dear Atul,

      If u need exactly after certain character, (say 20 words incl space). You can go for DATA tab, Then select the column you want changes... then go to TEXT TO COLUMNS ribbon. After that a dialogue box will open and u can see Fixed width, Select it. Click next, then u will see 10, 20, 30..., click on 20 (or how many words u need after), then next. FINISH.

      CAUTION: Insert some blank columns after the required column to avoid any data loss
  • To post as a guest, your comment is unpublished.
    Tim · 2 years ago
    Hello,
    Perhaps you can help me?
    I like your information above, but as usual I have a different split column issue.
    So... I'm looking for a way to split a cell of text into to. The split must not come more that 30 characters (Including spaces) from the left but must be at a space or the immediate previous space to the 30th character point.

    So if the cell contained: "EMERGENCY MU/INITIAL FILL TO CONDENSER CTRL VAL"
    The 30th Character is the "C" of Condenser so the cell will split between "TO" and "Condenser"
    How do I write this code please?
    Many thanks for your help,
    Tim
  • To post as a guest, your comment is unpublished.
    Pappu Singh · 3 years ago
    SNJAI21470,,499,PO15135,8907617138985,Manuf

    How to extract third comma seprate value in other cell
  • To post as a guest, your comment is unpublished.
    Chad · 3 years ago
    Thank you so much!! so helpful!
  • To post as a guest, your comment is unpublished.
    Linda · 3 years ago
    I'm wanting to create a unique order number/side mark using text from different cells:

    EXAMPLE:

    Account: AB
    Contractor: Buffalo Run
    Address: 11453 Main St.

    In this example lets say everything before the colons are the column name and to the right of the colon is the data within the column. The unique ID/sidemark I want to create is using these cells. so the result is: [b]ABBR11453[/b], the break down of this ID:

    [b]AB [/b]= extracted from Cell 1 (Accounts)
    [b]BR [/b]= extracted from Cell 2 (Contractor), 1st letter of the first 2 words in this cell i.e. B for Buffalo and R for Run
    [b]11453 [/b]= extracted from Cell 3, only the numbers in the address

    I've watched tutorials and using the CONCATENATE, LEFT, MID and other functions and I'm not quite getting it. Can you PLEASE HELP!
  • To post as a guest, your comment is unpublished.
    Gus · 3 years ago
    I want to thank you, It took me over 3- 4 hours looking into different websites, help instructions and formula list, and finally you have the answer I needed. =LEFT(A1,(FIND(" ",A1,1)-1)) As quickbooks merged the part numbers with the descriptions in most of the inventory reports, I needed to build a report with vlookups and other formulas to get the inventory to show in days of stock but I was not able to extract the part number from the reports until I found your formula. Advertise it as a work around in Quickbooks reports and your website will be more popular.

    Cheers.
  • To post as a guest, your comment is unpublished.
    Trae · 3 years ago
    This was very helpful...!!!!
  • To post as a guest, your comment is unpublished.
    Starla Harrington · 4 years ago
    Hi,

    I am having trouble finding the formula for the following example I want to make a new column and have only the last name no first, middle initial, comma, or MD:

    John P. Smith, MD

    Thanks, Starla H.
  • To post as a guest, your comment is unpublished.
    Desiree · 4 years ago
    what is the purpose of the 256 at the end of the formula in the first example?
  • To post as a guest, your comment is unpublished.
    Desiree · 4 years ago
    In the first example about extracting the text after space only with the formula =MID(A1,FIND(" ",A1)+1,256). What is the purpose of the 256 in the formula?
  • To post as a guest, your comment is unpublished.
    Johann · 4 years ago
    Hello
    How can I extract text after first space to next space ?
    thank you
  • To post as a guest, your comment is unpublished.
    Sekhar · 4 years ago
    Try Trim(A1) or Clean(A1) where A1 is the cell you want to clean
  • To post as a guest, your comment is unpublished.
    Sekhar · 4 years ago
    try Trim(A1) or clean(A1)
    where A1 is the cell you want to clean spaces from
  • To post as a guest, your comment is unpublished.
    Vikram Jangir · 4 years ago
    Hi Sir
    Good Evening

    I want to know informatio about to remove space text after cell.
    kindly suggest me good formula about it.
    i have urgent need of this.

    Thanks,

    Vikram jangir