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). 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 have instances on my report where "Active" customers are also incorrectly labeled. I think that maybe Small could be used to solve for this.... but I'm not familiar enough with that function to know where to start with it (if it even fits at all for that matter).
[table="width: 500, class: grid"]
[TR]
[th]Row #[/th]
[Th]Grouping[/Th]
[Th]ID #[/Th]
[Th]Name[/Th]
[Th]Final Approval Date[/Th]
[Th]File Status[/Th]
[Th]Liability[/Th]
[Th]Liability Co. Name[/Th]
[Th]Liability Acct #[/Th]
[Th]ABC Co. Status[/Th]
[Th]Inactive Date[/Th]
[Th]Analysis 1[/Th]
[Th]Current or New[/Th]
[/TR]
[TR]
[TD]1[/TD]
[TD]1[/TD]
[TD]123456[/TD]
[TD]John[/TD]
[TD]01-30-15[/TD]
[TD]10[/TD]
[TD]1st Mortgage[/TD]
[TD]ABC Company[/TD]
[TD]123[/TD]
[TD]Active[/TD]
[td][/td]
[td][/td]
[TD]Current Customer[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]2[/TD]
[TD]987654[/TD]
[TD]Jill[/TD]
[TD]04-01-15[/TD]
[TD]10[/TD]
[TD]1st Mortgage[/TD]
[TD]ABC Co.[/TD]
[TD]456[/TD]
[TD]Inactive[/TD]
[TD]04-05-15[/TD]
[TD]Current Customer[/TD]
[TD]Current Customer[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]2[/TD]
[TD]987654[/TD]
[TD]Jill[/TD]
[TD]04-01-15[/TD]
[TD]10[/TD]
[TD]1st Mortgage[/TD]
[TD]Wells Fargo[/TD]
[TD]789[/TD]
[td][/td]
[td][/td]
[td][/td]
[TD]Current Customer[/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]2[/TD]
[TD]987654[/TD]
[TD]Jill[/TD]
[TD]04-04-15[/TD]
[TD]10[/TD]
[TD]1st Mortgage[/TD]
[TD]BMX Industrial[/TD]
[TD]987[/TD]
[td][/td]
[td][/td]
[td][/td]
[TD]Current Customer[/TD]
[/TR]
[TR]
[TD]5[/TD]
[TD]3[/TD]
[TD]7894561[/TD]
[TD]Jake[/TD]
[TD]06-18-15[/TD]
[TD]10[/TD]
[TD]1st Mortgage[/TD]
[TD]BNY Mellon[/TD]
[TD]654[/TD]
[td][/td]
[td][/td]
[td][/td]
[TD]New Customer[/TD]
[/TR]
[TR]
[TD]6[/TD]
[TD]3[/TD]
[TD]7894561[/TD]
[TD]Jake[/TD]
[TD]06-18-15[/TD]
[TD]10[/TD]
[TD]1st Mortgage[/TD]
[TD]Bank Of America[/TD]
[TD]321[/TD]
[td][/td]
[td][/td]
[td][/td]
[TD]New Customer[/TD]
[/TR]
[TR]
[TD]7[/TD]
[TD]3[/TD]
[TD]7894561[/TD]
[TD]Jake[/TD]
[TD]06-18-15[/TD]
[TD]10[/TD]
[TD]1st Mortgage[/TD]
[TD]ABC Company[/TD]
[TD]135[/TD]
[TD]Inactive[/TD]
[TD]06-19-15[/TD]
[TD]Current Customer[/TD]
[TD]New Customer[/TD]
[/TR]
[TR]
[TD]8[/TD]
[TD]3[/TD]
[TD]7894561[/TD]
[TD]Jake[/TD]
[TD]06-18-15[/TD]
[TD]10[/TD]
[TD]1st Mortgage[/TD]
[TD]Rochester Bank[/TD]
[TD]679[/TD]
[td][/td]
[td][/td]
[td][/td]
[TD]New Customer[/TD]
[/TR]
[TR]
[TD]9[/TD]
[TD]4[/TD]
[TD]654321[/TD]
[TD]John[/TD]
[TD]09-07-15[/TD]
[TD]10[/TD]
[TD]1st Mortgage[/TD]
[TD]BNY Mellon[/TD]
[TD]976[/TD]
[td][/td]
[td][/td]
[td][/td]
[TD]New Customer[/TD]
[/TR]
[TR]
[TD]10[/TD]
[TD]4[/TD]
[TD]654321[/TD]
[TD]John[/TD]
[TD]09-07-15[/TD]
[TD]10[/TD]
[TD]1st Mortgage[/TD]
[TD]Discover Card[/TD]
[TD]523[/TD]
[td][/td]
[td][/td]
[td][/td]
[TD]New Customer[/TD]
[/TR]
[TR]
[TD]11[/TD]
[TD]5[/TD]
[TD]555555[/TD]
[TD]Henry[/TD]
[TD]10-12-15[/TD]
[TD]10[/TD]
[TD]1st Mortgage[/TD]
[TD]Bank Of America[/TD]
[TD]741[/TD]
[td][/td]
[td][/td]
[td][/td]
[TD]New Customer[/TD]
[/TR]
[TR]
[TD]12[/TD]
[TD]5[/TD]
[TD]555555[/TD]
[TD]Henry[/TD]
[TD]10-12-15[/TD]
[TD]10[/TD]
[TD]1st Mortgage[/TD]
[TD]BMX Industrial[/TD]
[TD]852[/TD]
[td][/td]
[td][/td]
[td][/td]
[TD]New Customer[/TD]
[/TR]
[TR]
[TD]13[/TD]
[TD]5[/TD]
[TD]555555[/TD]
[TD]Henry[/TD]
[TD]10-12-15[/TD]
[TD]10[/TD]
[TD]1st Mortgage[/TD]
[TD]ABC Co.[/TD]
[TD]963[/TD]
[TD]Inactive[/TD]
[TD]06-01-03[/TD]
[TD]New Customer[/TD]
[TD]New Customer[/TD]
[/TR]
[TR]
[TD]14[/TD]
[TD]6[/TD]
[TD]222222[/TD]
[TD]Katie[/TD]
[TD]11-02-15[/TD]
[TD]10[/TD]
[TD]1st Mortgage[/TD]
[TD]Quicken Loans[/TD]
[TD]111[/TD]
[td][/td]
[td][/td]
[td][/td]
[TD]New Customer[/TD]
[/TR]
[TR]
[TD]15[/TD]
[TD]6[/TD]
[TD]222222[/TD]
[TD]Katie[/TD]
[TD]11-02-15[/TD]
[TD]10[/TD]
[TD]1st Mortgage[/TD]
[TD]Bank of New York[/TD]
[TD]222[/TD]
[td][/td]
[td][/td]
[td][/td]
[TD]New Customer[/TD]
[/TR]
[TR]
[TD]16[/TD]
[TD]6[/TD]
[TD]222222[/TD]
[TD]Katie[/TD]
[TD]11-02-15[/TD]
[TD]10[/TD]
[TD]1st Mortgage[/TD]
[TD]Nationstar[/TD]
[TD]333[/TD]
[td][/td]
[td][/td]
[td][/td]
[TD]New Customer[/TD]
[/TR]
[TR]
[TD]17[/TD]
[TD]6[/TD]
[TD]222222[/TD]
[TD]Katie[/TD]
[TD]11-02-15[/TD]
[TD]10[/TD]
[TD]1st Mortgage[/TD]
[TD]Lenders Choice[/TD]
[TD]999[/TD]
[td][/td]
[td][/td]
[td][/td]
[TD]New Customer[/TD]
[/TR]
[TR]
[TD]18[/TD]
[TD]6[/TD]
[TD]222222[/TD]
[TD]Katie[/TD]
[TD]11-02-15[/TD]
[TD]10[/TD]
[TD]1st Mortgage[/TD]
[TD]Rochester Bank[/TD]
[TD]888[/TD]
[td][/td]
[td][/td]
[td][/td]
[TD]New Customer[/TD]
[/TR]
[TR]
[TD]19[/TD]
[TD]6[/TD]
[TD]222222[/TD]
[TD]Katie[/TD]
[TD]11-02-15[/TD]
[TD]10[/TD]
[TD]1st Mortgage[/TD]
[TD]ABC Co.[/TD]
[TD]777[/TD]
[TD]Inactive[/TD]
[TD]11-03-15[/TD]
[TD]Current Customer[/TD]
[TD]New Customer[/TD]
[/TR]
[/TABLE]
Any suggestions on how to solve for this would be much appreciated. Thank you in advance!
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). 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 have instances on my report where "Active" customers are also incorrectly labeled. I think that maybe Small could be used to solve for this.... but I'm not familiar enough with that function to know where to start with it (if it even fits at all for that matter).
[table="width: 500, class: grid"]
[TR]
[th]Row #[/th]
[Th]Grouping[/Th]
[Th]ID #[/Th]
[Th]Name[/Th]
[Th]Final Approval Date[/Th]
[Th]File Status[/Th]
[Th]Liability[/Th]
[Th]Liability Co. Name[/Th]
[Th]Liability Acct #[/Th]
[Th]ABC Co. Status[/Th]
[Th]Inactive Date[/Th]
[Th]Analysis 1[/Th]
[Th]Current or New[/Th]
[/TR]
[TR]
[TD]1[/TD]
[TD]1[/TD]
[TD]123456[/TD]
[TD]John[/TD]
[TD]01-30-15[/TD]
[TD]10[/TD]
[TD]1st Mortgage[/TD]
[TD]ABC Company[/TD]
[TD]123[/TD]
[TD]Active[/TD]
[td][/td]
[td][/td]
[TD]Current Customer[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]2[/TD]
[TD]987654[/TD]
[TD]Jill[/TD]
[TD]04-01-15[/TD]
[TD]10[/TD]
[TD]1st Mortgage[/TD]
[TD]ABC Co.[/TD]
[TD]456[/TD]
[TD]Inactive[/TD]
[TD]04-05-15[/TD]
[TD]Current Customer[/TD]
[TD]Current Customer[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]2[/TD]
[TD]987654[/TD]
[TD]Jill[/TD]
[TD]04-01-15[/TD]
[TD]10[/TD]
[TD]1st Mortgage[/TD]
[TD]Wells Fargo[/TD]
[TD]789[/TD]
[td][/td]
[td][/td]
[td][/td]
[TD]Current Customer[/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]2[/TD]
[TD]987654[/TD]
[TD]Jill[/TD]
[TD]04-04-15[/TD]
[TD]10[/TD]
[TD]1st Mortgage[/TD]
[TD]BMX Industrial[/TD]
[TD]987[/TD]
[td][/td]
[td][/td]
[td][/td]
[TD]Current Customer[/TD]
[/TR]
[TR]
[TD]5[/TD]
[TD]3[/TD]
[TD]7894561[/TD]
[TD]Jake[/TD]
[TD]06-18-15[/TD]
[TD]10[/TD]
[TD]1st Mortgage[/TD]
[TD]BNY Mellon[/TD]
[TD]654[/TD]
[td][/td]
[td][/td]
[td][/td]
[TD]New Customer[/TD]
[/TR]
[TR]
[TD]6[/TD]
[TD]3[/TD]
[TD]7894561[/TD]
[TD]Jake[/TD]
[TD]06-18-15[/TD]
[TD]10[/TD]
[TD]1st Mortgage[/TD]
[TD]Bank Of America[/TD]
[TD]321[/TD]
[td][/td]
[td][/td]
[td][/td]
[TD]New Customer[/TD]
[/TR]
[TR]
[TD]7[/TD]
[TD]3[/TD]
[TD]7894561[/TD]
[TD]Jake[/TD]
[TD]06-18-15[/TD]
[TD]10[/TD]
[TD]1st Mortgage[/TD]
[TD]ABC Company[/TD]
[TD]135[/TD]
[TD]Inactive[/TD]
[TD]06-19-15[/TD]
[TD]Current Customer[/TD]
[TD]New Customer[/TD]
[/TR]
[TR]
[TD]8[/TD]
[TD]3[/TD]
[TD]7894561[/TD]
[TD]Jake[/TD]
[TD]06-18-15[/TD]
[TD]10[/TD]
[TD]1st Mortgage[/TD]
[TD]Rochester Bank[/TD]
[TD]679[/TD]
[td][/td]
[td][/td]
[td][/td]
[TD]New Customer[/TD]
[/TR]
[TR]
[TD]9[/TD]
[TD]4[/TD]
[TD]654321[/TD]
[TD]John[/TD]
[TD]09-07-15[/TD]
[TD]10[/TD]
[TD]1st Mortgage[/TD]
[TD]BNY Mellon[/TD]
[TD]976[/TD]
[td][/td]
[td][/td]
[td][/td]
[TD]New Customer[/TD]
[/TR]
[TR]
[TD]10[/TD]
[TD]4[/TD]
[TD]654321[/TD]
[TD]John[/TD]
[TD]09-07-15[/TD]
[TD]10[/TD]
[TD]1st Mortgage[/TD]
[TD]Discover Card[/TD]
[TD]523[/TD]
[td][/td]
[td][/td]
[td][/td]
[TD]New Customer[/TD]
[/TR]
[TR]
[TD]11[/TD]
[TD]5[/TD]
[TD]555555[/TD]
[TD]Henry[/TD]
[TD]10-12-15[/TD]
[TD]10[/TD]
[TD]1st Mortgage[/TD]
[TD]Bank Of America[/TD]
[TD]741[/TD]
[td][/td]
[td][/td]
[td][/td]
[TD]New Customer[/TD]
[/TR]
[TR]
[TD]12[/TD]
[TD]5[/TD]
[TD]555555[/TD]
[TD]Henry[/TD]
[TD]10-12-15[/TD]
[TD]10[/TD]
[TD]1st Mortgage[/TD]
[TD]BMX Industrial[/TD]
[TD]852[/TD]
[td][/td]
[td][/td]
[td][/td]
[TD]New Customer[/TD]
[/TR]
[TR]
[TD]13[/TD]
[TD]5[/TD]
[TD]555555[/TD]
[TD]Henry[/TD]
[TD]10-12-15[/TD]
[TD]10[/TD]
[TD]1st Mortgage[/TD]
[TD]ABC Co.[/TD]
[TD]963[/TD]
[TD]Inactive[/TD]
[TD]06-01-03[/TD]
[TD]New Customer[/TD]
[TD]New Customer[/TD]
[/TR]
[TR]
[TD]14[/TD]
[TD]6[/TD]
[TD]222222[/TD]
[TD]Katie[/TD]
[TD]11-02-15[/TD]
[TD]10[/TD]
[TD]1st Mortgage[/TD]
[TD]Quicken Loans[/TD]
[TD]111[/TD]
[td][/td]
[td][/td]
[td][/td]
[TD]New Customer[/TD]
[/TR]
[TR]
[TD]15[/TD]
[TD]6[/TD]
[TD]222222[/TD]
[TD]Katie[/TD]
[TD]11-02-15[/TD]
[TD]10[/TD]
[TD]1st Mortgage[/TD]
[TD]Bank of New York[/TD]
[TD]222[/TD]
[td][/td]
[td][/td]
[td][/td]
[TD]New Customer[/TD]
[/TR]
[TR]
[TD]16[/TD]
[TD]6[/TD]
[TD]222222[/TD]
[TD]Katie[/TD]
[TD]11-02-15[/TD]
[TD]10[/TD]
[TD]1st Mortgage[/TD]
[TD]Nationstar[/TD]
[TD]333[/TD]
[td][/td]
[td][/td]
[td][/td]
[TD]New Customer[/TD]
[/TR]
[TR]
[TD]17[/TD]
[TD]6[/TD]
[TD]222222[/TD]
[TD]Katie[/TD]
[TD]11-02-15[/TD]
[TD]10[/TD]
[TD]1st Mortgage[/TD]
[TD]Lenders Choice[/TD]
[TD]999[/TD]
[td][/td]
[td][/td]
[td][/td]
[TD]New Customer[/TD]
[/TR]
[TR]
[TD]18[/TD]
[TD]6[/TD]
[TD]222222[/TD]
[TD]Katie[/TD]
[TD]11-02-15[/TD]
[TD]10[/TD]
[TD]1st Mortgage[/TD]
[TD]Rochester Bank[/TD]
[TD]888[/TD]
[td][/td]
[td][/td]
[td][/td]
[TD]New Customer[/TD]
[/TR]
[TR]
[TD]19[/TD]
[TD]6[/TD]
[TD]222222[/TD]
[TD]Katie[/TD]
[TD]11-02-15[/TD]
[TD]10[/TD]
[TD]1st Mortgage[/TD]
[TD]ABC Co.[/TD]
[TD]777[/TD]
[TD]Inactive[/TD]
[TD]11-03-15[/TD]
[TD]Current Customer[/TD]
[TD]New Customer[/TD]
[/TR]
[/TABLE]
Any suggestions on how to solve for this would be much appreciated. Thank you in advance!