+ Reply to Thread
Results 1 to 3 of 3

Extract data from cell starting from 1st number digit to end

Hybrid View

  1. #1
    Registered User
    Join Date
    04-06-2015
    Location
    Rotterdam, Netherlands
    MS-Off Ver
    Excel 2013
    Posts
    9

    Extract data from cell starting from 1st number digit to end

    Hi all,

    I want to extract data from a cell ( text and numbers combined / streetnames etc) , but it should only extract from the first number in the textline till last character.

    This, because I want to extract all the street-numbers and I cannot use a formula to extract the last word/combination of the cell, because of the occasional spaces involded (example: ....11B ; 11 B; 11 B-C)

    See example in attachment.

    Thanks!
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    31,173

    Re: Extract data from cell starting from 1st number digit to end

    Try

    in B2

    =TRIM(MID(A2,MIN(SEARCH({0,1,2,3,4,5,6,7,8,9},A2&"0123456789")),255))

  3. #3
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Extract data from cell starting from 1st number digit to end

    Try this...

    Data Range
    A
    B
    1
    STREETS
    Goal is:
    2
    CORNELIS KRUSEMANSTRAAT 11 HS
    11 HS
    3
    KERKENBOS 1236 C
    1236 C
    4
    WEVERSTRAAT 13 B
    13 B
    5
    KANAALSTRAAT 81 BIS
    81 BIS
    6
    ZIJLMAKERSTRAAT 31 A
    31 A
    7
    VAN DER TAKSTRAAT 1A & 1F
    1A & 1F
    8
    HOGE RIJNDIJK311 B
    311 B


    This formula entered in B2 and copied down:

    =TRIM(MID(A2,MIN(FIND({1,2,3,4,5,6,7,8,9,0},A2&1234567890)),50))
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

+ 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 10 digit number only from text string
    By visha_1984 in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 02-06-2015, 09:42 AM
  2. Extract first 5 digit number starting from the right
    By Cboggie in forum Excel General
    Replies: 5
    Last Post: 05-09-2014, 01:17 PM
  3. How to extract a 15 or 16 digit number from an email.
    By kaushalnaman in forum Excel General
    Replies: 4
    Last Post: 02-22-2014, 05:25 PM
  4. Extract 9 digit number from string
    By Jbentley in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 11-16-2011, 07:02 AM
  5. Replies: 3
    Last Post: 04-23-2009, 01:11 AM
  6. [SOLVED] Extract 10 digit number from string
    By R. Choate in forum Excel Programming / VBA / Macros
    Replies: 20
    Last Post: 10-27-2005, 06:05 PM
  7. Extract 2, 3, 4 or 5-digit number from string
    By Jim in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-07-2005, 10:22 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