+ Reply to Thread
Results 1 to 3 of 3

Finding a specific value in a spreadsheet and displaying a corresponding value if found.

  1. #1
    Registered User
    Join Date
    01-15-2013
    Location
    Colorado
    MS-Off Ver
    Excel 2003
    Posts
    2

    Finding a specific value in a spreadsheet and displaying a corresponding value if found.

    I have a spreadsheet with names in columns a, c, and e with corresponding values in columns b, d, and f.

    I am trying to ask the program to look for a specific name in column a. If the name is found, the value in the corresponding column b should be displayed.

    For example, if the name John Doe appears anywhere in column a (let's say cell a6), display the corresponding value in column b (in this case, b6).

    Thank you in advance,

    Sean

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,728

    Re: Finding a specific value in a spreadsheet and displaying a corresponding value if foun

    Suppose the name you are looking for is in G1, then you could use this formula in H1:

    =IF(COUNTIF(A:A,G1)>0,VLOOKUP(G1,A:B,2,0),IF(COUNTIF(C:C,G1)>0,VLOOKUP(G1,C:D,2,0),IF(COUNTIF(E:E,G1)>0,VLOOKUP(G1,E:F,2,0),"Not present")))

    Hope this helps.

    Pete

  3. #3
    Registered User
    Join Date
    01-15-2013
    Location
    Colorado
    MS-Off Ver
    Excel 2003
    Posts
    2

    Re: Finding a specific value in a spreadsheet and displaying a corresponding value if foun

    Fantastic!!

    Thanks for the quick response.

+ 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