Results 1 to 4 of 4
  1. #1
    Silver Lounger
    Join Date
    Dec 2000
    Location
    Northampton, Northamptonshire, England
    Posts
    1,951
    Thanks
    2
    Thanked 1 Time in 1 Post

    Extract Text from space (Excel 2002)

    Hi

    In the attached spreadsheet in column B are names and places with uneven spaces in betweeen for example KINGUK HEMELHEMP I need to extract HEMEL HEMP Only. but some other have a different number of spaces.


    Many Thanks

    Braddy
    If you are a fool at forty, you will always be a fool

  2. #2
    Platinum Lounger
    Join Date
    Feb 2001
    Location
    Weert, Limburg, Netherlands
    Posts
    4,812
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Extract Text from space (Excel 2002)

    Use this array formula:

    =MID(B2,MAX(IF(ISERROR(FIND(" ",B2,ROW(1:255))),"",FIND(" ",B2,ROW(1:255))))+1,LEN(B2))
    Jan Karel Pieterse
    Microsoft Excel MVP, WMVP
    www.jkp-ads.com
    Professional Office Developers Association

  3. #3
    WS Lounge VIP rory's Avatar
    Join Date
    Dec 2000
    Location
    Burwash, East Sussex, United Kingdom
    Posts
    6,280
    Thanks
    3
    Thanked 191 Times in 177 Posts

    Re: Extract Text from space (Excel 2002)

    Hi Braddy,
    You could use:
    =TRIM(MID(B2,FIND(" ",B2),LEN(B2)))
    Hope that helps.
    Regards,
    Rory

    Microsoft MVP - Excel

  4. #4
    Silver Lounger
    Join Date
    Dec 2000
    Location
    Northampton, Northamptonshire, England
    Posts
    1,951
    Thanks
    2
    Thanked 1 Time in 1 Post

    Re: Extract Text from space (Excel 2002)

    Hi Rory

    Thank very much for your reply it works just fine.

    Thanks to all who replied.

    Braddy
    If you are a fool at forty, you will always be a fool

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •