Conditional consecutive date formula challenge

Domski

Well-known Member
Joined
Jan 18, 2005
Messages
7,292
Tricky one for you formula gurus.

I have data like below and for each individual I would like to work back from the most recent record and identify the earliest start date for consecutive records.

Pers NumStart DateEnd Date
0012345626/11/200731/03/2008
0012345601/04/200830/09/2008
0012345615/10/201231/03/2013
0012345601/04/201331/07/2013
0012345601/08/201331/12/2014
0012345601/01/201531/08/2015
0012121201/04/200702/09/2007
0012121203/09/200725/11/2007
0012121226/11/200731/03/2008
0012121201/04/200931/01/2010
0012121201/02/201031/12/2011
0012121202/07/201308/12/2014
0012121209/12/201431/12/2014
0012121201/01/201531/12/2015

<tbody>
</tbody>


So for the two examples above the results would be:

Pers NumResult
0012345615/10/2012
0012121202/07/2013

<tbody>
</tbody>

I can do it by sorting the data and adding a helper column but was wondering if it was possible with a single formula.

Cheers,

Dom
 

Excel Facts

Pivot Table Drill Down
Double-click any number in a pivot table to create a new report showing all detail rows that make up that number
ctrl+shift+enter:
=MIN(IF(A2:A20=K1,B2:B20))
where K1 (formatted as text) contains the 00123456 or 00121212
 
Upvote 0
ctrl+shift+enter:
=MIN(IF(A2:A20=K1,B2:B20))
where K1 (formatted as text) contains the 00123456 or 00121212

Thanks but that will only return the earliest date in the list for each employee. I want the earliest start date only taking into account records that have consecutive start and end dates going back from the most recent record.

Dom
 
Upvote 0

Forum statistics

Threads
1,214,839
Messages
6,121,892
Members
449,058
Latest member
Guy Boot

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