+ Reply to Thread
Results 1 to 4 of 4

Find text and display value relative to that text

  1. #1
    Registered User
    Join Date
    05-22-2018
    Location
    Gainesville
    MS-Off Ver
    OFFICE 365
    Posts
    5

    Thumbs up Find text and display value relative to that text

    Hey guys,

    This is my first thread on this forum and, besides the basic IF, AND, and OR functions, I'm not very good at using Excel.
    Let's say that I have one column full of letters and another full of numbers (respectively): so if I have A in one cell, I have 1 directly next to it to the right. If I have B in one cell, I have 2 directly next to it to the right etc.

    I would like a function that would allow me to search a specific range for a specific value and return the value to the right (or the left) of that cell. For instance: if I'm looking for C, it would return 3 (since it's the one directly to the left).

    Any ideas of how to do that?
    Thanks in advance.
    Last edited by bilouge; 05-22-2018 at 07:35 PM. Reason: Solved

  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: Find text and display value relative to that text

    Hi, welcome to the forum

    Maybe something like this, using VLOOKUP...
    A
    B
    C
    D
    2
    a
    1
    a
    1
    3
    b
    2
    4
    c
    3
    5
    d
    4
    6
    e
    5

    C2=what you want find
    D2=VLOOKUP(C2,$A$2:$B$6,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
    05-22-2018
    Location
    Gainesville
    MS-Off Ver
    OFFICE 365
    Posts
    5

    Re: Find text and display value relative to that text

    Wow, FDibbins! Thank you very much, it's 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: Find text and display value relative to that text

    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. [SOLVED] Find a month in text and display that in next column
    By Felix212 in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 02-25-2018, 04:34 AM
  2. Find and display certain text in a string based on a range of text.
    By JonesyCC in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 04-05-2017, 02:18 PM
  3. Find text and display value
    By fish221171 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 11-17-2015, 08:22 AM
  4. Replies: 2
    Last Post: 08-05-2013, 07:32 PM
  5. Code to find text, copy rows into new worksheet, based on relative selection
    By tribes712 in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 06-21-2010, 11:32 AM
  6. Find largest value, then display text
    By ajay1965 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-08-2008, 03:51 PM
  7. [SOLVED] Find text within cell then display text to left
    By Jambruins in forum Excel General
    Replies: 5
    Last Post: 04-17-2006, 05:10 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