finding the ten most frequent values

%3CLINGO-SUB%20id%3D%22lingo-sub-2466246%22%20slang%3D%22en-US%22%3Efinding%20the%20ten%20most%20frequent%20values%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2466246%22%20slang%3D%22en-US%22%3E%3CP%3EIve%20used%20an%20index%20mode%20match%20formula%20to%20give%20me%20the%20most%20common%20value%20in%20a%20set%20of%20data%20if%20criteria%20is%20met%2C%20now%20I'm%20trying%20to%20use%20the%20filter%20function%20to%20filter%20out%20the%20most%20common%20result%20and%20output%20the%20new%20most%20common%20result%20in%20this%20list%20(%202nd%20most%20common%20overall)%20below%20the%20cell%20that%20contains%20the%20most%20common%20result.%20I've%20managed%20to%20remove%20one%20result%20to%20find%20the%20second%20most%20common%20result%20but%20i%20cant%20get%20the%20formula%20right%20to%20filter%20out%20two%20or%20more%20results%20from%20the%20original%20list%20to%20give%20me%203rd%2C%204th%20ETC%20most%20common%20value%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3Eformula%20for%20most%20common%20-%20this%20is%20in%20cell%20CU690%3C%2FP%3E%3CP%3E%3DINDEX(Table1%5BPART%2FFAULT%5D%2CMODE(IF(Table1%5BTOP%20TEN%5D%3D%22CRITERIA%22%2CMATCH(Table1%5BPART%2FFAULT%5D%2CTable1%5BPART%2FFAULT%5D%2C0))))%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3Eformula%20for%20second%20most%20common%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3DINDEX(FILTER(Table1%5BPART%2FFAULT%5D%2CTable1%5BPART%2FFAULT%5D%26lt%3B%26gt%3BSheet2!CU690%2C%22%22)%2CMODE(IF(Table1%5BTOP%20TEN%5D%3D%22CRITERIA%22%2CMATCH(FILTER(Table1%5BPART%2FFAULT%5D%2CTable1%5BPART%2FFAULT%5D%26lt%3B%26gt%3BSheet2!CU690%2C%22%22)%2CFILTER(Table1%5BPART%2FFAULT%5D%2CTable1%5BPART%2FFAULT%5D%26lt%3B%26gt%3BSheet2!CU690%2C%22%22)%2C0))))%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2466246%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EExcel%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EFormulas%20and%20Functions%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2466353%22%20slang%3D%22en-US%22%3ERe%3A%20finding%20the%20ten%20most%20frequent%20values%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2466353%22%20slang%3D%22en-US%22%3EHi%20%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F1084282%22%20target%3D%22_blank%22%3E%40dan-d-a%3C%2FA%3E%20%2C%3CBR%20%2F%3E%3CBR%20%2F%3Eare%20you%20maybe%20searching%20for%20this%3F%3CBR%20%2F%3E%3CBR%20%2F%3E%3CA%20href%3D%22https%3A%2F%2Fwww.extendoffice.com%2Fdocuments%2Fexcel%2F1581-excel-find-most-common-value.html%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehttps%3A%2F%2Fwww.extendoffice.com%2Fdocuments%2Fexcel%2F1581-excel-find-most-common-value.html%3C%2FA%3E%3CBR%20%2F%3E%3CBR%20%2F%3EBest%20regards%2C%3CBR%20%2F%3ESchnittlauch%3CBR%20%2F%3E%3CBR%20%2F%3E%22First%2C%20No%20system%20is%20safe.%20Second%2C%20Aim%20for%20the%20impossible.%20Third%2C%20no%20Backup%2C%20no%20Mercy%22%20-%20Schnittlauch%3CBR%20%2F%3E%3CBR%20%2F%3EMy%20answer%20helped%20you%3F%20Don't%20forget%20to%20leave%20a%20like.%20Also%20mark%20the%20answer%20as%20solved%20when%20your%20problem%20is%20solved.%20%3CLI-EMOJI%20id%3D%22lia_slightly-smiling-face%22%20title%3D%22%3Aslightly_smiling_face%3A%22%3E%3C%2FLI-EMOJI%3E%3C%2FLINGO-BODY%3E
Occasional Visitor

Ive used an index mode match formula to give me the most common value in a set of data if criteria is met, now I'm trying to use the filter function to filter out the most common result and output the new most common result in this list ( 2nd most common overall) below the cell that contains the most common result. I've managed to remove one result to find the second most common result but i cant get the formula right to filter out two or more results from the original list to give me 3rd, 4th ETC most common value 

 

formula for most common - this is in cell CU690

=INDEX(Table1[PART/FAULT],MODE(IF(Table1[TOP TEN]="CRITERIA",MATCH(Table1[PART/FAULT],Table1[PART/FAULT],0))))

 

formula for second most common 

 

=INDEX(FILTER(Table1[PART/FAULT],Table1[PART/FAULT]<>Sheet2!CU690,""),MODE(IF(Table1[TOP TEN]="CRITERIA",MATCH(FILTER(Table1[PART/FAULT],Table1[PART/FAULT]<>Sheet2!CU690,""),FILTER(Table1[PART/FAULT],Table1[PART/FAULT]<>Sheet2!CU690,""),0))))

 

 

1 Reply