+ Reply to Thread
Results 1 to 2 of 2

first name extraction by searching the comaa

  1. #1
    Registered User
    Join Date
    09-04-2021
    Location
    bengaluru,karnatka
    MS-Off Ver
    2016
    Posts
    1

    first name extraction by searching the comaa

    can anyone help me regarding the question, i am not able to get the proper answer. using vlookup i have extract the whole
    name from the provided raw data now i want to get the first name only
    like newyork,ny-incorrect
    newyork-correct

  2. #2
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.83 (24031120))
    Posts
    8,732

    Re: first name extraction by searching the comaa

    this maybe a bit messy
    Are you looking up newyork,ny and then only want to display newyork
    if so
    =LEFT(VLOOKUP(B2,$A$2:$A$10,1,FALSE),FIND(",",VLOOKUP(B2,$A$2:$A$10,1,FALSE),1)-1)

    Where the names are in Column A
    and the value to lookup is in B2

    Otherwise attach a sample - see yellow banner on how to load a spreadsheet - so we can see your data layout, and results expected - with a description why

    this does 2 lookups, hence why i say its messy and not sure how it will perform on large data files
    Attached Files Attached Files
    Wayne
    if my assistance has helped, and only if you wish to , there is an "* Add Reputation" on the left hand side - you can add to my reputation here

    If you have a solution to your thread - Please mark your thread solved do the following: >
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

+ 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. Outlook Extraction Tool - Ignore Signature Images Extraction
    By RXcel in forum Outlook Programming / VBA / Macros
    Replies: 1
    Last Post: 04-04-2020, 10:34 AM
  2. [SOLVED] Name Extraction
    By chief_abound in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 12-03-2015, 05:16 AM
  3. [SOLVED] URL extraction help
    By mecutemecute in forum Excel General
    Replies: 10
    Last Post: 06-10-2013, 01:18 AM
  4. web extraction
    By anilg0001 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-28-2013, 01:24 AM
  5. web extraction
    By anilg0001 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 05-07-2013, 05:01 AM
  6. Name Extraction
    By ernestgoh in forum Excel General
    Replies: 1
    Last Post: 03-25-2009, 01:26 PM
  7. extraction
    By rowena in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 10-09-2006, 11:28 PM

Tags for this Thread

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