+ Reply to Thread
Results 1 to 9 of 9

pick data from right after first space from right ends until the next space

  1. #1
    Registered User
    Join Date
    09-15-2017
    Location
    United Arab Emirates
    MS-Off Ver
    2013
    Posts
    68

    pick data from right after first space from right ends until the next space

    Hi all,

    would like to have a formula where excel formula pick data from right after first space from right ends until the next space as shown in the attached file column B
    Attached Files Attached Files

  2. #2
    Forum Expert WideBoyDixon's Avatar
    Join Date
    10-03-2016
    Location
    Sheffield, UK
    MS-Off Ver
    365
    Posts
    2,182

    Re: pick data from right after first space from right ends until the next space

    Might be a long-winded way but it should work:

    Please Login or Register  to view this content.
    WBD
    Office 365 on Windows 11, looking for rep!

  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,139

    Re: pick data from right after first space from right ends until the next space

    or:

    =--MID(A1,FIND(CHAR(1),SUBSTITUTE($A1," ",CHAR(1),LEN(A1)-LEN(SUBSTITUTE(A1," ",""))-1))+1,4)


    or:

    =FILTERXML("<A><B>"&SUBSTITUTE(A1," ","</B><B>")&"</B></A>","//B[position()="&LEN(A1)-LEN(SUBSTITUTE(A1," ",""))&"]")
    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

  4. #4
    Registered User
    Join Date
    09-15-2017
    Location
    United Arab Emirates
    MS-Off Ver
    2013
    Posts
    68

    Re: pick data from right after first space from right ends until the next space

    working but doesnt work if there a text instead number.

  5. #5
    Forum Expert WideBoyDixon's Avatar
    Join Date
    10-03-2016
    Location
    Sheffield, UK
    MS-Off Ver
    365
    Posts
    2,182

    Re: pick data from right after first space from right ends until the next space

    Take the "+0" off the end if it's not guaranteed to be a number.

    WBD

  6. #6
    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,139

    Re: pick data from right after first space from right ends until the next space

    1. Who are you talking to?

    2. If there can be text there, why did your sample file only contain numbers?

  7. #7
    Registered User
    Join Date
    09-15-2017
    Location
    United Arab Emirates
    MS-Off Ver
    2013
    Posts
    68

    Re: pick data from right after first space from right ends until the next space

    Thanks it worked

  8. #8
    Forum Expert WideBoyDixon's Avatar
    Join Date
    10-03-2016
    Location
    Sheffield, UK
    MS-Off Ver
    365
    Posts
    2,182

    Re: pick data from right after first space from right ends until the next space

    Also, Glenn's second suggestion is very cool and clever. You could even shorten it a little:

    Please Login or Register  to view this content.
    WBD

  9. #9
    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,139

    Re: pick data from right after first space from right ends until the next space

    Norman. To avoid confusion, please say who you're talking to when replying to threads if more than 1 person is helping you.

+ 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] Remove space hyphen space and move data to right to new col
    By rz6657 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 04-20-2020, 02:02 PM
  2. [SOLVED] insert space in front of any question, if a space is not present
    By OhioRuss in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-19-2018, 06:45 PM
  3. [SOLVED] Shift+Space and Ctrl+Space shortcuts intermittently working
    By yumyumdimsum in forum Excel General
    Replies: 8
    Last Post: 10-14-2017, 11:54 AM
  4. [SOLVED] How to detect if any cell, in any tab, ends with a SPACE?
    By jmccoughlin in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 04-06-2016, 02:46 PM
  5. Auto add space and / when I press space bar in excel 2003
    By bajramo in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-28-2016, 05:47 AM
  6. [SOLVED] formula for 'pick out the first word of the cell up until the space'
    By johnandrews in forum Excel General
    Replies: 3
    Last Post: 03-12-2014, 08:51 AM
  7. replace double space with single space within a range
    By erikd80 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 02-05-2011, 01:20 PM

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