+ Reply to Thread
Results 1 to 3 of 3

Extracting text between 6th and 7th spaces

  1. #1
    Forum Contributor
    Join Date
    04-21-2009
    Location
    England
    MS-Off Ver
    Excel 2016
    Posts
    710

    Extracting text between 6th and 7th spaces

    Hi I have a text string where i want to extract the text between the 6th and 7th spaces.

    The text will vary in lengths

    So for example in this sentence I would like to extract the word = "I" as it falls between the 6th and 7th space

    Can i use a formula?

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

    Re: Extracting text between 6th and 7th spaces

    Yes, but please give us a representative selection of data to work with first or just attach your workbook.
    Ali


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

    Forum Rules (updated August 2023): please read them here.

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

    Re: Extracting text between 6th and 7th spaces

    here's one way:

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

    assumes data in A1
    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.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

+ 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 do I delete spaces from the end of text
    By George in forum Excel General
    Replies: 5
    Last Post: 01-14-2015, 06:48 PM
  2. Getting Rid of spaces in Text within Cells
    By eguirocker3 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-14-2014, 12:56 PM
  3. Replies: 1
    Last Post: 01-30-2013, 01:08 PM
  4. Extracting numbers and text from inconsistent text/number formatted string
    By Brandivil in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-25-2013, 01:46 PM
  5. Text with Spaces
    By Trigger99 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 01-25-2013, 11:41 AM
  6. [SOLVED] Extracting Text from a string of Text & Digits of variable length
    By hastex in forum Excel General
    Replies: 6
    Last Post: 06-06-2012, 09:11 AM
  7. extracting date from cell that has two spaces
    By DavidBW in forum Excel General
    Replies: 2
    Last Post: 09-22-2011, 08:44 AM
  8. Extracting columns without spaces
    By wjkowach in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-24-2007, 01:25 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