Closed Thread
Results 1 to 2 of 2

Extracting Numbers from an Alphanumeric String

  1. #1
    Registered User
    Join Date
    03-04-2013
    Location
    a
    MS-Off Ver
    Excel 2003
    Posts
    10

    Extracting Numbers from an Alphanumeric String

    Hello,

    I need to extract the numbers that appear in the attached CSV sample. This is what has been extracted from a database.
    The numbers 1 to 12 at the end of the string are the months of the year. The numbers beside that are duty hours. So Person Doug Smith did 119:22 duty hours in January.

    How can I extract the numbers into different columns?

    Row Titles would be:

    CREW NAME¦¦Jan¦¦Feb¦¦March¦¦etc
    Doug smith
    Total hours¦¦Jan

    crewname;"time_format(SEC_TO_TIME(sum(TIME_TO_SEC(dutyhours))) '%H:%i')";"month(date)"
    Douglas Smith;"119:22";"1"
    Douglas Smith;"127:33";"2"
    Douglas Smith;"138:31";"3"
    Douglas Smith;"117:55";"4"
    Douglas Smith;"133:27";"5"
    Douglas Smith;"124:10";"6"
    Douglas Smith;"152:35";"7"
    Douglas Smith;"152:25";"8"
    Douglas Smith;"90:53";"9"
    Douglas Smith;"130:28";"10"
    Douglas Smith;"123:06";"11"
    Douglas Smith;"131:34";"12"
    Simon Clare;"130:43";"1"
    Simon Clare;"129:31";"2"
    Simon Clare;"125:04";"3"
    Simon Clare;"152:03";"4"
    Simon Clare;"127:20";"5"
    Simon Clare;"87:11";"6"


    Would be great to get some help before tomorrow morning.

    Thanks martin
    Attached Files Attached Files

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,938

    Re: Extracting Numbers from an Alphanumeric String

    Welcome to the Forum, unfortunately:

    This is a duplicate post and as such does not comply with Rule 5 of our forum rules. This thread will now be closed, you may continue in your other thread.

    http://www.excelforum.com/excel-gene...ic-string.html

    Thread Closed.
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

Closed 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