+ Reply to Thread
Results 1 to 7 of 7

How can I extract the digital part, e.g. "23" in "s 23 secs." in all the column cells

Hybrid View

DXMM2007 How can I extract the digital... 11-01-2007, 09:59 AM
oldchippy Try this, = MID(A1,3,2)*1... 11-01-2007, 10:05 AM
DXMM2007 Hey oldchippy, Thanks for... 11-01-2007, 10:21 AM
oldchippy Hi, just auto-fill down the... 11-01-2007, 11:17 AM
DXMM2007 Hey oldchippy, Thank you... 11-01-2007, 11:54 AM
oldchippy Glad to help - thanks for the... 11-01-2007, 11:56 AM
Ron Coderre How can I extract the digital... 11-01-2007, 10:14 AM
  1. #1
    Registered User
    Join Date
    11-01-2007
    Posts
    3

    Question How can I extract the digital part, e.g. "23" in "s 23 secs." in all the column cells

    Dear all,

    There are some data in my column, like
    "s 23 secs.
    s 20 secs.
    s 26 secs.
    s 12 secs.
    s 29 secs.
    s 11 secs.
    s 38 secs.
    s 17 secs.
    s 27 secs.
    s 17 secs.
    "

    How can I extract the digital part only from this column, e.g. make "s 23 secs." as "23", whilst the rest are with the same principle.

    Thanks in advance,

    Regards,

    DXMM2007

  2. #2
    Forum Expert oldchippy's Avatar
    Join Date
    02-14-2005
    Location
    Worcester, UK
    MS-Off Ver
    Excel 2007 (Home)
    Posts
    7,097
    Try this,

    =
    MID(A1,3,2)*1 by multiplying by 1, you can then use the number in calculations
    oldchippy
    -------------


    Blessed are those who can give without remembering and take without forgetting

    If you are happy with the help you have received, please click the <--- STAR icon on the left - Thanks.

    Click here >>> Top Excel links for beginners to Experts

    Forum Rules >>>Please don't forget to read these

  3. #3
    Registered User
    Join Date
    11-01-2007
    Posts
    3
    Hey oldchippy,

    Thanks for your reply.

    It works successfully for the single cell in the column. However, I wanna do it for each item in the column. Say there are 500 items need to convert in the column, how can I do it automatically?

    Quote Originally Posted by oldchippy
    Try this,

    =
    MID(A1,3,2)*1 by multiplying by 1, you can then use the number in calculations

  4. #4
    Forum Expert oldchippy's Avatar
    Join Date
    02-14-2005
    Location
    Worcester, UK
    MS-Off Ver
    Excel 2007 (Home)
    Posts
    7,097
    Hi, just auto-fill down the column
    Attached Images Attached Images

  5. #5
    Registered User
    Join Date
    11-01-2007
    Posts
    3
    Quote Originally Posted by oldchippy
    Hi, just auto-fill down the column
    Hey oldchippy,

    Thank you so much for the pics and suggestions!

    I realize how to do it!

    Regards,

    DXMM2007

  6. #6
    Forum Expert oldchippy's Avatar
    Join Date
    02-14-2005
    Location
    Worcester, UK
    MS-Off Ver
    Excel 2007 (Home)
    Posts
    7,097
    Glad to help - thanks for the feedback

  7. #7
    Forum Expert Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2013, 2016, O365
    Posts
    6,996

    How can I extract the digital part, e.g. "23" in "s 23 secs." in all the column cells

    Just in case the location of the numbers is not consistent....
    
    This formula returns consecutive numbers from anywhere in the text:
    =LOOKUP(99^99,--("0"&MID(A1,MIN(SEARCH({0,1,2,3,4,5,6,7,8,9},A1&"0123456789")),ROW($1:$10000))))
    Does that help?
    Ron
    Former Microsoft MVP - Excel (2006 - 2015)
    Click here to see the Forum Rules

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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