Successive cells over a particular value

tigerzen

Board Regular
Joined
Mar 8, 2023
Messages
165
Office Version
  1. 365
Platform
  1. Windows
Looking for a formula/function that will calculate how many times sales of 100 were achieved over 2 successive dates, in the sample data the first instance is the 22 and 23 Feb. Further to that, is there a formula that will return the dates that it was achieved.
Other formula that would be handy is the largest streak, in other words what was the greatest number of successive dates in which 100 was achieved. This would be 19th March to 22nd March with 4.
Book10
AB
1SalesDate
212719-Feb-22
310420-Feb-22
49721-Feb-22
511522-Feb-22
67323-Feb-22
79824-Feb-22
814425-Feb-22
913426-Feb-22
1012627-Feb-22
117828-Feb-22
12871-Mar-22
13662-Mar-22
141153-Mar-22
151174-Mar-22
16916-Mar-22
171217-Mar-22
18538-Mar-22
19689-Mar-22
2014511-Mar-22
218012-Mar-22
226413-Mar-22
2312614-Mar-22
246615-Mar-22
257816-Mar-22
267717-Mar-22
276518-Mar-22
2812919-Mar-22
2913020-Mar-22
3010121-Mar-22
3110022-Mar-22
326623-Mar-22
337824-Mar-22
3411925-Mar-22
3514126-Mar-22
368127-Mar-22
375828-Mar-22
385529-Mar-22
Sheet1
 

Excel Facts

Excel motto
Not everything I do at work revolves around Excel. Only the fun parts.
Hi,
Not sure to understand ...
Isn't your first instance on 19-Feb-2022 and 20-Feb-2022 ... ???
 
Upvote 0
Hi,
Not sure to understand ...
Isn't your first instance on 19-Feb-2022 and 20-Feb-2022 ... ???
Hi James,

You are correct, I've uploaded another file. In the uploaded file it is 19th and 20th Feb.
 
Upvote 0
Hi,
You can test following formula
Excel Formula:
=MAX(FREQUENCY(IF(A2:A38>=2,ROW(A2:A38)),IF(A2:A38>=100,ROW(A2:A38))))
 
Upvote 0
Hi,
You can test following formula
Excel Formula:
=MAX(FREQUENCY(IF(A2:A38>=2,ROW(A2:A38)),IF(A2:A38>=100,ROW(A2:A38))))
Thanks James, your formula works nicely.

Any ideas on how to return the date those successive values were achieved and also what the longest streak was?
 
Upvote 0

Forum statistics

Threads
1,215,706
Messages
6,126,344
Members
449,311
Latest member
accessbob

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