Need an formula to track the number of draws a value follows another value.

CARBOB

Well-known Member
Joined
Jun 6, 2005
Messages
1,870
The formulas in columns Q2-T5 tracks number of times the values in column U and V1-Y1 have followed the values in in columns V1-Y1. Formulas in Q7-T10 tracks skips. I am not sure if sure if values are correct because of the formats of the value as 2-digit values.



Book1
PQRST
1F1R100011011
200385453443440
301445446447408
410427449465405
511382367397433
6F1R200011011
700538234
8014122010
91033370
10111115016
1100011011
FOLLOWERS
Cell Formulas
RangeFormula
Q1=$V$21
Q2{=IFERROR(1/(1/(SUMPRODUCT(--(SKIPSUMS!$V$21:$V$6631=$P2),(--(SKIPSUMS!$V$20:$V$6630=Q$1))))),"")}
Q3{=IFERROR(1/(1/(SUMPRODUCT(--(SKIPSUMS!$V$21:$V$6631=$P3),(--(SKIPSUMS!$V$20:$V$6630=Q$1))))),"")}
Q4{=IFERROR(1/(1/(SUMPRODUCT(--(SKIPSUMS!$V$21:$V$6631=$P4),(--(SKIPSUMS!$V$20:$V$6630=Q$1))))),"")}
Q5{=IFERROR(1/(1/(SUMPRODUCT(--(SKIPSUMS!$V$21:$V$6631=$P5),(--(SKIPSUMS!$V$20:$V$6630=Q$1))))),"")}
Q7{=IFERROR(MATCH(1,(SKIPSUMS!$V$21:$V$6631=$P7)*(SKIPSUMS!$V$22:$V$6630=Q$6),0)-1,"")}
Q8{=IFERROR(MATCH(1,(SKIPSUMS!$V$21:$V$6631=$P8)*(SKIPSUMS!$V$22:$V$6630=Q$6),0)-1,"")}
Q9{=IFERROR(MATCH(1,(SKIPSUMS!$V$21:$V$6631=$P9)*(SKIPSUMS!$V$22:$V$6630=Q$6),0)-1,"")}
Q10{=IFERROR(MATCH(1,(SKIPSUMS!$V$21:$V$6631=$P10)*(SKIPSUMS!$V$22:$V$6630=Q$6),0)-1,"")}
R2{=IFERROR(1/(1/(SUMPRODUCT(--(SKIPSUMS!$W$21:$W$6631=$P2),(--(SKIPSUMS!$W$20:$W$6630=R$1))))),"")}
R3{=IFERROR(1/(1/(SUMPRODUCT(--(SKIPSUMS!$W$21:$W$6631=$P3),(--(SKIPSUMS!$W$20:$W$6630=R$1))))),"")}
R4{=IFERROR(1/(1/(SUMPRODUCT(--(SKIPSUMS!$W$21:$W$6631=$P4),(--(SKIPSUMS!$W$20:$W$6630=R$1))))),"")}
R5{=IFERROR(1/(1/(SUMPRODUCT(--(SKIPSUMS!$W$21:$W$6631=$P5),(--(SKIPSUMS!$W$20:$W$6630=R$1))))),"")}
R7{=IFERROR(MATCH(1,(SKIPSUMS!$V$21:$V$6631=$P7)*(SKIPSUMS!$V$22:$V$6630=R$6),0)-1,"")}
R8{=IFERROR(MATCH(1,(SKIPSUMS!$V$21:$V$6631=$P8)*(SKIPSUMS!$V$22:$V$6630=R$6),0)-1,"")}
R9{=IFERROR(MATCH(1,(SKIPSUMS!$V$21:$V$6631=$P9)*(SKIPSUMS!$V$22:$V$6630=R$6),0)-1,"")}
R10{=IFERROR(MATCH(1,(SKIPSUMS!$V$21:$V$6631=$P10)*(SKIPSUMS!$V$22:$V$6630=R$6),0)-1,"")}
S2{=IFERROR(1/(1/(SUMPRODUCT(--(SKIPSUMS!$X$21:$X$6631=$P2),(--(SKIPSUMS!$X$20:$X$6630=S$1))))),"")}
S3{=IFERROR(1/(1/(SUMPRODUCT(--(SKIPSUMS!$X$21:$X$6631=$P3),(--(SKIPSUMS!$X$20:$X$6630=S$1))))),"")}
S4{=IFERROR(1/(1/(SUMPRODUCT(--(SKIPSUMS!$X$21:$X$6631=$P4),(--(SKIPSUMS!$X$20:$X$6630=S$1))))),"")}
S5{=IFERROR(1/(1/(SUMPRODUCT(--(SKIPSUMS!$X$21:$X$6631=$P5),(--(SKIPSUMS!$X$20:$X$6630=S$1))))),"")}
S7{=IFERROR(MATCH(1,(SKIPSUMS!$V$21:$V$6631=$P7)*(SKIPSUMS!$V$22:$V$6630=S$6),0)-1,"")}
S8{=IFERROR(MATCH(1,(SKIPSUMS!$V$21:$V$6631=$P8)*(SKIPSUMS!$V$22:$V$6630=S$6),0)-1,"")}
S9{=IFERROR(MATCH(1,(SKIPSUMS!$V$21:$V$6631=$P9)*(SKIPSUMS!$V$22:$V$6630=S$6),0)-1,"")}
S10{=IFERROR(MATCH(1,(SKIPSUMS!$V$21:$V$6631=$P10)*(SKIPSUMS!$V$22:$V$6630=S$6),0)-1,"")}
T2{=IFERROR(1/(1/(SUMPRODUCT(--(SKIPSUMS!$Y$21:$Y$6631=$P2),(--(SKIPSUMS!$Y$20:$Y$6630=T$1))))),"")}
T3{=IFERROR(1/(1/(SUMPRODUCT(--(SKIPSUMS!$Y$21:$Y$6631=$P3),(--(SKIPSUMS!$Y$20:$Y$6630=T$1))))),"")}
T4{=IFERROR(1/(1/(SUMPRODUCT(--(SKIPSUMS!$Y$21:$Y$6631=$P4),(--(SKIPSUMS!$Y$20:$Y$6630=T$1))))),"")}
T5{=IFERROR(1/(1/(SUMPRODUCT(--(SKIPSUMS!$Y$21:$Y$6631=$P5),(--(SKIPSUMS!$Y$20:$Y$6630=T$1))))),"")}
T7{=IFERROR(MATCH(1,(SKIPSUMS!$V$21:$V$6631=$P7)*(SKIPSUMS!$V$22:$V$6630=T$6),0)-1,"")}
T8{=IFERROR(MATCH(1,(SKIPSUMS!$V$21:$V$6631=$P8)*(SKIPSUMS!$V$22:$V$6630=T$6),0)-1,"")}
T9{=IFERROR(MATCH(1,(SKIPSUMS!$V$21:$V$6631=$P9)*(SKIPSUMS!$V$22:$V$6630=T$6),0)-1,"")}
T10{=IFERROR(MATCH(1,(SKIPSUMS!$V$21:$V$6631=$P10)*(SKIPSUMS!$V$22:$V$6630=T$6),0)-1,"")}
Press CTRL+SHIFT+ENTER to enter array formulas.
 

Excel Facts

How to show all formulas in Excel?
Press Ctrl+` to show all formulas. Press it again to toggle back to numbers. The grave accent is often under the tilde on US keyboards.

Forum statistics

Threads
1,223,894
Messages
6,175,252
Members
452,623
Latest member
Techenthusiast

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