+ Reply to Thread
Results 1 to 5 of 5

Find value in one column, display the text from adjacent colomn

  1. #1
    Registered User
    Join Date
    03-04-2010
    Location
    Windsor, Ontario
    MS-Off Ver
    Excel 2000
    Posts
    3

    Question Find value in one column, display the text from adjacent colomn

    How can I accomplish this?
    The formula in cell A1 looks for the value in a cell in Column L which ranges from L1 to L75. This value will be found in Column Q also from 1 to 75. I then require the text found in the adjacent cell in Column R to be displayed. I also require that if there is no value entered in any cell in Column Q that the cell would remain blank.
    Thanks
    Last edited by todley1; 03-04-2010 at 01:58 PM. Reason: forgot to mention leaving cell blank if no value found

  2. #2
    Forum Expert Paul's Avatar
    Join Date
    02-05-2007
    Location
    Wisconsin
    MS-Off Ver
    2016/365
    Posts
    6,885

    Re: Find value in one column, display the text from adjacent colomn

    Hi Todley, welcome to the forum.

    Can you put together a small example of your data/layout and show the expected results? You can upload small excel files directly to the thread.

    I'm just not understanding why column L is being referenced.. and why there would be no values in column Q if you're trying to search that range.

  3. #3
    Registered User
    Join Date
    03-04-2010
    Location
    Windsor, Ontario
    MS-Off Ver
    Excel 2000
    Posts
    3

    Re: Find value in one column, display the text from adjacent colomn

    I tried to use the IF function but found that I can only nest 7 items. I made a duplicate of the form I am trying to design which is a Work Schedule that covers 3 locations with 3 shifts each.
    The object is to only have to input the employees pay number in the cell of the duplicate form and their name would display in the corresponding cell in the printable form. I have a feeling you are going to tell me that there is a much simpler solution.
    thanks Paul
    Attached Files Attached Files

  4. #4
    Forum Expert Paul's Avatar
    Join Date
    02-05-2007
    Location
    Wisconsin
    MS-Off Ver
    2016/365
    Posts
    6,885

    Re: Find value in one column, display the text from adjacent colomn

    Is this what you're after? Person enters their employee # in L2 and consequently cell A2 is updated with their name (based on the values in Q:R)?

    In A2:
    =VLOOKUP(L2,$Q$2:$R$10,2,0)

    To hide an error if no match was found:

    Excel 2003 and earlier:
    =IF(ISERROR(VLOOKUP(L2,$Q$2:$R$10,2,0)),"",VLOOKUP(L2,$Q$2:$R$10,2,0))

    Excel 2007 and later:
    =IFERROR(VLOOKUP(L2,$Q$2:$R$10,2,0),"")
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    03-04-2010
    Location
    Windsor, Ontario
    MS-Off Ver
    Excel 2000
    Posts
    3

    Thumbs up Re: Find value in one column, display the text from adjacent colomn

    Thanks Paul. I used the formula below that you submitted and it worked in one section but not in the others when I copied and pasted it in. It took me quite awhile to figure out why.
    Turned out that the cells where it was working were formatted as text and the rest of the spreadsheet was formatted as numbers.
    Thanks for the fast and accurate response.
    Tod

    Excel 2003 and earlier:
    =IF(ISERROR(VLOOKUP(L2,$Q$2:$R$10,2,0)),"",VLOOKUP(L2,$Q$2:$R$10,2,0))

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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