+ Reply to Thread
Results 1 to 3 of 3

Complex Comparison formula between 2 separate tables

  1. #1
    Registered User
    Join Date
    08-27-2015
    Location
    MN
    MS-Off Ver
    2010
    Posts
    1

    Complex Comparison formula between 2 separate tables

    Hello all!

    I've been struggling to solve this issue. I apologize in advance, my excel skills are a bit weaker than I thought.

    Table 1 has Customer Number, each issue with the customer's file, and an indicator for whether the issue is pending (PN). Table 2 has customer numbers, each issue with the customer's file, and the date the issue was corrected.

    I need to compare table 1 to table 2, to check if issues showing as pending have a resolved date. The goal is to have a formula that pulls the customer number and doc from table 1, then searches table 2 for the row that has that same customer number and doc. If found, the formula returns the date.

    A short example of the tables are below (1 on left, 2 on right). Normally I keep them on separate tabs of the same workbook.

    8-27-2015 11-34-23 AM.png

    Thank you for any/all help!

  2. #2
    Forum Expert
    Join Date
    09-11-2014
    Location
    Washington, DC
    MS-Off Ver
    2016
    Posts
    1,907

    Re: Complex Comparison formula between 2 separate tables

    See attached for possible solution. It's hard to tell how exactly to set things up since no sample workbook was provided.
    Attached Files Attached Files
    Spread the love, add to the Rep

    "None of us are as smart as all of us."

  3. #3
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,939

    Re: Complex Comparison formula between 2 separate tables

    Another option - using mcm's file (thanks for that), put this regular formula in D1 and copy down...
    =IFERROR(INDEX($G$1:$G$12,MATCH(A1&B1,INDEX($E$1:$E$12&$F$1:$F$12,0),0)),"Still Pending")

    Note: mcm also forgot to mention that his formulas are ARRAY formulas
    ...confirmed by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER. You will know the array is active when you see curly braces { } appear around your formula. If you do not CTRL+SHIFT+ENTER you will get an error or a clearly incorrect answer. Press F2 on that cell and try again.
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

+ 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: 03-31-2015, 03:07 PM
  2. [SOLVED] Macro needed to Concatenate data in 2 separate tables of 2 separate sheets
    By 823 in forum Excel Programming / VBA / Macros
    Replies: 22
    Last Post: 02-08-2015, 02:02 PM
  3. [SOLVED] Complex comparison of columns (help!)
    By phil.aubert in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 07-07-2014, 05:03 PM
  4. [SOLVED] Complex multiple cells comparison formula
    By ALecsx in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 01-21-2014, 02:38 PM
  5. [SOLVED] Complex Sheets Comparison
    By CatherineAmerica568 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 09-04-2013, 09:05 PM
  6. [SOLVED] Complex Comparison forumula - Help
    By Rjwilliams93 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 07-08-2013, 06:58 PM
  7. Comparison for best results to complex for my small brain
    By gordon.worswick in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-04-2013, 05:59 AM

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