Return Top 5 Accounts while excluding accounts placed on an "Exclusion" list

rhogsett

New Member
Joined
Jul 23, 2014
Messages
16
I have a list of customer accounts with various past due balances. I would like a formula to rank the accounts based on past due values while excluding specific accounts that have been placed on a separate "Do Not Include" list.

I have used LARGE, which works great until I need to exclude certain accounts from the Top 5 List. I am having difficulty finding/constructing a formula that can achieve the exampled Top 5 Highest Past Due Accounts below.

Please see the example below and please do let me know if there are questions I may clarify.

I have the report below...

Aging Report:
ABC
1Account #Customer NamePast Due Amount
21AAlpha1,000
32BBravo15,000
43CCharlie20,000
54DDelta5,000
65EEcho2,500
76FFoxtrot15,000
87GGolf17,000

<tbody>
</tbody>

...that needs to evaluate the exclusion list below...

Do Not Include:
AB
Excluded Account #Excluded Customer Name
102BBravo
113CCharlie

<tbody>
</tbody>

...in order to produce the results below:

Top 5 Highest Past Due Accounts:
ABC
20Account #Customer NamePast Due Amount
217GGolf17,000
226FFoxtrot15,000
234DDelta5,000
245EEcho2,500
251AAlpha1,000

<tbody>
</tbody>

Any assistance is greatly appreciated! Please let me know where I can provide further clarification.

Thank you,

RGH
 

Excel Facts

Back into an answer in Excel
Use Data, What-If Analysis, Goal Seek to find the correct input cell value to reach a desired result
Hi,

try this:

Book1
ABCD
1Account #Customer NamePast Due Amount
21AAlpha15
32BBravo15
43CCharlie20
54DDelta53
65EEcho2,54
76FFoxtrot152
87GGolf171
9
10Excluded Account #Excluded Customer Name
112BBravo
123CCharlie
Sheet2
Cell Formulas
RangeFormula
D2=IF(ISNUMBER(MATCH(B2,$B$11:$B$12,0)),"",1+SUMPRODUCT(($B$2:$B$8<>B$11)*($B$2:$B$8<>$B$12)*($C$2:$C$8>C2)))
 
Last edited:
Upvote 0
To output what is posted above in row 21:25 first array enter this formula in D23 as in below and fill down.

=LARGE(IF(ISNA(MATCH($B$2:$B$8,$B$15:$B$16,0)),$D$2:$D$8),ROWS($1:1))

If you aren’t familiar with array-entered formulas array enter means the formula must be committed from edit mode by simultaneously pressing and holding down Ctrl and Shift while hitting Enter. (CSE for short.)

Then array enter this one in B23 as in below, fill down and across.

=INDEX(B$2:B$8,SMALL(IF(($D23=$D$2:$D$8)*(ISNA(MATCH($B$2:$B$8,$B$15:$B$16,0))),ROW($B$2:$B$8)-MIN(ROW($B$2:$B$8))+1),COUNTIF($D$23:$D23,$D23)))

Assumes source data is in B2:D8 and exclude data is in B15:C16


Row\Col
A​
B​
C​
D​
22​
20​
Account #Customer NamePast Due Amount
23​
21​
7GGolf
17000​
24​
22​
6FFoxtrot
15000​
25​
23​
4DDelta
5000​
26​
24​
5EEcho
2500​
27​
25​
1AAlpha
1000​
 
Last edited:
Upvote 0
You are welcome. Glad it helped, and thank you for the feedback. :)
 
Upvote 0

Forum statistics

Threads
1,215,621
Messages
6,125,884
Members
449,268
Latest member
sGraham24

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top