+ Reply to Thread
Results 1 to 5 of 5

Place text in adjoining cell if cell contains specific text

  1. #1
    Registered User
    Join Date
    07-11-2013
    Location
    california
    MS-Off Ver
    Excel 2007
    Posts
    24

    Place text in adjoining cell if cell contains specific text

    Hi,

    I would like to indicate the location of where an exam took place based on the first three letters of the exam accession number. I created a list to use as a lookup but don't know how to write a formula only using the first 3 letters in the cell as the search criteria.

    In the first cell: LSK130012 / The adjacent cell would return Echo, or LSM1300130 would return MRI in the adjacent cell.

    There are 7 modalities in all that I would need to search for.

    See the attached for the desired results
    Attached Files Attached Files
    Last edited by xrayexceller; 08-05-2013 at 11:03 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: Place text in adjoining cell if cell contains specific text

    Try this, copied down...
    =VLOOKUP(LEFT(A2,3),$J$2:$K$8,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
    Registered User
    Join Date
    07-11-2013
    Location
    california
    MS-Off Ver
    Excel 2007
    Posts
    24

    Re: Place text in adjoining cell if cell contains specific text

    Thank you, exactly what I was looking for.

  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: Place text in adjoining cell if cell contains specific text

    Happy to help

  5. #5
    Forum Contributor
    Join Date
    08-11-2012
    Location
    bengalur
    MS-Off Ver
    Excel 2003, 2007
    Posts
    152

    Re: Place text in adjoining cell if cell contains specific text

    Attachment 255696Attachment 255696
    Quote Originally Posted by FDibbins View Post
    Happy to help
    Vertical Look Up really helps in these scenarios.

    Below formula really helped to obtain the objective. Thanks for this.
    =VLOOKUP(LEFT(A2,3),$J$2:$K$8,2,0)

    As I was trying with MATCH & INDEX formula.

+ 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: 2
    Last Post: 08-05-2013, 07:32 PM
  2. Replies: 19
    Last Post: 04-10-2013, 08:30 AM
  3. [SOLVED] Formula with specific text that inserts value from BESIDE cell with specific text.
    By jtmann in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 08-13-2012, 09:24 AM
  4. Take header and cell data place within text/ summary cell
    By QualityPies&Rissoles in forum Excel - New Users/Basics
    Replies: 1
    Last Post: 11-02-2009, 05:23 PM
  5. Replies: 3
    Last Post: 07-12-2005, 04:05 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