+ Reply to Thread
Results 1 to 2 of 2

How to extract first few words from a sentence - Help please

  1. #1
    Registered User
    Join Date
    04-06-2013
    Location
    Hyderabad
    MS-Off Ver
    Excel 2007
    Posts
    6

    How to extract first few words from a sentence - Help please

    Hello, These are my fields in the first column. I have 1000's of fields in such way.
    I need to extract the name until it encounters this symbol "-" (without quotes).

    The fields are as follows:
    HADFIELDS PHARMACY - 7320 216TH ST SW, EDMONDS, WA 98026 - (rating 0/10)
    HAGGEN FAIRHAVEN MARKET - 1401 12TH ST, BELLINGHAM, WA 98225 - (rating 0/10)
    HAGGEN FOOD & PHARMACY - PO BOX 9704, BELLINGHAM, WA 98227 - (rating 0/10)
    HALLS DRUG CENTER - 505 S TOWER AVE, CENTRALIA, WA 98531 - (rating 0/10)


    And i need the result as this
    HADFIELDS PHARMACY
    HAGGEN FAIRHAVEN MARKET
    HAGGEN FOOD & PHARMACYHALLS DRUG CENTER


    Please help.

  2. #2
    Valued Forum Contributor Harribone's Avatar
    Join Date
    02-24-2013
    Location
    Midlands, UK
    MS-Off Ver
    Excel 2019/365
    Posts
    570

    Re: How to extract first few words from a sentence - Help please

    =LEFT(A1,FIND(" -",A1)-1)

    This will extract text from the left of the first "-"
    Say thanks, click *

+ 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