+ Reply to Thread
Results 1 to 9 of 9

Lookup/Match - Compare 1 list to 2 other lists based on 2 columns - example provided

  1. #1
    Forum Contributor
    Join Date
    03-14-2013
    Location
    England
    MS-Off Ver
    2007
    Posts
    191

    Lookup/Match - Compare 1 list to 2 other lists based on 2 columns - example provided

    Hi,

    Hopefully the example I have made shows clearly what I am asking....

    There is a list of refs and line numbers to go with them, there can be duplicates of the refs for multiple client contracts, each will have a unique line number against that ref to tell them apart.

    There are 3 sheets: a list of ones due for renewal, a list of ones renewed, and a list of ones expired.

    I want to put formulas in the 3 columns for 'Renewed', 'Replaced', and 'Expired'.

    I have already done the Renewed column with this formula: (Array)

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    And this works fine.

    The problem with the other 2 columns is that one could be expired but then also recreated against that ref with a new line number. In that case it will appear on the expired list matching both ref and line number, and it will also appear on the renewed list matching the ref but with a new line number that didn't exist for that ref on the due list. The line number could exists for other refs on the due list though.

    So I need to match both columns A&B on the due list to columns A&B on Expired, but exclude if column A also matches the renewed lists while column B does not.

    As I said hopefully the example makes it clear what I am asking.

    Many thanks in advance for any help on this problem.
    Attached Files Attached Files
    Last edited by D.Lovell; 05-23-2015 at 04:16 PM.

  2. #2
    Valued Forum Contributor
    Join Date
    05-20-2013
    Location
    Ohio, USA
    MS-Off Ver
    Excel 2013
    Posts
    941

    Re: Lookup/Match - Compare 1 list to 2 other lists based on 2 columns - example provided

    If I understand you correctly... and I'm fairly certain I do... there's not enough information in your example to determine whether an expired was replaced. (I know you indicated them with notes... but I'm assuming the actual file don't have such notes. )

  3. #3
    Forum Contributor
    Join Date
    03-14-2013
    Location
    England
    MS-Off Ver
    2007
    Posts
    191

    Re: Lookup/Match - Compare 1 list to 2 other lists based on 2 columns - example provided

    I only put that there to hopefully make it clear what I mean, I was trying to make a formula to do it but struggling with it.

  4. #4
    Valued Forum Contributor
    Join Date
    05-20-2013
    Location
    Ohio, USA
    MS-Off Ver
    Excel 2013
    Posts
    941

    Re: Lookup/Match - Compare 1 list to 2 other lists based on 2 columns - example provided

    I realize that... but what I'm saying other than your notes, there is nothing to relate 122256|8 on any worksheet to 122226|12 on the Renewed worksheet. It is possible to write a formula that checks whether there is a Renewed that don't match any Due or Expired because there is no 122226|12 on either. However, if there are two or more such instances, there's no way to determine which matches which.

  5. #5
    Forum Contributor
    Join Date
    03-14-2013
    Location
    England
    MS-Off Ver
    2007
    Posts
    191

    Re: Lookup/Match - Compare 1 list to 2 other lists based on 2 columns - example provided

    I see what you are saying and this would be a problem in how I am intending to apply this. There will be multiple instances of 2 or more contracts being replaced to a new line under the same client reference.

    I have added another column of data that will be unique to each particular contract (I called it 'Serial No.' on the example), so when replaced to a new line, the data in this new column will remain the same.

    I am now continuing to try and figure out formulas that will correctly place a "Y" in one of the 3 columns for each line on the dues sheet.

    The logic of it as I see it is that: If one appears on both the renewed and expired sheet then it has been replaced.

    Any further help is much appreciated

  6. #6
    Forum Contributor
    Join Date
    03-14-2013
    Location
    England
    MS-Off Ver
    2007
    Posts
    191

    Re: Lookup/Match - Compare 1 list to 2 other lists based on 2 columns - example provided

    With new attachment....
    Attached Files Attached Files

  7. #7
    Forum Expert azumi's Avatar
    Join Date
    12-10-2012
    Location
    YK, Indonesia
    MS-Off Ver
    Excel 365
    Posts
    2,406

    Re: Lookup/Match - Compare 1 list to 2 other lists based on 2 columns - example provided

    Perhaps something like this? pls check for the results
    Attached Files Attached Files

  8. #8
    Valued Forum Contributor
    Join Date
    05-20-2013
    Location
    Ohio, USA
    MS-Off Ver
    Excel 2013
    Posts
    941

    Re: Lookup/Match - Compare 1 list to 2 other lists based on 2 columns - example provided

    Another method...

    Also, I noticed all the entries on Renewed and Expired are unique. Sorta messes things up if they are not. I copied one from Expired to Renewed. Get a "Y" in both renewed and expired columns (I tried it in azumi's file and it occurs there too). Makes me wonder how these are getting entered... as in if one is expired and not renewed, does it get removed from the expired list if it is renewed. Seems like a lot of extra effort when the entries could be all on one sheet and marked or flagged as they occur.
    Attached Files Attached Files

  9. #9
    Forum Contributor
    Join Date
    03-14-2013
    Location
    England
    MS-Off Ver
    2007
    Posts
    191

    Re: Lookup/Match - Compare 1 list to 2 other lists based on 2 columns - example provided

    Yes indeed this is what I meant.

    I had some luck with the COUNTIFS method too, after I added the new column of data. Interesting to see someone else's approach at it. I think the main issue is the to do with being able to tell them apart properly, like you said, line number and ref alone can leave situations where you can't. I think there is a way I can build this into the real thing by adding in a new column of data that can be made available.

    Thanks for the insight, I definitely got something worth while out of this.

+ 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. ARRAY FORMULA LIST: based on 2 lists (match)
    By thejames in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-26-2015, 10:31 PM
  2. Replies: 4
    Last Post: 11-19-2013, 10:32 AM
  3. Replies: 3
    Last Post: 06-06-2013, 12:51 PM
  4. Replies: 0
    Last Post: 01-15-2013, 11:30 AM
  5. [SOLVED] Compare 2 columns, and create a list of items that are in both lists
    By ruby2sdy in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-08-2005, 07:05 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