Show next 10 future events based on todays date | duplicates issue

Jon1781

New Member
Joined
Jan 6, 2023
Messages
3
Office Version
  1. 365
Platform
  1. Windows
Hi all,

I've been wrangling with a problem all day and am hoping someone can help put me out of my misery. I have a dataset of tasks and their start dates (the actual dataset is much larger than the example) and I want to display the next 10 upcoming tasks in the future based on todays date. I've used a comination of INDEX, MATCH, SMALL and IF to produce an almost working result. The issue is when there are duplicate values (i.e. multiple tasks occuring on the same date) - I've coloured in pink the offending items - where the first example of the instance is duplicated.

Any thoughts or suggestions would be very much appreciated!

The formula I'm using is: =IFERROR(INDEX($B$4:$B$18,MATCH(SMALL(IF($C$4:$C$18>TODAY(),$C$4:$C$18),E4),$C$4:$C$18,0)),"")

Apologies for not using the plug-in to copy the data. The security on my device won't allow it :(

1673022436183.png
 

Excel Facts

Copy PDF to Excel
Select data in PDF. Paste to Microsoft Word. Copy from Word and paste to Excel.
Hi & welcome to MrExcel.
How about
Excel Formula:
=TAKE(SORT(FILTER(B4:C100,C4:C100>TODAY()),2,1),10,1)
 
Upvote 0
Hi & welcome to MrExcel.
How about
Excel Formula:
=TAKE(SORT(FILTER(B4:C100,C4:C100>TODAY()),2,1),10,1)
Thanks very much for the suggestion and for the welcome. It looks like it should work but I'm getting a #NAME? error.

1673024338209.png
 
Upvote 0
You may not have the TAKE function yet.
Try
Excel Formula:
=INDEX(SORT(FILTER(B4:C100,C4:C100>TODAY()),2,1),SEQUENCE(10),1)
 
Upvote 0
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,224,800
Messages
6,181,044
Members
453,014
Latest member
Chris258

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