+ Reply to Thread
Results 1 to 3 of 3

Identifying data within data

  1. #1
    Registered User
    Join Date
    06-06-2010
    Location
    NC
    MS-Off Ver
    Excel 2007
    Posts
    8

    Identifying data within data

    I have a row of codes that begin with a letter and end in a number, e.g., M250, M300, X540. The letter that the code begins with indicates a borrough, e.g. M=Manhattan. I need to add a column next to the codes that identifies which city it matches with.

    I have attached a sample of the data here to illustrate what I need to find.
    (In my actual data set I have 2000+ rows which is why I need to find a formula to identify this)
    Attached Files Attached Files

  2. #2
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: Identifying data within data

    You will need a list of Borough then combine Left with VLOOKUP.

    Assuming the list is on Sheet 2,

    =VLOOKUP(LEFT(B3,1),Sheet2!A1:B12,2,0)
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

  3. #3
    Forum Contributor
    Join Date
    08-11-2009
    Location
    USA
    MS-Off Ver
    Excel 2003
    Posts
    149

    Re: Identifying data within data

    You're looking for LEFT() and VLOOKUP(). See attached.
    Attached Files Attached Files

+ 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