• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

Calculating frequency of occurence of consecutive digits in list of phone numbers

anonmaz

New Member
I have excel sheet with list of phone numbers within 1 column in a given series range. The objective is to identify and rank the numbers relative to frequency of occurence of consecutive digits. Any of the digits; 0,1,2,3,4,5,6,7,8,9 should be evaluated irrespective of position. Where multiple digit share the max frequency of consecutive occurenes, all digits with consequtive occurences are listed separated by commas and in order of their position from left to right.Where no consecutive numbers are identified, shoud return NULL. Anyone has an idea of how to achieve this?
 

Attachments

  • Sample phone number series.xlsx
    18.6 KB · Views: 5
Please try at
E3 for Digit
=IF(F3="NULL","NULL",MID(TEXT(NPV(-0.9,IF(F3=MOD(SMALL(9-LEN(SUBSTITUTE(B3,REPT({0,1,2,3,4,5,6,7,8,9},{2;3;4;5;6;7;8;9}),))+10^{1,2,3,4,5,6,7,8,9,10},8*{1,2,3,4,5,6,7,8,9,10}),10),{0,1,2,3,4,5,6,7,8,9}/10)),REPT("\,0",SUM(--(F3=MOD(SMALL(9-LEN(SUBSTITUTE(B3,REPT({0,1,2,3,4,5,6,7,8,9},{2;3;4;5;6;7;8;9}),))+10^{1,2,3,4,5,6,7,8,9,10},8*{1,2,3,4,5,6,7,8,9,10}),10))))),2,9))


F3 for Max OCCURRENCE
=IFERROR(1/(1/MAX(MOD(SMALL(9-LEN(SUBSTITUTE(B3,REPT({0,1,2,3,4,5,6,7,8,9},{2;3;4;5;6;7;8;9}),))+10^{1,2,3,4,5,6,7,8,9,10},8*{1,2,3,4,5,6,7,8,9,10}),10))),"NULL")
 

Attachments

  • Sample phone number series.xlsx
    93 KB · Views: 10
Back
Top