+ Reply to Thread
Results 1 to 4 of 4

Lookup Value from 2 Columns and then use the IF Function

  1. #1
    Registered User
    Join Date
    06-21-2016
    Location
    Liverpool, England
    MS-Off Ver
    Office 365 ProPlus
    Posts
    25

    Post Lookup Value from 2 Columns and then use the IF Function

    Hi All,

    Please bare with me as this is my first post and not sure if the answer to this is somewhere else in the forum.

    I have a table of data for which i am trying to find a certain outcome and upon finding the outcome returning a simple "Yes" or "No" outcome.

    I believe it something to do with a VLOOKUP and an IF function but having no luck with this.

    I am trying to use find a function that i can use where i locate a client's name from a list where it could contain their name multiple times in the same list to then look into another column to see if that client has been seen by one of members of staff then return an outcome if they have or not been seen.

    For Example;
    Client Name Client Seen? Date Seen
    John Smith No
    Tracy Spears No
    John Smith Yes 19/06/2016
    John Smith Yes 25/02/2016

    In the above example you can see the name John Smith appears multiple times in the table.

    I have another table that has a clean list of client names (No Duplicates) and i am trying to compare this list with the above table to find out if that person has been seen and if so return a "Yes" value or return a "No" value if they have not been seen. When i use the VLOOKUP function this only returns the first value it finds in the list which is not what i am after.

    I hope the above example is clear in what i am trying to achieve.

    Any help on this matter would be extremely useful.

    Many Thanks in Advance

  2. #2
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Lookup Value from 2 Columns and then use the IF Function

    Try

    =IF(COUNTIFS(A:A,"John Smith",B:B,"Yes")>0,"Yes","No")

  3. #3
    Registered User
    Join Date
    06-21-2016
    Location
    Liverpool, England
    MS-Off Ver
    Office 365 ProPlus
    Posts
    25

    Re: Lookup Value from 2 Columns and then use the IF Function

    Thanks for the quick response and yes that has worked a treat.

    I think i was trying to overcomplicate the issue and just needed a 2nd pair of eyes to see where i was going wrong.

    Can't believe i didn't think of this solution sooner.

    Many Thanks again.

  4. #4
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Lookup Value from 2 Columns and then use the IF Function

    You're welcome.

+ 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. Lookup function for two columns and one row
    By fsjdiofsnd in forum Excel General
    Replies: 4
    Last Post: 08-05-2014, 10:14 AM
  2. lookup function over even number columns
    By leewcrawford in forum Excel General
    Replies: 1
    Last Post: 02-26-2009, 05:06 PM
  3. Lookup function skipping columns
    By Niek Otten in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-06-2005, 07:05 AM
  4. Lookup function skipping columns
    By Niek Otten in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-06-2005, 06:05 AM
  5. [SOLVED] Lookup function skipping columns
    By Niek Otten in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-06-2005, 04:05 AM
  6. [SOLVED] Lookup function skipping columns
    By LaurenLa in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 12:05 AM
  7. [SOLVED] Lookup function skipping columns
    By LaurenLa in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-05-2005, 11:05 PM

Tags for this Thread

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