+ Reply to Thread
Results 1 to 2 of 2

Lookup Data table columns A and B and compare column C

  1. #1
    Registered User
    Join Date
    05-06-2020
    Location
    Zurich
    MS-Off Ver
    2016
    Posts
    1

    Lookup Data table columns A and B and compare column C

    I have my data table that looks like this:

    A B C
    1 Country Code Business Unit Archive location
    2 AE 0011 CH
    3 AE 0012 CH
    4 AE Others GB
    5 AR 0012 CH
    6 AR Others US
    7 AT All CH
    8 AU All SG
    9 BE All CH
    10 BH 0012 CH
    11 BH 0009 CH
    12 BH Others GB



    This is the data I need to find a formula to lookup the above data table under Column A AND B and check for match in Column C:

    A B C D
    1 Country BU Region Formula here
    2 AE 0011 CH
    3 AE 0006 GB
    4 AE Other CH
    5 AU All SG
    6 BH 0012 CH
    7 BH 0019 GB



    Example 1:
    1. Cell A2 to Lookup Data Table in column A
    a. If Result found:
    1. B2 to lookup Data Table in Column B
    a. If B2 is a match, check the value in C2 against Column C in Data Table and report if match or not
    b. If B2 is not a match, check the value in Column C in Data Table against either 'Other' or 'All'
    b. If no match, report not found


    I hope I have explained the requirements clearly enough. Lookup A2 against Column A in Data Table. If a match, check the value in B2 against Column B in Data Table. Report if C2 is a match to Column C in Data Table

    Any help would be much appreciated indeed.

    Thank you

    Danny

  2. #2
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Lookup Data table columns A and B and compare column C

    HOW TO ATTACH YOUR SAMPLE WORKBOOK:
    Fast answers need clear examples. Post a small Excel sheet (not a picture) showing realistic & representative sample data WITHOUT confidential information (10-20 rows, not thousands...) and some manually calculated results. Just before posting, scroll down to GO ADVANCED, click, and then scroll down to MANAGE ATTACHMENTS and click again. Now follow the instructions at the top of that screen.
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

+ 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] How to compare data from two columns if match get the result from third column
    By devawad in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-06-2017, 12:43 AM
  2. [SOLVED] Compare Data in 2 Columns in 2 sheet When there is a match transfer data from 2nd Column
    By kellyjo7 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 05-19-2015, 01:05 PM
  3. Replies: 1
    Last Post: 09-30-2014, 07:15 AM
  4. compare 2 columns if same lookup 3rd column and enter that data
    By cfinch100 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-26-2014, 10:28 AM
  5. Compare 2 columns of data and get unique values in the 3rd column
    By Eduard in forum Excel Programming / VBA / Macros
    Replies: 30
    Last Post: 04-04-2013, 08:32 AM
  6. [SOLVED] Two worksheets: Compare two columns in same row and add data in another column
    By SEOSEO.dk in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-03-2013, 03:15 AM
  7. Replies: 1
    Last Post: 01-15-2013, 01:23 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