Count consecutive cells that matching a criteria, Starting from the very first cell

Shameer

New Member
Joined
Oct 1, 2023
Messages
5
Office Version
  1. 365
Platform
  1. MacOS
Hello,
In the worksheet uploaded as image,

I need to count
- starting from very First row
- Consecutive occurrences
- if value is greater than 1% and less than 3%

In the uploaded example, the answer would be 1.

Appreciate feedback.
 

Attachments

  • Picture1.png
    Picture1.png
    18.5 KB · Views: 23
Wondering if ..
  1. you tried the alternative formula solution?
  2. you could have data like this where the marked solution (cell D1) returns an error rather than a count (cell c1)?
23 10 05.xlsm
CD
18#NUM!
2
3
42.00%
51.55%
62.04%
72.00%
82.00%
91.70%
101.10%
111.80%
Shameer
Cell Formulas
RangeFormula
C1C1=IFNA(MATCH(TRUE,ABS(C4:C11-0.02)>=0.01,0)-1,ROWS(C4:C11))
D1D1=AGGREGATE(15,6,(ROW($C$4:$C$11)-4)/(($C$4:$C$11<0.01)+($C$4:$C$11>0.03)>0),1)
 
Upvote 0

Excel Facts

Get help while writing formula
Click the italics "fx" icon to the left of the formula bar to open the Functions Arguments dialog. Help is displayed for each argument.

Forum statistics

Threads
1,223,904
Messages
6,175,295
Members
452,631
Latest member
a_potato

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