+ Reply to Thread
Results 1 to 3 of 3

Lookup formula to return specific value

  1. #1
    Registered User
    Join Date
    11-07-2017
    Location
    CANADA
    MS-Off Ver
    2010
    Posts
    44

    Lookup formula to return specific value

    Hi,

    I have the following values in column A I am looking up. Partial reference numbers that are always 6 characters long and complete ones that vary. Sheet 2 has all my data A normal lookup will only return the first value or NA. Is there a formula that will ignore the partial values and return only the complete values?

    123456
    123456
    654321
    654321
    123456 NAMEA
    123456 NAMEA
    654321 NAMEBC
    654321 NAMEBC
    Attached Files Attached Files
    Last edited by exceleratevba; 07-06-2021 at 07:16 AM. Reason: Sample spreadsheet added

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,980

    Re: Lookup formula to return specific value

    There are instructions at the top of the page explaining how to attach your sample workbook.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,980

    Re: Lookup formula to return specific value

    Are you still using Excel 2010? If not, please update your forum profile.

    In B2 copied down:

    =VLOOKUP(A2&"*",Sheet2!$A$1:$A$8,1,0)

+ 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. Help - Lookup, Match, Return Specific Value
    By ravi.n in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 06-15-2020, 11:40 AM
  2. [SOLVED] Formula that can lookup in a table and return shift time for the specific day and name
    By Shellybelly in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 06-29-2018, 02:09 PM
  3. LOOKUP return specific text
    By silambarasan.J in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-20-2018, 02:53 AM
  4. [SOLVED] Formula that can lookup multiple criteria and return a specific value...
    By cateyes_28 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-13-2015, 10:40 AM
  5. need a lookup formula to return a specific result...
    By tsiguy96 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-15-2013, 08:40 AM
  6. Lookup and return specific value from list
    By maddog9486 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-28-2013, 02:18 PM
  7. Lookup for string and return specific value
    By mikepac69 in forum Excel General
    Replies: 7
    Last Post: 02-14-2012, 12:54 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