Display List of Licenses Due

paulpax84

New Member
Joined
Jan 11, 2017
Messages
4
Hi everyone first of all my apologies if this is something really simple I should be able to figure out on my own.

I currently have a spread sheet in which users input the date an individuals license is due to expire. For example in the worksheet titled "MHE" the employees name would be in cell A8 with the date the license is due to expire sitting in cell F8. The data table can run approximately 200 rows down with each individual employee having a full row detailing the expiration dates for various pieces of kit.

I would like to formulate a list on a separate sheet title "Summary" showing any licenses which would be due to expire in the next six months. I know I could use IF functions to return the name if the date falls within a range for each row. Although, for example if only rows 30, 60 and 80 were due to expire it would mean the list on the summary tab would have lots of empty cells with data sporadically displayed and without sorting would remain this way.

Is there a way to populate this list without have these huge gaps appearing?

Hopefully I have explained it in an understandable way.

Any help would be much appreciated.
 

Excel Facts

Move date out one month or year
Use =EDATE(A2,1) for one month later. Use EDATE(A2,12) for one year later.
Sheet MHE
A
B
C
D
E
F
7
name
expire
8
empl1
10/1/2017
9
empl2
10/1/2017
10
empl3
11/1/2018
11
empl4
3/7/2018
12
empl5
10/1/2017
13
empl6
10/1/2017
14
empl7
10/1/2017
15
empl8
10/1/2017
16
empl9
10/1/2017
17
empl10
10/1/2017
18
empl11
10/1/2017
19
empl12
7/1/2018
20
empl13
10/1/2017
21
empl14
10/1/2017
22
empl15
10/1/2017
23
empl16
10/1/2017
34
empl17
10/1/2018

<tbody>
</tbody>

Summary Sheet
A
B
1
name
exp date
2
empl1
10/1/2017
3
empl2
10/1/2017
4
empl4
3/7/2018
5
empl5
10/1/2017
6
empl6
10/1/2017
7
empl7
11/7/2017
8
empl8
10/1/2017
9
empl9
10/1/2017
10
empl10
10/1/2017
11
empl11
10/1/2017
12
empl13
10/1/2017
13
empl14
10/1/2017
14
empl15
12/1/2017
15
empl16
10/1/2017

<tbody>
</tbody>

On the Summary sheet in A2
This is an array formula and must be committed with CONTROL+SHIFT+ENTER. If done correctly Excel will put {} around the formula.
Code:
=IF(ROWS($A$2:A2)>COUNTIFS(MHE!$F$8:$F$24,"<"&EDATE(TODAY(),6)),"",INDEX(MHE!$A$8:$A$24,SMALL(IF(EDATE(TODAY(),6)>MHE!$F$8:$F$24,ROW(MHE!F$8:F$24)-ROW(MHE!F$8)+1),ROWS($A$2:A2))))

in B2
This is an array formula and must be committed with CONTROL+SHIFT+ENTER. If done correctly Excel will put {} around the formula.
Code:
=IF(ROWS($A$2:B2)>COUNTIFS(MHE!$F$8:$F$24,"<"&EDATE(TODAY(),6)),"",INDEX(MHE!$F$8:$F$24,SMALL(IF(EDATE(TODAY(),6)>MHE!$F$8:$F$24,ROW(MHE!G$8:G$24)-ROW(MHE!G$8)+1),ROWS($A$2:B2))))

Copy the formulas down
 
Upvote 0
this solution also arranged them with the earliest expired at the top


Excel 2013/2016
ABCDEF
1NameExpire dateNameExpire date
2Name103/05/2018Name818/03/2018
3Name220/06/2018Name2023/04/2018
4Name323/01/2018Name103/05/2018
5Name401/11/2017Name1816/05/2018
6Name527/06/2018Name220/06/2018
7Name610/01/2018Name527/06/2018
8Name731/07/2018Name1314/07/2018
9Name818/03/2018Name1129/07/2018
10Name912/12/2017Name731/07/2018
11Name1024/08/2018Name1204/08/2018
12Name1129/07/2018Name1024/08/2018
13Name1204/08/2018
14Name1314/07/2018
15Name1411/02/2018
16Name1521/11/2017
17Name1617/01/2018
18Name1710/12/2017
19Name1816/05/2018
20Name1904/01/2018
21Name2023/04/2018
Sheet1
Cell Formulas
RangeFormula
F2=IFERROR(INDEX($B$2:$B$21,MATCH(E2,$A$2:$A$21,0)),"")
E2{=IFERROR(INDEX($A$2:$A$21,MATCH(SMALL(IF(($B$2:$B$21-TODAY())>365/2,$B$2:$B$21),ROW(2:2)-ROW($1:$1)),$B$2:$B$21,0)),"")}
Press CTRL+SHIFT+ENTER to enter array formulas.
 
Upvote 0

Forum statistics

Threads
1,216,095
Messages
6,128,790
Members
449,468
Latest member
AGreen17

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