+ Reply to Thread
Results 1 to 3 of 3

Split a sentence with numbers into different columns

  1. #1
    Registered User
    Join Date
    08-24-2016
    Location
    glasgow
    MS-Off Ver
    2007
    Posts
    9

    Split a sentence with numbers into different columns

    Hi everyone. I am new on this forum. I need some help on spliting sentences with numbers into different columns. Sentences vary in length. I need a formula that I can drag down.
    The sentences look something like this:

    The user with id '77073' viewed the section number '19' of the course with id '8914'.

    I want each word and number to be in a separate column


    I know how to split text into different columns but it is obviously not working for the sentences with numbers.

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: Split a sentence with numbers into different columns

    You seem to have marked this as "solved", without any explanation or comment. So... Just it case it's not actually solved, here are three possible solutions based around this formula:

    =TRIM(MID(SUBSTITUTE(" "&$A1," ",REPT(" ",125)),125*COLUMNS($A:A),125))

    assumes data in a1, copied across as far as needed. This will return the numbers exactly as shown:L '77073'. I have also provided two variants, one which returns them as text that look like numbers i.e. 77073 or as real numbers that can be added, subtracted, etc. Take your pick...
    Attached Files Attached Files
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU

  3. #3
    Registered User
    Join Date
    08-24-2016
    Location
    glasgow
    MS-Off Ver
    2007
    Posts
    9

    Re: Split a sentence with numbers into different columns

    Thanks Glenn- This is very helpful. I used text to columns option and somehow it worked (just trying different options). Thanks a lot for your help...

+ 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] Split sentence by specific position not character
    By YasserKhalil in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 03-02-2017, 01:00 PM
  2. Split up a sentence in parts, without spliting up words.
    By Dubrock in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-23-2016, 07:31 AM
  3. split the sentence in to four parts
    By saravanan1981 in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 11-22-2015, 04:56 AM
  4. Replies: 4
    Last Post: 11-11-2015, 03:00 PM
  5. [SOLVED] Split Text & Numbers into three columns
    By SamCV in forum Excel General
    Replies: 5
    Last Post: 02-26-2014, 07:04 PM
  6. [SOLVED] Split numbers/text into columns issue
    By dvolg in forum Excel General
    Replies: 2
    Last Post: 04-10-2012, 09:08 AM
  7. Is there a way to split a set of numbers into different columns
    By wgwg123 in forum Excel - New Users/Basics
    Replies: 4
    Last Post: 04-09-2011, 03:59 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