Count continuous instances

batraneha0999

New Member
Joined
Jan 2, 2021
Messages
1
Office Version
  1. 2019
Platform
  1. Windows
Reference this thread: Formula to count continuous instances
Assuming that A2:B10 contains the data, try...

=MAX(FREQUENCY(IF(B2:B10=0,ROW(B2:B10)),IF(B2:B10<>0,ROW(B2:B10))))

Note, however, if the data contains empty cells and you'd like them to be ignored, the formula will need to be amended.
Can we add multiple criteria in this formula?

For eg Depending on data in column C (location name) and Column D (Date range), can we add rules such that the data range to be considered in Column B to calculate max frequency changes?
 
Last edited by a moderator:

Excel Facts

Who is Mr Spreadsheet?
Author John Walkenbach was Mr Spreadsheet until his retirement in June 2019.
Hi,
Can you please share sample data to understand the query.

Thanks,
Saurabh
 
Upvote 0

Forum statistics

Threads
1,214,985
Messages
6,122,602
Members
449,089
Latest member
Motoracer88

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