+ 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

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

    Please Login or Register  to view this content.
    Does that help?
    Ron
    Former Microsoft MVP - Excel (2006 - 2015)
    Click here to see the Forum Rules

  4. #4
    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

  5. #5
    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

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

  7. #7
    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

+ 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