+ Reply to Thread
Results 1 to 6 of 6

Formula between x and space

  1. #1
    Registered User
    Join Date
    01-06-2010
    Location
    sydney
    MS-Off Ver
    Excel 2007
    Posts
    17

    Formula between x and space

    HI gurus

    I need a formula which will allow me to get the number between the x and the space. example below and spreadsheet attached

    For example in column A i have
    Milo Drink 3x200ml
    Kombucha Wonder Traditional 10x414ml


    IN column b i need

    3
    10

    Many thanks
    Attached Files Attached Files

  2. #2
    Forum Expert shukla.ankur281190's Avatar
    Join Date
    05-17-2014
    Location
    Lucknow, India
    MS-Off Ver
    Office 365
    Posts
    3,937

    Re: Formula between x and space

    Try

    B2=RIGHT(LEFT(A2,FIND("x",A2)-1),2)+0
    If I helped, Don't forget to add reputation (click on the little star ★ at bottom of this post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)

  3. #3
    Registered User
    Join Date
    01-06-2010
    Location
    sydney
    MS-Off Ver
    Excel 2007
    Posts
    17

    Re: Formula between x and space

    Perfect, thank you

  4. #4
    Forum Expert shukla.ankur281190's Avatar
    Join Date
    05-17-2014
    Location
    Lucknow, India
    MS-Off Ver
    Office 365
    Posts
    3,937

    Re: Formula between x and space

    Glad it helps you and Thanks for feedback and Rep

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.

  5. #5
    Forum Guru
    Join Date
    02-27-2016
    Location
    Vietnam
    MS-Off Ver
    2016
    Posts
    5,914

    Re: Formula between x and space



    Cocoxim 12x330ml

  6. #6
    Forum Expert shukla.ankur281190's Avatar
    Join Date
    05-17-2014
    Location
    Lucknow, India
    MS-Off Ver
    Office 365
    Posts
    3,937

    Re: Formula between x and space

    Quote Originally Posted by Phuocam View Post


    Cocoxim 12x330ml
    You are right Phuocam then

    =LEFT(SUBSTITUTE(TRIM(RIGHT(SUBSTITUTE(A2," ",REPT(" ",99)),99)),"x",REPT(" ",99)),99)+0

    this would be good

+ 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] Shift+Space and Ctrl+Space shortcuts intermittently working
    By yumyumdimsum in forum Excel General
    Replies: 8
    Last Post: 10-14-2017, 11:54 AM
  2. 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
  3. VBA: Put extra space before units (keywords) if space is not there
    By sroysroy in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-25-2015, 10:19 AM
  4. parsing text return space to space
    By dosmastr in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-15-2015, 12:09 AM
  5. [SOLVED] If Cell Starts with a Space, remove that space
    By Ocean Zhang in forum Excel General
    Replies: 2
    Last Post: 09-29-2012, 01:52 PM
  6. 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
  7. formula that will go up one space if no value in specified space
    By skammi in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 11-16-2005, 11:35 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