+ Reply to Thread
Results 1 to 2 of 2

Lookup using Index & Match to Return Unique Output

  1. #1
    Registered User
    Join Date
    11-26-2013
    Location
    Manila, Philippines
    MS-Off Ver
    Excel 2010
    Posts
    4

    Lookup using Index & Match to Return Unique Output

    hi everyone!

    hope you're all well.

    need your help with my macro-tool project. to give you an overview of my tool, this is actually a conflict of interest matching.
    my tool should identify whether a farmer's declared relationship with an employee, is actually declared back by the employee.

    for example:
    Farmer A declares Employee A as his father.
    Employee A declares Farmer A as his son.

    in the above example, they are matched, because they declared both relationship.

    I have 2 excel databases (FarmerDatabase.xlsx & EmployeeDatabase.xlsx).

    what vba codes can I use to check whether my farmers declared those employees:
    sample tables:

    MACRO TOOL:

    FARMER NAME DECLARED EMPLOYEE RELATIONSHIP
    Abalos, Tito Abjelina, Ailyn Aunt
    Abarra, Robert Abundo, Geronimo Emiliano Cousin-in-law
    Zaragoza, Florence Zamora, Jocelyn Daughter-in-law
    Hilario, Melvin Ongjuco, Rhon Stepson
    Navasca, Lalie Agapinan, Claire Stepmother
    Navasca, Lalie Alaman, Roger Brother-in-law

    FARMER DATABASE:

    EMPLOYEE NAME FARMER NAME Declared Relationship
    Abjelina, Ailyn Abalos, Tito Cousin
    Abundo, Geronimo Emiliano Abarra, Robert Grandfather
    Zamora, Jocelyn Zaragoza, Florence Stepsibling
    Ongjuco, Rhon Hilario, Melvin Stepson
    Agapinan, Claire Navasca, Lalie Wife
    Alaman, Roger Abendan, Liza Daughter
    Alaman, Roger Navasca, Lalie Husband

  2. #2
    Registered User
    Join Date
    11-26-2013
    Location
    Manila, Philippines
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: Lookup using Index & Match to Return Unique Output

    I forgot to say, these are 2 separate workbooks:
    (1) FarmerDatabase.xlsx (sheet=FarmerMatching)
    (2) EmployeeDatabase.xlsx (sheet=Employees_DB)

    also, in excel, I was able to check if they declared each other using this excel function:

    =IF(A3=INDEX([EmployeeDatabase.xlsx]Employees_DB!$D:$D,MATCH(B3,[EmployeeDatabase.xlsx]Employees_DB!$A:$A,0)), "YES", "NO")

+ 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] Index Match Formula doesn't recognize output from Right Formula as lookup value.
    By GoGators in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 07-10-2015, 11:33 AM
  2. Return a value with which combo of Lookup/Match/Index?
    By erickguz in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 10-20-2013, 04:27 AM
  3. [SOLVED] Lookup/Index/Match to Return Value of Higher number rather than lower# when inbetween
    By ReedDOT in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 08-16-2013, 11:56 PM
  4. Replies: 2
    Last Post: 02-02-2013, 05:24 PM
  5. [SOLVED] Lookup match index multiple values return other columns
    By martypocock in forum Excel Formulas & Functions
    Replies: 25
    Last Post: 11-07-2012, 10:57 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