Hi,
I thought the suggested formula below would work and whilst it is helpful it's not exactly what I am after.
I want to know what the current streak is.
<table border="0" cellpadding="0" cellspacing="0" width="91"><colgroup><col style="mso-width-source:userset;mso-width-alt:1024;width:24pt" width="32"> <col style="mso-width-source:userset;mso-width-alt:992;width:23pt" width="31"> <col style="mso-width-source:userset;mso-width-alt:896;width:21pt" width="28"> </colgroup><tbody><tr style="height:15.0pt" height="20"> <td class="xl63" style="height:15.0pt;width:24pt" height="20" width="32">A1</td> <td class="xl64" style="border-left:none;width:23pt" align="right" width="31">6</td> <td class="xl65" style="border-left:none;width:21pt" align="right" width="28">
3
</td> </tr> <tr style="height:15.0pt" height="20"> <td class="xl63" style="height:15.0pt;border-top:none" height="20">A2</td> <td class="xl64" style="border-top:none;border-left:none" align="right">6</td> <td class="xl63" style="border-top:none;border-left:none">
</td> </tr> <tr style="height:15.0pt" height="20"> <td class="xl63" style="height:15.0pt;border-top:none" height="20">A3</td> <td class="xl64" style="border-top:none;border-left:none" align="right">6</td> <td class="xl63" style="border-top:none;border-left:none">
</td> </tr> <tr style="height:14.25pt" height="19"> <td class="xl63" style="height:14.25pt;border-top:none" height="19">A4</td> <td class="xl63" style="border-top:none;border-left:none" align="right">5</td> <td class="xl63" style="border-top:none;border-left:none">
</td> </tr> <tr style="height:14.25pt" height="19"> <td class="xl63" style="height:14.25pt;border-top:none" height="19">A5</td> <td class="xl63" style="border-top:none;border-left:none" align="right">6</td> <td class="xl63" style="border-top:none;border-left:none">
</td> </tr> <tr style="height:14.25pt" height="19"> <td class="xl63" style="height:14.25pt;border-top:none" height="19">A6</td> <td class="xl63" style="border-top:none;border-left:none" align="right">6</td> <td class="xl63" style="border-top:none;border-left:none">
</td> </tr> <tr style="height:14.25pt" height="19"> <td class="xl63" style="height:14.25pt;border-top:none" height="19">A7</td> <td class="xl63" style="border-top:none;border-left:none" align="right">7</td> <td class="xl63" style="border-top:none;border-left:none">
</td> </tr> <tr style="height:14.25pt" height="19"> <td class="xl63" style="height:14.25pt;border-top:none" height="19">A8</td> <td class="xl63" style="border-top:none;border-left:none" align="right">6</td> <td class="xl63" style="border-top:none;border-left:none">
</td> </tr> <tr style="height:14.25pt" height="19"> <td class="xl63" style="height:14.25pt;border-top:none" height="19">A9</td> <td class="xl63" style="border-top:none;border-left:none" align="right">6</td> <td class="xl63" style="border-top:none;border-left:none">
</td> </tr> <tr style="height:14.25pt" height="19"> <td class="xl63" style="height:14.25pt;border-top:none" height="19">A10</td> <td class="xl63" style="border-top:none;border-left:none" align="right">5</td> <td class="xl63" style="border-top:none;border-left:none">
</td> </tr> <tr style="height:14.25pt" height="19"> <td class="xl63" style="height:14.25pt;border-top:none" height="19">A11</td> <td class="xl63" style="border-top:none;border-left:none" align="right">4</td> <td class="xl63" style="border-top:none;border-left:none">
</td> </tr> <tr style="height:14.25pt" height="19"> <td class="xl63" style="height:14.25pt;border-top:none" height="19">A12</td> <td class="xl63" style="border-top:none;border-left:none" align="right">3</td> <td class="xl63" style="border-top:none;border-left:none">
</td> </tr> <tr style="height:14.25pt" height="19"> <td class="xl63" style="height:14.25pt;border-top:none" height="19">A13</td> <td class="xl63" style="border-top:none;border-left:none" align="right">2</td> <td class="xl63" style="border-top:none;border-left:none">
</td> </tr> <tr style="height:14.25pt" height="19"> <td class="xl63" style="height:14.25pt;border-top:none" height="19">A14</td> <td class="xl63" style="border-top:none;border-left:none" align="right">1</td> <td class="xl63" style="border-top:none;border-left:none">
</td> </tr> <tr style="height:14.25pt" height="19"> <td class="xl63" style="height:14.25pt;border-top:none" height="19">A15</td> <td class="xl63" style="border-top:none;border-left:none" align="right">6</td> <td class="xl63" style="border-top:none;border-left:none">
</td> </tr> <tr style="height:14.25pt" height="19"> <td class="xl63" style="height:14.25pt;border-top:none" height="19">A16</td> <td class="xl63" style="border-top:none;border-left:none" align="right">7</td> <td class="xl63" style="border-top:none;border-left:none">
</td> </tr> <tr style="height:14.25pt" height="19"> <td class="xl63" style="height:14.25pt;border-top:none" height="19">A17</td> <td class="xl63" style="border-top:none;border-left:none" align="right">8</td> <td class="xl63" style="border-top:none;border-left:none">
</td> </tr> <tr style="height:14.25pt" height="19"> <td class="xl63" style="height:14.25pt;border-top:none" height="19">A18</td> <td class="xl63" style="border-top:none;border-left:none" align="right">6</td> <td class="xl63" style="border-top:none;border-left:none">
</td> </tr> <tr style="height:14.25pt" height="19"> <td class="xl63" style="height:14.25pt;border-top:none" height="19">A19</td> <td class="xl63" style="border-top:none;border-left:none" align="right">6</td> <td class="xl63" style="border-top:none;border-left:none">
</td> </tr> <tr style="height:14.25pt" height="19"> <td class="xl63" style="height:14.25pt;border-top:none" height="19">A20</td> <td class="xl63" style="border-top:none;border-left:none" align="right">2</td> <td class="xl63" style="border-top:none;border-left:none">
</td> </tr> </tbody></table>
In other words, you want to know the longest streak of consecutive cells that =A1?
Try this array formula:
=MAX(FREQUENCY(IF(A1:A22=A1,ROW(A1:A22)),IF(A1:A22<>A1,ROW(A1:A22))))
** array formulas need to be entered using the key
combination of CTRL,SHIFT,ENTER (not just ENTER).
Hold down both the CTRL key and the SHIFT key
then hit ENTER.
Can it be done?
Regards,
suprsnipes