Count maximum consecutive characters within a range of cells that meet a criteria

eat at joe's

New Member
Joined
Apr 22, 2011
Messages
3
Similar question to one asked recently:

I would also like to be able to find the maximum consecutive occurrences of "." for each person when results are combined with previous entries. For example, Tom's first result finishes with 4 consecutive "." When combined with his second result which begins with one "." before an "x" the formula result should be 5. (see below)
One person may have 100 different entries. I just need the single maximum consecutive occurrences of "." for each individual when spread across different rows.

John .xxxx
Mary ..x...
Lisa ...xx
Tom .x....
John x.....
Tom .x.xx.
Lisa x.x..x
Mary ......

Thanks
 

Excel Facts

How to create a cell-sized chart?
Tiny charts, called Sparklines, were added to Excel 2010. Look for Sparklines on the Insert tab.
Hi,

I don't think this is the best solution for you, but in the absence of an experts solution will this work for you?....

Excel Workbook
ABCDEF
1NameNumberHelper1NameTotal
2Tom1231*Tom4
3****2231113*****8
4Harry1251*Harry6
5Sally1261*Sally3
6Bill1271*Bill3
7Bob2220*Bob5
8Jo1291*Jo3
9Joe3212341*Joe5
10Tom1312***
11****1321***
12Harry111333***
13Sally1341***
14Bill1351***
15Bob61111364***
16Jo221371***
17Joe211213***
18Tom222211***
19****5511122214***
20Harry1412***
21Sally1421***
22Bill1431***
23Bob1441***
24Jo1451***
25Joe1461***
TestData


I'm sure that it is possible to put both formulas into 1 Sumproduct, but I can't get my head around it, sorry.

D1 has the criteria to count.
Change the range of your data in the formulas in B2, F2 and copy down as far as is required.

Good luck and I look forward to seeing the experts solutions.

Ak
 
Upvote 0

Forum statistics

Threads
1,224,586
Messages
6,179,730
Members
452,939
Latest member
WCrawford

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