Find the Out of Sequence Date

gr8whthunter76

New Member
Joined
Feb 16, 2021
Messages
22
Office Version
  1. 365
Platform
  1. Windows
I've gotten pretty good with Excel thanks to you all, but I can't figure this one out in the image. I'm looking to find the month out of sequence. In the example I have Nov 2006, Dec 2006, Jan 2007 and then it jumps to Jul 2008, Aug 2008 and Sep 2008. What I am trying to do is extract the first cell that begins the sequence and the last cell before the sequence changes. Ultimately something that in AA12 would beginning the sequence and then in AB12 have the last date in the sequence. Then in AA13 and AB 13 have the next dates in the sequence and so on. So it would query from Y12 to Y20 and see y12, y13 and y14 are all in sequence and y15 isn't so in aa12 it would be Nov 2006 and ab12 would be Jan 2007. Not sure if I have to combine the dates into one column either such as instead of y12 is Nov and z12 is 2006 maybe combine them in another cell and then sequence them. Not sure if this is possible or not.

Thanks as always!!!!!
 

Attachments

  • dates.JPG
    dates.JPG
    24.1 KB · Views: 13

Excel Facts

Will the fill handle fill 1, 2, 3?
Yes! Type 1 in a cell. Hold down Ctrl while you drag the fill handle.
I'm not crazy about this - you can't start in row 1:

MrExcelPlayground11.xlsx
ABCDE
2NOV200611/1/200611/1/20061/1/2007
3DEC200612/1/20067/1/20089/1/2008
4JAN20071/1/20079/1/202110/1/2021
5JUL20087/1/2008
6AUG20088/1/2008
7SEP20089/1/2008
8SEP20219/1/2021
9OCT202110/1/2021
Sheet18
Cell Formulas
RangeFormula
D2:D4D2=FILTER(C2:C9,C2:C9-C1:C8>35)
E2:E4E2=FILTER(C2:C9,INDEX((C2:C9-C1:C8),(MOD(SEQUENCE(ROWS((C2:C9-C1:C8))),ROWS((C2:C9-C1:C8)))+1),1)>35)
C2:C9C2=VALUE("1/"&A2&"/"&B2)
Dynamic array formulas.
 
Upvote 0

Forum statistics

Threads
1,215,044
Messages
6,122,827
Members
449,096
Latest member
Erald

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