+ Reply to Thread
Results 1 to 3 of 3

Extract Numbers from String

  1. #1
    Registered User
    Join Date
    04-09-2014
    Location
    United Kingdom
    MS-Off Ver
    Excel 2011 for Mac
    Posts
    2

    Extract Numbers from String

    Hi there

    Hopefully you can help me on the issue below. I have a text string formatted like so:

    Team A 2:4 Team B

    I want to be able to extract the 2 into Cell A and 4 into Cell B.

    Thanks.

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

    Re: Extract Numbers from String

    Team A:

    =LOOKUP(10^10,--MID(A1,FIND(":",A1)-{1,2,3,4,5},{1,2,3,4,5}))

    Team B:

    =LOOKUP(10^10,--MID(A1,FIND(":",A1)+1,{1,2,3,4,5}))

  3. #3
    Registered User
    Join Date
    04-09-2014
    Location
    United Kingdom
    MS-Off Ver
    Excel 2011 for Mac
    Posts
    2

    Re: Extract Numbers from String

    Quote Originally Posted by Phuocam View Post
    Team A:

    =LOOKUP(10^10,--MID(A1,FIND(":",A1)-{1,2,3,4,5},{1,2,3,4,5}))

    Team B:

    =LOOKUP(10^10,--MID(A1,FIND(":",A1)+1,{1,2,3,4,5}))
    Brilliant, thank 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] Extract Numbers from String
    By SanchoPanza1 in forum Excel General
    Replies: 8
    Last Post: 01-24-2017, 04:28 PM
  2. Extract numbers from a string
    By Nighteg in forum Excel General
    Replies: 5
    Last Post: 11-03-2016, 09:35 AM
  3. extract numbers & / only from a string
    By Sean Thomas in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 10-04-2016, 06:38 AM
  4. Extract numbers from the end of a string
    By Nighteg in forum Excel General
    Replies: 2
    Last Post: 03-17-2016, 12:04 PM
  5. Extract numbers from a string
    By mkhan123 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 06-03-2011, 03:22 PM
  6. Extract Numbers from a string
    By dugong in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 05-21-2008, 06:21 AM
  7. Extract numbers from a string ?
    By Jello in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 03-03-2005, 07:06 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