L Leonardo1234 Member Aug 22, 2018 #1 My data is in column A what I want is to find longer repetition of 5 here in this file longer repetion of 5 is 3 I want that result see sample file Attachments SAMPLE FILE.xlsm 13.2 KB · Views: 13
My data is in column A what I want is to find longer repetition of 5 here in this file longer repetion of 5 is 3 I want that result see sample file
Luke M Excel Ninja Staff member Aug 22, 2018 #4 Confirm as an array using Ctrl+Shift+Enter =MAX(FREQUENCY(IF(A1:A15=5,ROW(A1:A15)),IF(A1:A15=5,0,ROW(A1:A15))))
Confirm as an array using Ctrl+Shift+Enter =MAX(FREQUENCY(IF(A1:A15=5,ROW(A1:A15)),IF(A1:A15=5,0,ROW(A1:A15))))
Belleke Well-Known Member Aug 22, 2018 #5 I have this one (ietsie pietsie different) also Ctrl+Shift+Enter =MAX(FREQUENCY(IF(A1:A15=5,ROW(A1:A15)),IF(A1:A15<>5,ROW(A1:A15))))
I have this one (ietsie pietsie different) also Ctrl+Shift+Enter =MAX(FREQUENCY(IF(A1:A15=5,ROW(A1:A15)),IF(A1:A15<>5,ROW(A1:A15))))
L Leonardo1234 Member Aug 22, 2018 #6 Thnx Belleke and Luke M for giving ur precious time and great support to this post Problem Solved
B bosco_yip Excel Ninja Aug 23, 2018 #7 Or, this shorter non-array formula : =MAX(FREQUENCY(ROW(A1:A15),(A1:A15<>5)*ROW(A1:A15)))-1 Regards Bosco Last edited: Aug 23, 2018
Or, this shorter non-array formula : =MAX(FREQUENCY(ROW(A1:A15),(A1:A15<>5)*ROW(A1:A15)))-1 Regards Bosco