Count of consecutive months same data value appears

rhonllanders

New Member
Joined
Mar 21, 2023
Messages
14
Office Version
  1. 365
Platform
  1. Windows
=LET(s,SEQUENCE(999),XLOOKUP(0,IFNA(MATCH(EDATE(A2,-s),FILTER(A$2:A2,(B$2:B2=B2)*(C$2:C2=C2)*(D$2:D2=D2)),0),0),s))

Hi! I need a little guidance on the above formula that I have been using since Jun 2023 and it worked perfectly, but once I added data for Jun 2024 it doesn’t seem to count consecutive months anymore. The formula was built to look for the same Task Key, Exception and Issue Key combo (helper) and count their recurrence in consecutive months only. Example: If issue appeared in Jun-2023 and July-2023 but was resolved in Aug-2023 and then the same issue (helper) reappeared in Sep-2023, the count of consecutive months would start over beginning with Sep-2023. Ideally, I'd like to use just the helper as the unique identifier.

For some reason, it is not working now that my data contains Jun 2023 and Jun 2024.

Please let me know if more detail is needed. And thanks in advance for any guidance.

ABCDEF
MonthTask KeyExceptionIssue Keyhelper# Consecutive Months Unresolved
6/1/2023ABC-1234567890Overdue IssueI543210ABC-1234567890Overdue InvoiceI5432101
7/1/2023ABC-1234567890Overdue IssueI543210ABC-1234567890Overdue InvoiceI5432102
9/1/2023ABC-1234567890Overdue IssueI543210ABC-1234567890Overdue InvoiceI5432101
10/1/2023ABC-1234567890Overdue IssueI543210ABC-1234567890Overdue InvoiceI5432102
11/1/2023ABC-1234567890Overdue IssueI543210ABC-1234567890Overdue InvoiceI5432103
 

Excel Facts

VLOOKUP to Left?
Use =VLOOKUP(A2,CHOOSE({1,2},$Z$1:$Z$99,$Y$1:$Y$99),2,False) to lookup Y values to left of Z values.
Please disregard! This was user error... I had some values stored as numbers and some as text and the formula read them as different values. Sorry! and Thanks!
 
Upvote 0
Solution

Forum statistics

Threads
1,224,884
Messages
6,181,558
Members
453,053
Latest member
Kiranm13

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