find 5 oldest files and their names based their status

superjoe84

New Member
Joined
Apr 1, 2011
Messages
7
excel.jpg




F2 = {=INDEX(A2:A11,MATCH(LARGE(IF(B2:B11="in",C2:C11),1),C2:C11,0),1)}
F3 = {=INDEX(A2:A11,MATCH(LARGE(IF(B2:B11="in",C2:C11),2),C2:C11,0),1)}
F4 = {=INDEX(A2:A11,MATCH(LARGE(IF(B2:B11="in",C2:C11),3),C2:C11,0),1)}
and so on to find the 5 oldest files in order of oldest first. this works fine if the number of days is different on all, but when there is duplication and the file above is out, MATCH() finds it before the file that is in. eg F6 should read 3 instead of 2. does any of that make sense to anyone other than me? this is just a sampling, my document looks at over a hundred entries so this error occurs a lot. how do i fix it?
 
Last edited:

Excel Facts

Easy bullets in Excel
If you have a numeric keypad, press Alt+7 on numeric keypad to type a bullet in Excel.
Excel Workbook
ABCDE
1file #in\outdaysOldest
21in254
32out1710
43in171
54in328
65out73
76out5
87out9
98in24
109out24
1110in30
Sheet
 
Last edited:
Upvote 0

Forum statistics

Threads
1,214,947
Messages
6,122,411
Members
449,081
Latest member
JAMES KECULAH

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