Longest streak by person in date range

TyStolp

New Member
Joined
Nov 24, 2016
Messages
2
Excel community,

I need help with this problem I have been trying to figure out for a few days. I have a spreadsheet with the following:

Column A: Y or N or NotRcvd or Blank. This determines whether that job was completed on time or not.
Column B: Persons Name. This shows who completed the job. There are about 12 different names in this column.

Column C: Date of Job. I have dates going back more than a year.

I would like to know the longest streak by a specific person in a specific date range. For example if one the people in column B is "John". I would like to know what the longest streak of "y"'s in a row in column A that "John" had between the date range of the previous 12 months.

Any help would be much appreciated.

Thanks!
 

Excel Facts

Copy a format multiple times
Select a formatted range. Double-click the Format Painter (left side of Home tab). You can paste formatting multiple times. Esc to stop
I think you would need to do a pivot table and have filter values of date and person.
 
Upvote 0
it's not exactly what you're looking for, but it would certainly give you a good idea
 
Upvote 0
TyStolp,

Maybe along these lines...
Excel Workbook
ABCDEFG
1CommentNameDate*Longest streak forJohn5
2yJohn01/01/2016****
3Njim02/01/2016****
4yBill03/01/2016****
5yBill04/01/2016****
6yJohn05/01/2016****
7yJohn06/01/2016****
8yJohn07/01/2016****
9yJohn08/01/2016****
10YJohn09/01/2016****
11NJohn10/01/2016****
12YFred11/01/2016****
13YFred12/01/2016****
14YFred13/01/2016****
15YFred14/01/2016****
16YFred15/01/2016****
17YFred16/01/2016****
18YFred17/01/2016****
19YJohn18/01/2014****
20YJohn19/01/2016****
21Ybill20/01/2016****
22NJohn21/01/2016****
23YJohn22/01/2016****
24YJohn23/01/2016****
25YJohn24/01/2016****
Sheet1


NB it is an Array formula and needs to be confirmed using Ctrl = Shift + Enter

Hope that helps.
 
Upvote 0
Snakehips,

Thanks for your quick response! I think that got it close, but it still doesn't seem right. I tried your formula in my spreadsheet and it returns a number, but the number doesn't seem to be correct.

See images below. I have 2 sheets. The first sheet is a dashboard that has statistics on it. The second sheet has all of the raw data. I have filtered the second sheet to show "Carlton". As you can see Carlton has had more than "3" in a row, which is what the newly inputted formula is resulting in.

3IakGr7.png
[/URL][/IMG]
7aY0504.png
[/URL][/IMG]
Thanks!
 
Upvote 0

Forum statistics

Threads
1,214,929
Messages
6,122,315
Members
449,081
Latest member
tanurai

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