+ Reply to Thread
Results 1 to 4 of 4

Lookup project name using variable-length project number that is also part of project name

  1. #1
    Forum Contributor
    Join Date
    04-26-2009
    Location
    Austin, TX
    MS-Off Ver
    Excel 2016
    Posts
    241

    Lookup project name using variable-length project number that is also part of project name

    Hello,

    I'd like to find a formula for cell D2 in the sample spreadsheet below.

    Greenshot 000077.png

    The formula in D2 should:
    -- check cell D1 to learn which project's full name is desired
    -- look up that project number/name in column A
    -- display the full name of the project (which should begin with the same project number)

    Please note that:
    -- column A may include blank cells.
    -- the projects listed in column A may be in any type of order (they are not guaranteed to be in numeric order)
    -- the project numbers which are part of each project name may be 3 to 6 digits long


    Thanks for your suggestions!

    JayUSA
    Last edited by JayUSA; 08-10-2017 at 12:00 PM.

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,933

    Re: Lookup project name using variable-length project number that is also part of project

    For future reference, upload a small (clean) sample workbook (not a pic) of what you are working with, and what your expected outcome would look like.

    Based on what you showed, try this...
    A
    B
    C
    D
    1
    1234 abc
    234
    1234 abc
    2
    2466skzdj

    D1=INDEX($A$1:$A$2,MATCH("*"&C1&"*",$A$1:$A$2,0))
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Forum Contributor
    Join Date
    04-26-2009
    Location
    Austin, TX
    MS-Off Ver
    Excel 2016
    Posts
    241

    Re: Lookup project name using variable-length project number that is also part of project

    Really great. Works perfectly. Thanks so much!

    JayUSA

  4. #4
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,933

    Re: Lookup project name using variable-length project number that is also part of project

    Happy to help

+ 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. Replies: 1
    Last Post: 06-12-2017, 09:20 PM
  2. Replies: 2
    Last Post: 05-10-2017, 07:32 PM
  3. Replies: 5
    Last Post: 08-06-2014, 01:10 PM
  4. Replies: 1
    Last Post: 05-02-2014, 03:05 PM
  5. Linking a project name to a project number
    By tvg543 in forum Excel General
    Replies: 2
    Last Post: 11-08-2012, 04:39 PM
  6. [SOLVED] Insert Blank Rows between sorted projects, Subtotal project to the right of final project.
    By ZAC7 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 08-07-2012, 04:08 AM

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