formula to derive list clients who has become overdue

vinod9111

Active Member
Joined
Jan 21, 2009
Messages
426
Hi,

Need a formula to derive list of clients who has become overdue

Client Date
A 31/3/2017
B 25/3/2017
C 15/3/2017
D 5/3/2017

If the due is 17/3/2017, i want the formula to throw client name C and D who has become overdue.

any help will be appreciated.

regards.
Vinod
 

Excel Facts

Create a Pivot Table on a Map
If your data has zip codes, postal codes, or city names, select the data and use Insert, 3D Map. (Found to right of chart icons).

Excel 2010
ABCDE
1clientDatedue date3/17/2017
2A3/31/2017overdueC
3B3/25/2017D
4C3/15/2017 
5D3/5/2017 
6 
7 
Sheet1
Cell Formulas
RangeFormula
E2{=IF(ROWS($E$2:E2)>COUNTIF($B$2:$B$5,"<"&$E$1),"",INDEX($A$2:$A$5,SMALL(IF($B$2:$B$5<$E$1,ROW($B$2:$B$5)-ROW($B$2)+1),ROWS($E$2:E2))))}
E3{=IF(ROWS($E$2:E3)>COUNTIF($B$2:$B$5,"<"&$E$1),"",INDEX($A$2:$A$5,SMALL(IF($B$2:$B$5<$E$1,ROW($B$2:$B$5)-ROW($B$2)+1),ROWS($E$2:E3))))}
E4{=IF(ROWS($E$2:E4)>COUNTIF($B$2:$B$5,"<"&$E$1),"",INDEX($A$2:$A$5,SMALL(IF($B$2:$B$5<$E$1,ROW($B$2:$B$5)-ROW($B$2)+1),ROWS($E$2:E4))))}
E5{=IF(ROWS($E$2:E5)>COUNTIF($B$2:$B$5,"<"&$E$1),"",INDEX($A$2:$A$5,SMALL(IF($B$2:$B$5<$E$1,ROW($B$2:$B$5)-ROW($B$2)+1),ROWS($E$2:E5))))}
E6{=IF(ROWS($E$2:E6)>COUNTIF($B$2:$B$5,"<"&$E$1),"",INDEX($A$2:$A$5,SMALL(IF($B$2:$B$5<$E$1,ROW($B$2:$B$5)-ROW($B$2)+1),ROWS($E$2:E6))))}
E7{=IF(ROWS($E$2:E7)>COUNTIF($B$2:$B$5,"<"&$E$1),"",INDEX($A$2:$A$5,SMALL(IF($B$2:$B$5<$E$1,ROW($B$2:$B$5)-ROW($B$2)+1),ROWS($E$2:E7))))}
Press CTRL+SHIFT+ENTER to enter array formulas.
 
Upvote 0
Another option.

Excel Workbook
ABCDE
1clientDatedue date17/03/2017
2A31/03/2017overdueC
3B25/03/2017D
4C15/03/2017
5D5/03/2017
6
Overdue
 
Last edited:
Upvote 0
Hi Peter,

Can you also help me understand the formula, how it works.

regards.
Vinod

The two formulas are similar but Peter's does not require CSE since Aggregate can handle arrays without CSE.
This returns the row numbers
Code:
[COLOR=#800080]ROW([/COLOR][COLOR=teal]$B$2:$B$5[/COLOR][COLOR=#800080])-ROW([/COLOR][COLOR=teal]$B$2[/COLOR][COLOR=#800080])+1[/COLOR]

The dates are tested to see if it is overdue and if so will return true so you would get something like {FALSE;FALSE;3;4}.
the aggregate function 15 is the small function and 6 is to ignore error values.

This is an return 1 then 2 and so on. This is used in the K augment to tell aggregate to return the smallest then the second smallest, 3rd smalls....

This gives the row number for the index function.

Code:
[COLOR=#0000ff]ROWS[/COLOR][COLOR=#FF0000](E$2:E2[/COLOR])


You can use evaluate formula on the formulas tab in the ribbon to see what the formula does.
 
Upvote 0
Scott
Thanks for adding explanation. I didn't even notice post #5 as it was at the same time as mine. :)
 
Upvote 0
Thanks Scott and Peter, you guys are Champ.

Can we add one more conditions and get the data, if i add payment received date. Now i want to know the clients which are overdue by checking payment received date.



Client Date payment Received date
A 31/3/2017
B 25/3/2017 14/3/2017
C 15/3/2017
D 5/3/2017 5/3/2017
E 7/3/2017
 
Upvote 0
TNow i want to know the clients which are overdue by checking payment received date.
So you want to exclude any clients who have a date in the Payment Received Date?

Excel Workbook
ABCDEF
1clientDateP'ment Receiveddue date17/03/2017
2A31/03/2017overdueD
3B25/03/2017
4C15/03/201720/03/2017
5D5/03/2017
Overdue (2)
 
Last edited:
Upvote 0

Forum statistics

Threads
1,223,236
Messages
6,170,917
Members
452,366
Latest member
TePunaBloke

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