Problem - Consecutive numbers

VHtennis

New Member
Joined
Apr 18, 2011
Messages
4
Hi!
I want to find a way to fix this:
I have a series of numbers and I want to find a formula for the number of consecutive values of at least a certain number.

Example:
<table width="1520" border="0" cellpadding="0" cellspacing="0"><col width="80" span="19"><tr height="20"> <td class="xl65" style="height: 15pt; width: 60pt;" width="80" align="right" height="20">1</td> <td class="xl65" style="width: 60pt;" width="80" align="right">6</td> <td class="xl65" style="width: 60pt;" width="80" align="right">1</td> <td class="xl65" style="width: 60pt;" width="80" align="right">4</td> <td class="xl65" style="width: 60pt;" width="80" align="right">2</td> <td class="xl65" style="width: 60pt;" width="80" align="right">3</td> <td class="xl65" style="width: 60pt;" width="80" align="right">2</td> <td class="xl65" style="width: 60pt;" width="80" align="right">5</td> <td class="xl65" style="width: 60pt;" width="80" align="right">7</td> <td class="xl65" style="width: 60pt;" width="80" align="right">3</td> <td class="xl65" style="width: 60pt;" width="80" align="right">0</td> <td class="xl65" style="width: 60pt;" width="80" align="right">5</td> <td class="xl65" style="width: 60pt;" width="80" align="right">5</td> <td class="xl65" style="width: 60pt;" width="80" align="right">1</td> <td class="xl65" style="width: 60pt;" width="80" align="right">4</td> <td class="xl65" style="width: 60pt;" width="80" align="right">5</td> <td class="xl65" style="width: 60pt;" width="80" align="right">4</td> <td class="xl65" style="width: 60pt;" width="80" align="right">1</td> <td class="xl65" style="width: 60pt;" width="80" align="right">1</td> </tr></table>
Gives us:
Max consecutive for at least 1 gives 10
Max consecutive for at least 2 gives 7
Max consecutive for at least 3 gives 3
Max consecutive for at least 4 gives 3
Max consecutive for at least 5 gives 2
Max consecutive for at least 6 gives 1
Max consecutive for at least 7 gives 1

Hope you understands my question and can help!
 

Excel Facts

Add Bullets to Range
Select range. Press Ctrl+1. On Number tab, choose Custom. Type Alt+7 then space then @ sign (using 7 on numeric keypad)
Hello VHtennis, welcome to MrExcel

If your data is in A1:S1 then try this to get those results:

In A3:A9 list the values 1 to 7 then in B3 copied down you can use this formula

=MAX(FREQUENCY(IF(A$1:S$1>=A3,COLUMN(A$1:S$1)),IF(A$1:S$1< A3,COLUMN(A$1:S$1))))

confirm with CTRL+SHIFT+ENTER so that curly braces like { and } appear around the formula....then copy down to B9
 
Upvote 0
When I did like you told me I got this:

<table width="116" border="0" cellpadding="0" cellspacing="0"><col style="width: 61pt;" width="81"> <col style="width: 26pt;" width="35"> <tbody><tr style="height: 15pt;" height="20"> <td style="height: 15pt; width: 61pt; font-size: 11pt; color: black; font-weight: 400; text-decoration: none; font-family: Calibri; border-width: 0.5pt medium 0.5pt 0.5pt; border-style: solid none solid solid; border-color: rgb(149, 179, 215) -moz-use-text-color rgb(149, 179, 215) rgb(149, 179, 215); background: none repeat scroll 0% 0% rgb(220, 230, 241);" width="81" align="right" height="20">1</td> <td style="width: 26pt; font-size: 11pt; color: black; font-weight: 400; text-decoration: none; font-family: Calibri; border-width: 0.5pt 0.5pt 0.5pt medium; border-style: solid solid solid none; border-color: rgb(149, 179, 215) rgb(149, 179, 215) rgb(149, 179, 215) -moz-use-text-color; background: none repeat scroll 0% 0% rgb(220, 230, 241);" width="35" align="right">17</td> </tr> <tr style="height: 15pt;" height="20"> <td style="height: 15pt; font-size: 11pt; color: black; font-weight: 400; text-decoration: none; font-family: Calibri; border-width: 0.5pt medium 0.5pt 0.5pt; border-style: solid none solid solid; border-color: rgb(149, 179, 215) -moz-use-text-color rgb(149, 179, 215) rgb(149, 179, 215);" align="right" height="20">2</td> <td style="font-size: 11pt; color: black; font-weight: 400; text-decoration: none; font-family: Calibri; border-width: 0.5pt 0.5pt 0.5pt medium; border-style: solid solid solid none; border-color: rgb(149, 179, 215) rgb(149, 179, 215) rgb(149, 179, 215) -moz-use-text-color;" align="right">12</td> </tr> <tr style="height: 15pt;" height="20"> <td style="height: 15pt; font-size: 11pt; color: black; font-weight: 400; text-decoration: none; font-family: Calibri; border-width: 0.5pt medium 0.5pt 0.5pt; border-style: solid none solid solid; border-color: rgb(149, 179, 215) -moz-use-text-color rgb(149, 179, 215) rgb(149, 179, 215); background: none repeat scroll 0% 0% rgb(220, 230, 241);" align="right" height="20">3</td> <td style="font-size: 11pt; color: black; font-weight: 400; text-decoration: none; font-family: Calibri; border-width: 0.5pt 0.5pt 0.5pt medium; border-style: solid solid solid none; border-color: rgb(149, 179, 215) rgb(149, 179, 215) rgb(149, 179, 215) -moz-use-text-color; background: none repeat scroll 0% 0% rgb(220, 230, 241);" align="right">10</td> </tr> <tr style="height: 15pt;" height="20"> <td style="height: 15pt; font-size: 11pt; color: black; font-weight: 400; text-decoration: none; font-family: Calibri; border-width: 0.5pt medium 0.5pt 0.5pt; border-style: solid none solid solid; border-color: rgb(149, 179, 215) -moz-use-text-color rgb(149, 179, 215) rgb(149, 179, 215);" align="right" height="20">4</td> <td style="font-size: 11pt; color: black; font-weight: 400; text-decoration: none; font-family: Calibri; border-width: 0.5pt 0.5pt 0.5pt medium; border-style: solid solid solid none; border-color: rgb(149, 179, 215) rgb(149, 179, 215) rgb(149, 179, 215) -moz-use-text-color;" align="right">1</td> </tr> <tr style="height: 15pt;" height="20"> <td style="height: 15pt; font-size: 11pt; color: black; font-weight: 400; text-decoration: none; font-family: Calibri; border-width: 0.5pt medium 0.5pt 0.5pt; border-style: solid none solid solid; border-color: rgb(149, 179, 215) -moz-use-text-color rgb(149, 179, 215) rgb(149, 179, 215); background: none repeat scroll 0% 0% rgb(220, 230, 241);" align="right" height="20">5</td> <td style="font-size: 11pt; color: black; font-weight: 400; text-decoration: none; font-family: Calibri; border-width: 0.5pt 0.5pt 0.5pt medium; border-style: solid solid solid none; border-color: rgb(149, 179, 215) rgb(149, 179, 215) rgb(149, 179, 215) -moz-use-text-color; background: none repeat scroll 0% 0% rgb(220, 230, 241);" align="right">1</td> </tr> <tr style="height: 15pt;" height="20"> <td style="height: 15pt; font-size: 11pt; color: black; font-weight: 400; text-decoration: none; font-family: Calibri; border-width: 0.5pt medium 0.5pt 0.5pt; border-style: solid none solid solid; border-color: rgb(149, 179, 215) -moz-use-text-color rgb(149, 179, 215) rgb(149, 179, 215);" align="right" height="20">6</td> <td style="font-size: 11pt; color: black; font-weight: 400; text-decoration: none; font-family: Calibri; border-width: 0.5pt 0.5pt 0.5pt medium; border-style: solid solid solid none; border-color: rgb(149, 179, 215) rgb(149, 179, 215) rgb(149, 179, 215) -moz-use-text-color;" align="right">1</td> </tr> <tr style="height: 15pt;" height="20"> <td style="height: 15pt; font-size: 11pt; color: black; font-weight: 400; text-decoration: none; font-family: Calibri; border-width: 0.5pt medium 0.5pt 0.5pt; border-style: solid none solid solid; border-color: rgb(149, 179, 215) -moz-use-text-color rgb(149, 179, 215) rgb(149, 179, 215); background: none repeat scroll 0% 0% rgb(220, 230, 241);" align="right" height="20">7</td> <td style="font-size: 11pt; color: black; font-weight: 400; text-decoration: none; font-family: Calibri; border-width: 0.5pt 0.5pt 0.5pt medium; border-style: solid solid solid none; border-color: rgb(149, 179, 215) rgb(149, 179, 215) rgb(149, 179, 215) -moz-use-text-color; background: none repeat scroll 0% 0% rgb(220, 230, 241);" align="right">0</td> </tr> </tbody></table>It's right that it was 17 numbers with at least 1, but the values at least 1 must be next to each other - that's what I mean with consecutive, like this 1-1-1-1 gives 4 and 1-1-1-1-0-1-1-1-1 still gives 4. I want to find the longest line of numbers at least 1.
 
Upvote 0
Hello, Try this

A small bit change in the Barry's Formula.

=MAX(FREQUENCY(IF(A$1:S$1=A3,COLUMN($A1:$S1)),IF(A$1:S$1<>A3,COLUMN($A1:$S1))))

confirm with CTRL+SHIFT+ENTER
 
Upvote 0
Barry's formula does work for your sample data, and does not return the results you posted, so I would have to assume the data you are using is not what you posted.

<b>InputValues</b><table border="1" cellspacing="0" cellpadding="0" style="font-family:Calibri,Arial;font-size:11pt; background-color:#FFFFFF; border:1.5px solid #A6AAB6;border-collapse: collapse;color: #262230;"><colgroup><col style="background-color:#E0E0F0;" /><col /><col /><col /><col /><col /><col /><col /><col /><col /><col /><col /><col /><col /><col /><col /><col /><col /><col /><col /></colgroup><tr style="background-color:#E0E0F0;text-align: center;border: 1px solid #A6AAB6;color: #161120;padding-left: 0.3em;padding-right: 0.3em;"><td style = "border: 1px solid #A6AAB6;padding-left: 0.3em; padding-right: 0.3em;"></td><td style="border: 1px solid #A6AAB6;padding-left: 0.3em;padding-right: 0.3em;">A</td><td style="border: 1px solid #A6AAB6;padding-left: 0.3em;padding-right: 0.3em;">B</td><td style="border: 1px solid #A6AAB6;padding-left: 0.3em;padding-right: 0.3em;">C</td><td style="border: 1px solid #A6AAB6;padding-left: 0.3em;padding-right: 0.3em;">D</td><td style="border: 1px solid #A6AAB6;padding-left: 0.3em;padding-right: 0.3em;">E</td><td style="border: 1px solid #A6AAB6;padding-left: 0.3em;padding-right: 0.3em;">F</td><td style="border: 1px solid #A6AAB6;padding-left: 0.3em;padding-right: 0.3em;">G</td><td style="border: 1px solid #A6AAB6;padding-left: 0.3em;padding-right: 0.3em;">H</td><td style="border: 1px solid #A6AAB6;padding-left: 0.3em;padding-right: 0.3em;">I</td><td style="border: 1px solid #A6AAB6;padding-left: 0.3em;padding-right: 0.3em;">J</td><td style="border: 1px solid #A6AAB6;padding-left: 0.3em;padding-right: 0.3em;">K</td><td style="border: 1px solid #A6AAB6;padding-left: 0.3em;padding-right: 0.3em;">L</td><td style="border: 1px solid #A6AAB6;padding-left: 0.3em;padding-right: 0.3em;">M</td><td style="border: 1px solid #A6AAB6;padding-left: 0.3em;padding-right: 0.3em;">N</td><td style="border: 1px solid #A6AAB6;padding-left: 0.3em;padding-right: 0.3em;">O</td><td style="border: 1px solid #A6AAB6;padding-left: 0.3em;padding-right: 0.3em;">P</td><td style="border: 1px solid #A6AAB6;padding-left: 0.3em;padding-right: 0.3em;">Q</td><td style="border: 1px solid #A6AAB6;padding-left: 0.3em;padding-right: 0.3em;">R</td><td style="border: 1px solid #A6AAB6;padding-left: 0.3em;padding-right: 0.3em;">S</td></tr><tr ><td style="border: 1px solid #A6AAB6;color: #161120;padding-left: 0.3em; padding-right: 0.3em;">1</td><td style="color: #000000;padding-left: 0.3em;padding-right: 0.3em;">1</td><td style="color: #000000;padding-left: 0.3em;padding-right: 0.3em;">6</td><td style="color: #000000;padding-left: 0.3em;padding-right: 0.3em;">1</td><td style="color: #000000;padding-left: 0.3em;padding-right: 0.3em;">4</td><td style="color: #000000;padding-left: 0.3em;padding-right: 0.3em;">2</td><td style="color: #000000;padding-left: 0.3em;padding-right: 0.3em;">3</td><td style="color: #000000;padding-left: 0.3em;padding-right: 0.3em;">2</td><td style="color: #000000;padding-left: 0.3em;padding-right: 0.3em;">5</td><td style="color: #000000;padding-left: 0.3em;padding-right: 0.3em;">7</td><td style="color: #000000;padding-left: 0.3em;padding-right: 0.3em;">3</td><td style="color: #000000;padding-left: 0.3em;padding-right: 0.3em;">0</td><td style="color: #000000;padding-left: 0.3em;padding-right: 0.3em;">5</td><td style="color: #000000;padding-left: 0.3em;padding-right: 0.3em;">5</td><td style="color: #000000;padding-left: 0.3em;padding-right: 0.3em;">1</td><td style="color: #000000;padding-left: 0.3em;padding-right: 0.3em;">4</td><td style="color: #000000;padding-left: 0.3em;padding-right: 0.3em;">5</td><td style="color: #000000;padding-left: 0.3em;padding-right: 0.3em;">4</td><td style="color: #000000;padding-left: 0.3em;padding-right: 0.3em;">1</td><td style="color: #000000;padding-left: 0.3em;padding-right: 0.3em;">1</td></tr><tr ><td style="border: 1px solid #A6AAB6;color: #161120;padding-left: 0.3em; padding-right: 0.3em;">2</td><td style="color: #000000;padding-left: 0.3em;padding-right: 0.3em;"></td><td style="color: #000000;padding-left: 0.3em;padding-right: 0.3em;"></td><td style="color: #000000;padding-left: 0.3em;padding-right: 0.3em;"></td><td style="color: #000000;padding-left: 0.3em;padding-right: 0.3em;"></td><td style="color: #000000;padding-left: 0.3em;padding-right: 0.3em;"></td><td style="color: #000000;padding-left: 0.3em;padding-right: 0.3em;"></td><td style="color: #000000;padding-left: 0.3em;padding-right: 0.3em;"></td><td style="color: #000000;padding-left: 0.3em;padding-right: 0.3em;"></td><td style="color: #000000;padding-left: 0.3em;padding-right: 0.3em;"></td><td style="color: #000000;padding-left: 0.3em;padding-right: 0.3em;"></td><td style="color: #000000;padding-left: 0.3em;padding-right: 0.3em;"></td><td style="color: #000000;padding-left: 0.3em;padding-right: 0.3em;"></td><td style="color: #000000;padding-left: 0.3em;padding-right: 0.3em;"></td><td style="color: #000000;padding-left: 0.3em;padding-right: 0.3em;"></td><td style="color: #000000;padding-left: 0.3em;padding-right: 0.3em;"></td><td style="color: #000000;padding-left: 0.3em;padding-right: 0.3em;"></td><td style="color: #000000;padding-left: 0.3em;padding-right: 0.3em;"></td><td style="color: #000000;padding-left: 0.3em;padding-right: 0.3em;"></td><td style="color: #000000;padding-left: 0.3em;padding-right: 0.3em;"></td></tr><tr ><td style="border: 1px solid #A6AAB6;color: #161120;padding-left: 0.3em; padding-right: 0.3em;">3</td><td style="color: #000000;padding-left: 0.3em;padding-right: 0.3em;">1</td><td style="color: #000000;padding-left: 0.3em;padding-right: 0.3em;">10</td><td style="color: #000000;padding-left: 0.3em;padding-right: 0.3em;"></td><td style="color: #000000;padding-left: 0.3em;padding-right: 0.3em;"></td><td style="color: #000000;padding-left: 0.3em;padding-right: 0.3em;"></td><td style="color: #000000;padding-left: 0.3em;padding-right: 0.3em;"></td><td style="color: #000000;padding-left: 0.3em;padding-right: 0.3em;"></td><td style="color: #000000;padding-left: 0.3em;padding-right: 0.3em;"></td><td style="color: #000000;padding-left: 0.3em;padding-right: 0.3em;"></td><td style="color: #000000;padding-left: 0.3em;padding-right: 0.3em;"></td><td style="color: #000000;padding-left: 0.3em;padding-right: 0.3em;"></td><td style="color: #000000;padding-left: 0.3em;padding-right: 0.3em;"></td><td style="color: #000000;padding-left: 0.3em;padding-right: 0.3em;"></td><td style="color: #000000;padding-left: 0.3em;padding-right: 0.3em;"></td><td style="color: #000000;padding-left: 0.3em;padding-right: 0.3em;"></td><td style="color: #000000;padding-left: 0.3em;padding-right: 0.3em;"></td><td style="color: #000000;padding-left: 0.3em;padding-right: 0.3em;"></td><td style="color: #000000;padding-left: 0.3em;padding-right: 0.3em;"></td><td style="color: #000000;padding-left: 0.3em;padding-right: 0.3em;"></td></tr><tr ><td style="border: 1px solid #A6AAB6;color: #161120;padding-left: 0.3em; padding-right: 0.3em;">4</td><td style="color: #000000;padding-left: 0.3em;padding-right: 0.3em;">2</td><td style="color: #000000;padding-left: 0.3em;padding-right: 0.3em;">7</td><td style="color: #000000;padding-left: 0.3em;padding-right: 0.3em;"></td><td style="color: #000000;padding-left: 0.3em;padding-right: 0.3em;"></td><td style="color: #000000;padding-left: 0.3em;padding-right: 0.3em;"></td><td style="color: #000000;padding-left: 0.3em;padding-right: 0.3em;"></td><td style="color: #000000;padding-left: 0.3em;padding-right: 0.3em;"></td><td style="color: #000000;padding-left: 0.3em;padding-right: 0.3em;"></td><td style="color: #000000;padding-left: 0.3em;padding-right: 0.3em;"></td><td style="color: #000000;padding-left: 0.3em;padding-right: 0.3em;"></td><td style="color: #000000;padding-left: 0.3em;padding-right: 0.3em;"></td><td style="color: #000000;padding-left: 0.3em;padding-right: 0.3em;"></td><td style="color: #000000;padding-left: 0.3em;padding-right: 0.3em;"></td><td style="color: #000000;padding-left: 0.3em;padding-right: 0.3em;"></td><td style="color: #000000;padding-left: 0.3em;padding-right: 0.3em;"></td><td style="color: #000000;padding-left: 0.3em;padding-right: 0.3em;"></td><td style="color: #000000;padding-left: 0.3em;padding-right: 0.3em;"></td><td style="color: #000000;padding-left: 0.3em;padding-right: 0.3em;"></td><td style="color: #000000;padding-left: 0.3em;padding-right: 0.3em;"></td></tr><tr ><td style="border: 1px solid #A6AAB6;color: #161120;padding-left: 0.3em; padding-right: 0.3em;">5</td><td style="color: #000000;padding-left: 0.3em;padding-right: 0.3em;">3</td><td style="color: #000000;padding-left: 0.3em;padding-right: 0.3em;">3</td><td style="color: #000000;padding-left: 0.3em;padding-right: 0.3em;"></td><td style="color: #000000;padding-left: 0.3em;padding-right: 0.3em;"></td><td style="color: #000000;padding-left: 0.3em;padding-right: 0.3em;"></td><td style="color: #000000;padding-left: 0.3em;padding-right: 0.3em;"></td><td style="color: #000000;padding-left: 0.3em;padding-right: 0.3em;"></td><td style="color: #000000;padding-left: 0.3em;padding-right: 0.3em;"></td><td style="color: #000000;padding-left: 0.3em;padding-right: 0.3em;"></td><td style="color: #000000;padding-left: 0.3em;padding-right: 0.3em;"></td><td style="color: #000000;padding-left: 0.3em;padding-right: 0.3em;"></td><td style="color: #000000;padding-left: 0.3em;padding-right: 0.3em;"></td><td style="color: #000000;padding-left: 0.3em;padding-right: 0.3em;"></td><td style="color: #000000;padding-left: 0.3em;padding-right: 0.3em;"></td><td style="color: #000000;padding-left: 0.3em;padding-right: 0.3em;"></td><td style="color: #000000;padding-left: 0.3em;padding-right: 0.3em;"></td><td style="color: #000000;padding-left: 0.3em;padding-right: 0.3em;"></td><td style="color: #000000;padding-left: 0.3em;padding-right: 0.3em;"></td><td style="color: #000000;padding-left: 0.3em;padding-right: 0.3em;"></td></tr><tr ><td style="border: 1px solid #A6AAB6;color: #161120;padding-left: 0.3em; padding-right: 0.3em;">6</td><td style="color: #000000;padding-left: 0.3em;padding-right: 0.3em;">4</td><td style="color: #000000;padding-left: 0.3em;padding-right: 0.3em;">3</td><td style="color: #000000;padding-left: 0.3em;padding-right: 0.3em;"></td><td style="color: #000000;padding-left: 0.3em;padding-right: 0.3em;"></td><td style="color: #000000;padding-left: 0.3em;padding-right: 0.3em;"></td><td style="color: #000000;padding-left: 0.3em;padding-right: 0.3em;"></td><td style="color: #000000;padding-left: 0.3em;padding-right: 0.3em;"></td><td style="color: #000000;padding-left: 0.3em;padding-right: 0.3em;"></td><td style="color: #000000;padding-left: 0.3em;padding-right: 0.3em;"></td><td style="color: #000000;padding-left: 0.3em;padding-right: 0.3em;"></td><td style="color: #000000;padding-left: 0.3em;padding-right: 0.3em;"></td><td style="color: #000000;padding-left: 0.3em;padding-right: 0.3em;"></td><td style="color: #000000;padding-left: 0.3em;padding-right: 0.3em;"></td><td style="color: #000000;padding-left: 0.3em;padding-right: 0.3em;"></td><td style="color: #000000;padding-left: 0.3em;padding-right: 0.3em;"></td><td style="color: #000000;padding-left: 0.3em;padding-right: 0.3em;"></td><td style="color: #000000;padding-left: 0.3em;padding-right: 0.3em;"></td><td style="color: #000000;padding-left: 0.3em;padding-right: 0.3em;"></td><td style="color: #000000;padding-left: 0.3em;padding-right: 0.3em;"></td></tr><tr ><td style="border: 1px solid #A6AAB6;color: #161120;padding-left: 0.3em; padding-right: 0.3em;">7</td><td style="color: #000000;padding-left: 0.3em;padding-right: 0.3em;">5</td><td style="color: #000000;padding-left: 0.3em;padding-right: 0.3em;">2</td><td style="color: #000000;padding-left: 0.3em;padding-right: 0.3em;"></td><td style="color: #000000;padding-left: 0.3em;padding-right: 0.3em;"></td><td style="color: #000000;padding-left: 0.3em;padding-right: 0.3em;"></td><td style="color: #000000;padding-left: 0.3em;padding-right: 0.3em;"></td><td style="color: #000000;padding-left: 0.3em;padding-right: 0.3em;"></td><td style="color: #000000;padding-left: 0.3em;padding-right: 0.3em;"></td><td style="color: #000000;padding-left: 0.3em;padding-right: 0.3em;"></td><td style="color: #000000;padding-left: 0.3em;padding-right: 0.3em;"></td><td style="color: #000000;padding-left: 0.3em;padding-right: 0.3em;"></td><td style="color: #000000;padding-left: 0.3em;padding-right: 0.3em;"></td><td style="color: #000000;padding-left: 0.3em;padding-right: 0.3em;"></td><td style="color: #000000;padding-left: 0.3em;padding-right: 0.3em;"></td><td style="color: #000000;padding-left: 0.3em;padding-right: 0.3em;"></td><td style="color: #000000;padding-left: 0.3em;padding-right: 0.3em;"></td><td style="color: #000000;padding-left: 0.3em;padding-right: 0.3em;"></td><td style="color: #000000;padding-left: 0.3em;padding-right: 0.3em;"></td><td style="color: #000000;padding-left: 0.3em;padding-right: 0.3em;"></td></tr><tr ><td style="border: 1px solid #A6AAB6;color: #161120;padding-left: 0.3em; padding-right: 0.3em;">8</td><td style="color: #000000;padding-left: 0.3em;padding-right: 0.3em;">6</td><td style="color: #000000;padding-left: 0.3em;padding-right: 0.3em;">1</td><td style="color: #000000;padding-left: 0.3em;padding-right: 0.3em;"></td><td style="color: #000000;padding-left: 0.3em;padding-right: 0.3em;"></td><td style="color: #000000;padding-left: 0.3em;padding-right: 0.3em;"></td><td style="color: #000000;padding-left: 0.3em;padding-right: 0.3em;"></td><td style="color: #000000;padding-left: 0.3em;padding-right: 0.3em;"></td><td style="color: #000000;padding-left: 0.3em;padding-right: 0.3em;"></td><td style="color: #000000;padding-left: 0.3em;padding-right: 0.3em;"></td><td style="color: #000000;padding-left: 0.3em;padding-right: 0.3em;"></td><td style="color: #000000;padding-left: 0.3em;padding-right: 0.3em;"></td><td style="color: #000000;padding-left: 0.3em;padding-right: 0.3em;"></td><td style="color: #000000;padding-left: 0.3em;padding-right: 0.3em;"></td><td style="color: #000000;padding-left: 0.3em;padding-right: 0.3em;"></td><td style="color: #000000;padding-left: 0.3em;padding-right: 0.3em;"></td><td style="color: #000000;padding-left: 0.3em;padding-right: 0.3em;"></td><td style="color: #000000;padding-left: 0.3em;padding-right: 0.3em;"></td><td style="color: #000000;padding-left: 0.3em;padding-right: 0.3em;"></td><td style="color: #000000;padding-left: 0.3em;padding-right: 0.3em;"></td></tr><tr ><td style="border: 1px solid #A6AAB6;color: #161120;padding-left: 0.3em; padding-right: 0.3em;">9</td><td style="color: #000000;padding-left: 0.3em;padding-right: 0.3em;">7</td><td style="color: #000000;padding-left: 0.3em;padding-right: 0.3em;">1</td><td style="color: #000000;padding-left: 0.3em;padding-right: 0.3em;"></td><td style="color: #000000;padding-left: 0.3em;padding-right: 0.3em;"></td><td style="color: #000000;padding-left: 0.3em;padding-right: 0.3em;"></td><td style="color: #000000;padding-left: 0.3em;padding-right: 0.3em;"></td><td style="color: #000000;padding-left: 0.3em;padding-right: 0.3em;"></td><td style="color: #000000;padding-left: 0.3em;padding-right: 0.3em;"></td><td style="color: #000000;padding-left: 0.3em;padding-right: 0.3em;"></td><td style="color: #000000;padding-left: 0.3em;padding-right: 0.3em;"></td><td style="color: #000000;padding-left: 0.3em;padding-right: 0.3em;"></td><td style="color: #000000;padding-left: 0.3em;padding-right: 0.3em;"></td><td style="color: #000000;padding-left: 0.3em;padding-right: 0.3em;"></td><td style="color: #000000;padding-left: 0.3em;padding-right: 0.3em;"></td><td style="color: #000000;padding-left: 0.3em;padding-right: 0.3em;"></td><td style="color: #000000;padding-left: 0.3em;padding-right: 0.3em;"></td><td style="color: #000000;padding-left: 0.3em;padding-right: 0.3em;"></td><td style="color: #000000;padding-left: 0.3em;padding-right: 0.3em;"></td><td style="color: #000000;padding-left: 0.3em;padding-right: 0.3em;"></td></tr></table><br /><br /><table><tr><td style="padding:0.3em;border: 2px solid #000009;background-color:#FFFFFF;"><b>Array Formulas</b><table border="1" cellspacing="0" cellpadding="0" style=";background-color: #FFFFFF; border:1.5px solid #A6AAB6;border-collapse: collapse;"><tr><td style="padding-left: 0.3em;padding-right: 0.3em;background-color: #E0E0F0;border: 1px solid #A6AAB6;">Cell</td><td style="border: 1px solid #A6AAB6;padding-left: 0.3em;padding-right: 0.3em;background-color: #E0E0F0;">Formula</td></tr><tr><td style="font-weight:bold;padding-left: 0.3em;padding-right: 0.3em;">B3</td><td style="padding-left: 0.3em;padding-right: 0.3em;">=MAX(<font color="Blue">FREQUENCY(<font color="Red">IF(<font color="Green">A$1:S$1>=A3,COLUMN(<font color="Purple">A$1:S$1</font>)</font>),IF(<font color="Green">A$1:S$1< A3,COLUMN(<font color="Purple">A$1:S$1</font>)</font>)</font>)</font>)</td></tr><tr><td style="font-weight:bold;padding-left: 0.3em;padding-right: 0.3em;">B4</td><td style="padding-left: 0.3em;padding-right: 0.3em;">=MAX(<font color="Blue">FREQUENCY(<font color="Red">IF(<font color="Green">A$1:S$1>=A4,COLUMN(<font color="Purple">A$1:S$1</font>)</font>),IF(<font color="Green">A$1:S$1< A4,COLUMN(<font color="Purple">A$1:S$1</font>)</font>)</font>)</font>)</td></tr><tr><td style="font-weight:bold;padding-left: 0.3em;padding-right: 0.3em;">B5</td><td style="padding-left: 0.3em;padding-right: 0.3em;">=MAX(<font color="Blue">FREQUENCY(<font color="Red">IF(<font color="Green">A$1:S$1>=A5,COLUMN(<font color="Purple">A$1:S$1</font>)</font>),IF(<font color="Green">A$1:S$1< A5,COLUMN(<font color="Purple">A$1:S$1</font>)</font>)</font>)</font>)</td></tr><tr><td style="font-weight:bold;padding-left: 0.3em;padding-right: 0.3em;">B6</td><td style="padding-left: 0.3em;padding-right: 0.3em;">=MAX(<font color="Blue">FREQUENCY(<font color="Red">IF(<font color="Green">A$1:S$1>=A6,COLUMN(<font color="Purple">A$1:S$1</font>)</font>),IF(<font color="Green">A$1:S$1< A6,COLUMN(<font color="Purple">A$1:S$1</font>)</font>)</font>)</font>)</td></tr><tr><td style="font-weight:bold;padding-left: 0.3em;padding-right: 0.3em;">B7</td><td style="padding-left: 0.3em;padding-right: 0.3em;">=MAX(<font color="Blue">FREQUENCY(<font color="Red">IF(<font color="Green">A$1:S$1>=A7,COLUMN(<font color="Purple">A$1:S$1</font>)</font>),IF(<font color="Green">A$1:S$1< A7,COLUMN(<font color="Purple">A$1:S$1</font>)</font>)</font>)</font>)</td></tr><tr><td style="font-weight:bold;padding-left: 0.3em;padding-right: 0.3em;">B8</td><td style="padding-left: 0.3em;padding-right: 0.3em;">=MAX(<font color="Blue">FREQUENCY(<font color="Red">IF(<font color="Green">A$1:S$1>=A8,COLUMN(<font color="Purple">A$1:S$1</font>)</font>),IF(<font color="Green">A$1:S$1< A8,COLUMN(<font color="Purple">A$1:S$1</font>)</font>)</font>)</font>)</td></tr><tr><td style="font-weight:bold;padding-left: 0.3em;padding-right: 0.3em;">B9</td><td style="padding-left: 0.3em;padding-right: 0.3em;">=MAX(<font color="Blue">FREQUENCY(<font color="Red">IF(<font color="Green">A$1:S$1>=A9,COLUMN(<font color="Purple">A$1:S$1</font>)</font>),IF(<font color="Green">A$1:S$1< A9,COLUMN(<font color="Purple">A$1:S$1</font>)</font>)</font>)</font>)</td></tr></table><b>Entered with Ctrl+Shift+Enter</b></td></tr></table><br />
 
Upvote 0

Forum statistics

Threads
1,224,566
Messages
6,179,558
Members
452,928
Latest member
101blockchains

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