+ Reply to Thread
Results 1 to 8 of 8

Formula needed to extract name from list base on few character

  1. #1
    Forum Contributor
    Join Date
    03-12-2012
    Location
    Singapore
    MS-Off Ver
    MS 365
    Posts
    532

    Formula needed to extract name from list base on few character

    Hi, in my system, we have a Short Name for supplier. Example ABC Pte Ltd might become ABC Pt etc. There is no specific text length for this Short Name.

    I attached a sample of the short name and the actual name. Is there a way to use formula to extract the actual name base on short name?
    Attached Files Attached Files

  2. #2
    Forum Expert kersplash's Avatar
    Join Date
    11-22-2016
    Location
    Perth
    MS-Off Ver
    Home 2016 (Windows 10)/Work 2013 Pro Plus (Windows 10)
    Posts
    2,012

    Re: Formula needed to extract name from list base on few character

    I've used your list in columns A & B as your source. Complete this list with all the suppliers full name (B) and their short codes (A)

    Put this in Column D;

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    And copy down. In the formula replace A2 with the location of the cell you are wanting to lookup the value of.
    This is meant to be an example of how to do what you want.

  3. #3
    Forum Contributor
    Join Date
    03-12-2012
    Location
    Singapore
    MS-Off Ver
    MS 365
    Posts
    532

    Re: Formula needed to extract name from list base on few character

    I think you misunderstanding my meaning. I only have Column A and D. Column D is a long long list, i need a formula to read the Column A and search for match value in Column D.

  4. #4
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,466

    Re: Formula needed to extract name from list base on few character

    Maybe in B2:

    Please Login or Register  to view this content.
    Or, neater for first n digits:

    Please Login or Register  to view this content.
    Quang PT

  5. #5
    Forum Contributor
    Join Date
    03-12-2012
    Location
    Singapore
    MS-Off Ver
    MS 365
    Posts
    532

    Re: Formula needed to extract name from list base on few character

    Hi Bebo21999

    Your formula work. But what does the 2 mean? And what does 1/ mean? And also, i remove the "*" and the result is the same. How come?

  6. #6
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,466

    Re: Formula needed to extract name from list base on few character

    Quote Originally Posted by jp16 View Post
    Hi Bebo21999

    Your formula work. But what does the 2 mean? And what does 1/ mean? And also, i remove the "*" and the result is the same. How come?
    1/- Assuming:

    "ABC" vs list "XXX ABC YYY"(1), "ABC XXX"(2)

    "ABC" or "*ABC*" refer to both (1) and (2)

    "ABC*" refer to (2) only

    2/-
    =LOOKUP(2,1/SEARCH(A2&"*",$D$2:$D$8),$D$2:$D$8)

    1/SEARCH(...) returns list of 1 & #DIV/0
    LOOKUP(n,1/...,D2:D8) with any n>1 with refer to value 1 in list, and returns text in D2:D8

  7. #7
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,587

    Re: Formula needed to extract name from list base on few character

    ARRAY formula in B2 then drag down.
    Please Login or Register  to view this content.
    Attached Files Attached Files
    Pl note
    Array formula should be confirmed with Ctrl+Shift+Enter keys together.
    If answere is satisfactory press * to add reputation.

  8. #8
    Forum Expert shukla.ankur281190's Avatar
    Join Date
    05-17-2014
    Location
    Lucknow, India
    MS-Off Ver
    Office 365
    Posts
    3,937

    Re: Formula needed to extract name from list base on few character

    or try

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    If I helped, Don't forget to add reputation (click on the little star ★ at bottom of this post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)

+ 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] Formula needed for Text to repeat base on cell value
    By jp16 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 10-07-2017, 06:41 PM
  2. [SOLVED] Formula to extract undefined number of names following a specified character
    By BFernandez in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 04-26-2014, 02:50 PM
  3. Replies: 1
    Last Post: 02-20-2014, 12:24 PM
  4. [SOLVED] Truncate At Specific Character Formula - And More. - Help Needed.
    By TheProffesional in forum Excel Formulas & Functions
    Replies: 16
    Last Post: 08-07-2013, 04:11 PM
  5. Series Base Formula needed
    By amitjay in forum Excel General
    Replies: 2
    Last Post: 09-24-2012, 08:23 AM
  6. formula to extract only the first 2 character from a cell ?
    By syncguy in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-21-2012, 06:16 PM
  7. Formula for making a list from data base
    By nelliev8 in forum Excel General
    Replies: 2
    Last Post: 06-24-2010, 09:19 PM

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