+ Reply to Thread
Results 1 to 7 of 7

Split sentences at fullstops

  1. #1
    Forum Contributor
    Join Date
    12-26-2015
    Location
    UAE
    MS-Off Ver
    2013
    Posts
    120

    Split sentences at fullstops

    Dear All,
    I am using Excel 2013 and need a formula or a UDF to split long sentences at fullstops (period).

    A sample data is attached herewith to show the problem in Col A and the expected result in Col B.

    Any help would be greatly appreciated.

    TIA
    Rehana
    Attached Files Attached Files
    Last edited by rehana402003; 07-14-2020 at 09:34 AM.

  2. #2
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,038

    Re: Split sentences at fullstops

    Hi rehana,

    Here is an answer in C1 and pull it down.
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    See it in the attached: Split data at fullstops Answer.xlsx
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  3. #3
    Forum Contributor
    Join Date
    12-26-2015
    Location
    UAE
    MS-Off Ver
    2013
    Posts
    120

    Re: Split sentences at fullstops

    Dear Marvin,
    Thanks for the formula.
    But it does not work for other cells.
    See the attached sample please.
    Can it work for any data in Column A?
    Attached Files Attached Files

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Ipswich, Suffolk (England), but grew up in Sawley, Derbyshire
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2211 (Windows 11 22H2 64-bit)
    Posts
    65,402

    Re: Split sentences at fullstops

    I'm a huge fan of PowerQuery.

    M Code:

    Please Login or Register  to view this content.
    Attached Files Attached Files
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" to anyone who has offered you help in your thread. You can reward them by clicking on * Add Reputation below theur user name on the left, if you wish.


    Forum Rules (updated September 2018): please read them here.
    How to use the Power Query code you've been given: help here. More about the Power suite here.

  5. #5
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,174

    Re: Split sentences at fullstops

    You would need to modify MarvinP's formula to reference the row were the text being split is.

    B1: =TRIM(MID(SUBSTITUTE($A$1,".",REPT(" ",1000)),(ROW()-ROW($A$1))*1000+1,1000))&"."

    B7: =TRIM(MID(SUBSTITUTE($A$7,".",REPT(" ",1000)),(ROW()-ROW($A$7))*1000+1,1000))&"."

    B11: =TRIM(MID(SUBSTITUTE($A$11,".",REPT(" ",1000)),(ROW()-ROW($A$11))*1000+1,1000))&"."
    Cheers
    Andy
    www.andypope.info

  6. #6
    Forum Contributor
    Join Date
    12-26-2015
    Location
    UAE
    MS-Off Ver
    2013
    Posts
    120

    Re: Split sentences at fullstops

    Dear Ali
    Thanks for the code. But I got the formula to work from Andy Pope.

  7. #7
    Forum Contributor
    Join Date
    12-26-2015
    Location
    UAE
    MS-Off Ver
    2013
    Posts
    120

    Re: Split sentences at fullstops

    Dear Andy
    Thanks for the modified formula.
    Works great

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] How to put a text before and after sentences
    By lamdathoa in forum Excel General
    Replies: 2
    Last Post: 05-04-2020, 05:57 AM
  2. [SOLVED] Split sentences into different columns using formulas
    By fantasylo in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-21-2017, 10:47 AM
  3. Find a requested word within sentences and output those sentences elsewhere
    By swfred2000 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-19-2014, 02:24 PM
  4. [SOLVED] Fractions in sentences
    By blacky1 in forum Excel General
    Replies: 2
    Last Post: 04-26-2012, 02:52 AM
  5. gaps between first and second sentences
    By darek in forum Word Formatting & General
    Replies: 4
    Last Post: 04-29-2011, 08:55 PM
  6. Split sentences into words
    By sparx in forum Excel General
    Replies: 5
    Last Post: 02-22-2006, 03:51 PM
  7. I need to put 4-5 sentences into one cell.
    By tysonfoggie in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-18-2005, 10:06 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1