+ Reply to Thread
Results 1 to 6 of 6

Look up Three Values return true or false

  1. #1
    Registered User
    Join Date
    09-20-2022
    Location
    Nottingham
    MS-Off Ver
    365
    Posts
    1

    Question Look up Three Values return true or false

    Hi

    I have a look up problem.

    Scenario:

    Two table with slightly different data sets with over 3000 rows or data each, no unique identifier in any single column.
    The only data that is shared between the tables are an ID number (which is on both tables multiple times) Start date and a finish date.

    Requirements:

    Lookup the ID, start date and finish date columns on table A against the same columns on Table B, if all three match on the same row the give a true or positive statement, if all three don't match then give a false or negative statement.

    Essentially I want to know if any of the rows in table A are on table B and then have them highlighted.

    Any help would be greatly appreciated.

    Thanks

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,460

    Re: Look up Three Values return true or false

    Welcome to the forum.

    There are instructions at the top of the page explaining how to attach your sample workbook. Screenshots are of little practical use as we cannot manipulate them.

    A good sample workbook has just 10-20 rows of representative data that has been desensitised. It also has expected results mocked up, worked examples where required, relevant cells highlighted and a few explanatory notes.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Forum Expert
    Join Date
    10-09-2014
    Location
    Newcastle, England
    MS-Off Ver
    2003 & 2013
    Posts
    1,986

    Re: Look up Three Values return true or false

    create a hidden helper column and in it add the following (assuming your columns for ID, start and finish are A,B,C (for the purposes of this we'll assume so and that you've entered this in column D

    =A1&B1&C1

    Then use MATCH to check if a corresponding record exists, to search you'll need to pass the 3 values in the same way as above so lets assume you're other values are in columns AA, AB, AC

    eg

    Please Login or Register  to view this content.
    will check rows 1 to 1000 to see if those values exist and return the row number of the 1st that does, if not then it returns 0
    If someone has helped you then please add to their Reputation

  4. #4
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,377

    Re: Look up Three Values return true or false

    If you don't need to return any matching values, you could just use COUNTIFS to check for matching/duplicate entries.
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  5. #5
    Forum Guru HansDouwe's Avatar
    Join Date
    06-21-2022
    Location
    Nederland
    MS-Off Ver
    365 V2403 (Build 17330.20000)
    Posts
    6,410

    Re: Look up Three Values return true or false

    Please try in D1 and copy down:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Attached Files Attached Files
    Last edited by HansDouwe; 09-20-2022 at 04:43 PM. Reason: sample file attached

  6. #6
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,377

    Re: Look up Three Values return true or false

    Based on HansDouwe's sample workbook:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    copied down.

    And, with O365,
    Formula: copy to clipboard
    Please Login or Register  to view this content.

+ 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: 3
    Last Post: 08-16-2018, 06:07 AM
  2. [SOLVED] IF logical test pass return with 1st LOOKUP if true, if false then return with 2nd VLOOKUP
    By powerzasty in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-21-2017, 03:55 PM
  3. Search for values and return true or false value
    By awd2013 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 01-12-2015, 02:01 PM
  4. Function to search Column for a range of values and return TRUE or FALSE
    By BamBamMoneyBags in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 02-05-2013, 05:59 AM
  5. Replies: 2
    Last Post: 02-17-2011, 10:15 PM
  6. Replies: 3
    Last Post: 07-15-2006, 05:20 AM
  7. [SOLVED] Function to return True/False if all are validated as True by ISNU
    By Tetsuya Oguma in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-15-2006, 06:30 AM

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