Identify first occasion of consecutive dates

ollyhughes1982

Well-known Member
Joined
Nov 27, 2018
Messages
677
Office Version
  1. 365
Platform
  1. MacOS
Hi,

I have a spreadsheet of my runs and the dates on which I did them. I am trying to figure out a way to find out where I have done runs on consecutive numbers of dates - I am struggling to come up with a formula to do this. I know that it is likely some sort of FILTER(UNIQUE combined functions that are needed, but haven’t been unable to work it out.

Master Sheet.png


- Firstly, I want to list the first occasion where I did runs on two consecutive days.

- Secondly, I want to list the first occasion where I did runs on three consecutive days.

- Thirdly, I want to list the first occasion where I did runs on four consecutive days.

These will be on three separate worksheets (see image and attachment). I only want each spreadsheet to show anything if at least one run has been completed, otherwise leave the coloured cells blank. For illustration I have highlighted the rows in corresponding colours on the data source (first) worksheet.

Sheet 2.png
Sheet 3.png
Sheet 4.png


Here is a link to the file (it’s small and will open quickly): Headers.xlsx

Thanks in advance!

Olly.
 

Excel Facts

How to show all formulas in Excel?
Press Ctrl+` to show all formulas. Press it again to toggle back to numbers. The grave accent is often under the tilde on US keyboards.
I have now come up with a formula that correctly identifies the streaks and numbers them, in a helper column (column GE).

Screenshot 2022-07-03 at 13.54.00.jpg


The updated file is located here: Headers_v2.xlsx

Now, all I need is a formula that will pick up the earliest occurring streak of each type (2, 3 and 4) and enter that earliest streak's event names and dates into each of the relevant 3 worksheets cells.

I have manually populated the three sheets with the entries I would expect to see. I'm pretty sure it is some sort of filter function I need, but I can't figure it out.

Thanks!
 
Upvote 0
Good to hear you got the solution.

If you would like to post the solution then it is perfectly fine to mark your post as the solution to help future readers. Otherwise, please do not mark a post that doesn't contain a solution.
 
Upvote 0
Good to hear you got the solution.

If you would like to post the solution then it is perfectly fine to mark your post as the solution to help future readers. Otherwise, please do not mark a post that doesn't contain a solution.
Ok, apologies I wasn’t sure how to explain as it was provided in an uploaded file, so thought I would pin point where it was. Thanks
 
Upvote 0

Forum statistics

Threads
1,215,731
Messages
6,126,537
Members
449,316
Latest member
sravya

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