+ Reply to Thread
Results 1 to 7 of 7

Index/Match not picking up with nth instances in list

  1. #1
    Registered User
    Join Date
    01-04-2013
    Location
    Pittsburgh, Pennsylvania
    MS-Off Ver
    Excel 2010
    Posts
    13

    Index/Match not picking up with nth instances in list

    Hey everyone,

    I'm currently working on a rather large report to help my executive management team identify the number of "New" vs. "Current" customers who financed with our company during 2015 (sample chart shown below, and Excel attached). For the purpose of this sample, let's say I work for ABC Company.

    Column "Analysis 1" is a helper column that I added to identify which customers are definitely current customers based on whether a date exists under "Inactive Date" that is +/- 15 days of the date under "Final Approval Date". If column "ABC Company Status" shows "active", then they are also a "current customer". Every other customer = "New Customer".

    The formula that I'm currently using (and having trouble with) is under column "Current or New":
    =IF([@[ABC Co. Status]]="Active", "Current Customer",IF(INDEX([Analysis 1],MATCH([@Grouping],[Grouping],0))<>"", INDEX([Analysis 1],MATCH([@Grouping],[Grouping],0)),"New Customer")).
    • The issue I'm running into though is that this formula doesn't pick up on instances where the entry isn't the first instance in the grouping (even if it matches the criteria)... For example, Row 7 "Jake" should be a current customer based on the "Analysis 1" designation, as should Row 19 "Katie". I think that Small could be used.... but I'm not familiar enough with that function to know where to start with it (if it fits at all for that matter).


    Row # Grouping ID # Name Final Approval Date File Status Liability Liability Co. Name Liability Acct # ABC Co. Status Inactive Date Analysis 1 Current or New
    1 1 123456 John 01-30-15 10 1st Mortgage ABC Company 123 Active Current Customer
    2 2 987654 Jill 04-01-15 10 1st Mortgage ABC Co. 456 Inactive 04-05-15 Current Customer Current Customer
    3 2 987654 Jill 04-01-15 10 1st Mortgage Wells Fargo 789 Current Customer
    4 2 987654 Jill 04-04-15 10 1st Mortgage BMX Industrial 987 Current Customer
    5 3 7894561 Jake 06-18-15 10 1st Mortgage BNY Mellon 654 New Customer
    6 3 7894561 Jake 06-18-15 10 1st Mortgage Bank Of America 321 New Customer
    7 3 7894561 Jake 06-18-15 10 1st Mortgage ABC Company 135 Inactive 06-19-15 Current Customer New Customer
    8 3 7894561 Jake 06-18-15 10 1st Mortgage Rochester Bank 679 New Customer
    9 4 654321 John 09-07-15 10 1st Mortgage BNY Mellon 976 New Customer
    10 4 654321 John 09-07-15 10 1st Mortgage Discover Card 523 New Customer
    11 5 555555 Henry 10-12-15 10 1st Mortgage Bank Of America 741 New Customer
    12 5 555555 Henry 10-12-15 10 1st Mortgage BMX Industrial 852 New Customer
    13 5 555555 Henry 10-12-15 10 1st Mortgage ABC Co. 963 Inactive 06-01-03 New Customer New Customer
    14 6 222222 Katie 11-02-15 10 1st Mortgage Quicken Loans 111 New Customer
    15 6 222222 Katie 11-02-15 10 1st Mortgage Bank of New York 222 New Customer
    16 6 222222 Katie 11-02-15 10 1st Mortgage Nationstar 333 New Customer
    17 6 222222 Katie 11-02-15 10 1st Mortgage Lenders Choice 999 New Customer
    18 6 222222 Katie 11-02-15 10 1st Mortgage Rochester Bank 888 New Customer
    19 6 222222 Katie 11-02-15 10 1st Mortgage ABC Co. 777 Inactive 11-03-15 Current Customer New Customer


    Any suggestions on how to solve for this would be much appreciated. Thank you in advance!
    Attached Files Attached Files
    Last edited by Ebo12; 01-22-2016 at 11:54 AM. Reason: clarification

  2. #2
    Registered User
    Join Date
    01-04-2013
    Location
    Pittsburgh, Pennsylvania
    MS-Off Ver
    Excel 2010
    Posts
    13

    Re: Index/Match not picking up with nth instances in list

    To further clarify - The intent of this is to have the formula under the last column "Current or New" (column M) display the same (and correct) designation of "Current Customer"/"New Customer" per grouping #. This way I can just use "Remove duplicates" in Excel (once the formula is working) and not have to worry about deleting the wrong entry...

    Example: Grouping 3 "Jake" (which is Row # 5,6,7,8), should display "Current Customer" for each instance of the grouping # (since at least one instance of the grouping # is +/- 15 days, or Active).

  3. #3
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 365 version 2501
    Posts
    18,960

    Re: Index/Match not picking up with nth instances in list

    Try this formula:
    Please Login or Register  to view this content.
    Let me know if you have any questions.
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

  4. #4
    Registered User
    Join Date
    01-04-2013
    Location
    Pittsburgh, Pennsylvania
    MS-Off Ver
    Excel 2010
    Posts
    13

    Re: Index/Match not picking up with nth instances in list

    JeteMC,

    That worked very well man, thank you for taking the time to work a solution and also respond! Do you mind if I ask for a favor though? Management just asked me to set any instance of if [@Inactive Date]-[Final Approval Date]>=-365 Then "Current Customer" else "New Customer". I added this to column L ("Analysis 1") and it is working.

    However, this caused your formula to break and show conflicting results per entry now (sample below). Basically, one instance of this new condition in L equaling to "New Customer" sets the other groupings to "New Customer" (unless a line in the grouping meets your formula's condition for "Current Customer").

    Row # Grouping ID # Name Final Approval Date File Status Liability Liability Co. Name Liability Acct # ABC Co. Status Inactive Date Analysis 1 Current or New
    2 2 987654 Jill 04-01-15 10 1st Mortgage ABC Co. 456 Inactive 03-01-14 New Customer New Customer
    3 2 987654 Jill 04-01-15 10 1st Mortgage ABC Co. 789 Active Current Customer
    4 2 987654 Jill 04-01-15 10 1st Mortgage BMX Industrial 987 New Customer


    Would you be able to have the formula take precedence over the other conditions and say something to the effect of "If at least one entry in the grouping equates to "Current Customer", then "Current Customer" for all lines in the grouping"? Thank you again for your help on this one!

  5. #5
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 365 version 2501
    Posts
    18,960

    Re: Index/Match not picking up with nth instances in list

    Try this modification:
    Please Login or Register  to view this content.
    Let me know if you have any questions.

  6. #6
    Registered User
    Join Date
    01-04-2013
    Location
    Pittsburgh, Pennsylvania
    MS-Off Ver
    Excel 2010
    Posts
    13

    Re: Index/Match not picking up with nth instances in list

    Hi JeteMC,

    That one didn't fully work on my end unfortunately. I'm still getting the same results as before for that example I provided above for grouping 2. Your formula did fix another instance I had on my sample table though where 1 loan in the group had an inactive date <-365 (no active files); so, there's something off but not by much... Thanks again for the help man

  7. #7
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 365 version 2501
    Posts
    18,960

    Re: Index/Match not picking up with nth instances in list

    Hmm, I think that I have my information set up the same as the example in post #4 and I am getting a result of "New Customer" in L3:L5, which is what I think you want. Check the attached file and see if if the set up matches yours, perhaps my formula for 'Analysis 1' doesn't match.
    Copy of New Customer Sample.xlsx
    Let me know if you have any questions.

+ 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. Index-Match Data Validation List not working
    By totally_lost in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 09-16-2014, 09:27 AM
  2. [SOLVED] Working INDEX MATCH with SEARCH, but I need to add another MATCH to the formula!
    By DaveBre in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 03-11-2014, 01:03 AM
  3. Correct/Working (Index,Match) formula not working between cells
    By barnerd in forum Excel Formulas & Functions
    Replies: 17
    Last Post: 02-11-2014, 01:20 PM
  4. Replies: 2
    Last Post: 05-24-2013, 09:32 AM
  5. Match up between two excel sheets having unordered data
    By pkdash83 in forum Excel General
    Replies: 3
    Last Post: 02-21-2011, 07:28 AM
  6. Replies: 1
    Last Post: 04-16-2010, 03:50 AM
  7. VBA lookup functions: unordered list
    By Dave32 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-03-2008, 10:14 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