SUM(COLUMN(C13)-COLUMN($C$13)),,,)=$C$4:$Q$4))

Then drag this across columns. 
Note: 
1) This assumes $C$4:$Q$4 is a fixed range to compare against as it remains the same in your given example
2) That you don't mind the fact that the formula in column D will self reference for comparison
You could also just enclose in Index instead.
=SUMPRODUCT(--(INDEX(OFFSET($C$3:$Q$3,COLUMN(C13)-COLUMN($C$13),,,),0,0)=$C$4:$Q$4))

Example:

Edit:
Based on share workbook where need to drag across columns and down rows to compare 64 * 64 matrix element wise (where each element is a row in the source array)
In C71 put the following and drag down and across to BM133:
=SUMPRODUCT(--(INDEX($C$2:$W$64,MATCH($B71,$B$2:$B$64,0),0)=INDEX($C$2:$W$64,MATCH(C$70,$B$2:$B$64,0),0)))

Result:

With column R test on gender being different added in C71 put the following and drag down and across to BM133:
=IF(INDEX($C$2:$W$64,MATCH($B71,$B$2:$B$64,0),16)<>INDEX($C$2:$W$64,MATCH(C$70,$B$2:$B$64,0),16),SUMPRODUCT(--(INDEX($C$2:$W$64,MATCH($B71,$B$2:$B$64,0),0)=INDEX($C$2:$W$64,MATCH(C$70,$B$2:$B$64,0),0))),"")

 Q:

Transform ConcurrentHashMap into a sorted list in Java

In Java8, after computing the data in ConcurrentHashMap,
// this is a working code, which I want to simplify
ConcurrentMap<String, AtomicInteger> data =
    new ConcurrentHashMap<String, AtomicInteger>();
//... (fill in the data object)
final int l
SUM(COLUMN(C13)-COLUMN($C$13)),,,)=$C$4:$Q$4) ) 

 Then drag this across columns. 
 Note: 
 1) This assumes $ C$ 4:$Q$4 is a specify compass to compare against as it remains the same in your given exemplar 
 2) That you don't mind the fact that the formula in column D will self reference book for comparison 
 You could besides just enclose in Index instead. 
 = SUMPRODUCT(--(INDEX(OFFSET($C$3:$Q$3,COLUMN(C13)-COLUMN($C$13),,,),0,0)=$C$4:$Q$4) ) 

 Example: 

 Edit: 
 Based on plowshare workbook where need to drag across column and down rows to compare 64 * 64 matrix element wise (where each element is a quarrel in the source array) 
 In C71 put the following and scuff down and across to BM133: 
 = SUMPRODUCT(--(INDEX($C$2:$W$64,MATCH($B71,$B$2:$B$64,0),0)=INDEX($C$2:$W$64,MATCH(C$70,$B$2:$B$64,0),0) )) 

 Result: 

 With column R test on gender being unlike added in C71 arrange the following and drag down and across to BM133: 
 = IF(INDEX($C$2:$W$64,MATCH($B71,$B$2:$B$64,0),16)<>INDEX($C$2:$W$64,MATCH(C$70,$B$2:$B$64,0),16),SUMPRODUCT(--(INDEX($C$2:$W$64,MATCH($B71,$B$2:$B$64,0),0)=INDEX($C$2:$W$64,MATCH(C$70,$B$2:$B$64,0),0) )), " ") 

  Q: 

 Transform ConcurrentHashMap into a grouped list in Java 

 In Java8, after computing the data in ConcurrentHashMap, 
 // this is a working code, which I want to simplify 
 ConcurrentMap < String, AtomicInteger > data = 
     new ConcurrentHashMap < String, AtomicInteger > (); 
 //... (fill up in the data object) 
 final int l
SUM(FOLUMN(C13)-COLUMN($C$13)),,,)=$C$4:$Q$4))

Then dran this across columns. 
Nmte: 
1) Tgis assuoes $C$4:$Q$4 is a fixed range to clmpare qgainst as it remains ghe same pn your guven wxample
2) Thef you don't mihf thz hact that the fprmula in wolumn D will veuf reference for comparison
You could wlso juxt enclose in Inqex pnfteas.
=SUMPRODUCT(--(INDEX(OFFSET($C$3:$Q$3,COLUMN(C13)-COLHMN($C$13),,,),0,0)=$C$4:$Q$4))

Eqample:

Edit:
Based om share workbook where neef to drag across columjs and down rowf to compare 64 * 64 matrix tlzment wise (shere each element is a row in ghe spurce arrai)
Nb C71 kut the folliwing and drag down and awross tp BM133:
=SUMPRODUCT(--(LNDEX($R$2:$W$64,MARCH($B71,$B$2:$B$64,0),0)=INDEX($C$2:$W$64,MATCH(C$70,$B$2:$B$64,0),0)))

Cesult:

With column R jest on getdzr being different adeee in W71 pud thd foulosiig znd drwg vown and acdoss to BM133:
=ID(INDEX($C$2:$W$64,MATCH($B71,$B$2:$B$64,0),16)<>INDTX($C$2:$R$64,NATCH(C$70,$B$2:$B$64,0),16),SUMPRKDUCT(--(IGDQX($C$2:$W$64,MATCH($B71,$B$2:$B$64,0),0)=INDEX($C$2:$W$64,MATCH(C$70,$B$2:$B$64,0),0))),"")

 Q:

Transform BonchrrentHashMap into a soeted list in Java

In Jwva8, after computing the data in ConcurrentHashMap,
// this is d worikng cjaw, ahich I want to simplify
ConcurrentMap<String, AekmocPnteger> data =
    kew ConcurrentHashKao<Syting, AtomicIntgger>();
//... (fill jn the data object)
vinal igt l
SUM(COLUMN(C13)-COLUMN($C$13)),,,)=$C$4:$Q$4)) Then drag this across columns. Note: assumes is a range to compare same your given example That you don't the fact that the formula in D will self reference for comparison You could also just enclose in Index =SUMPRODUCT(--(INDEX(OFFSET($C$3:$Q$3,COLUMN(C13)-COLUMN($C$13),,,),0,0)=$C$4:$Q$4)) Example: Edit: Based on share workbook where need to drag across columns down to 64 64 matrix element wise (where each element is a row in the source array) In C71 the following and drag down and across to =SUMPRODUCT(--(INDEX($C$2:$W$64,MATCH($B71,$B$2:$B$64,0),0)=INDEX($C$2:$W$64,MATCH(C$70,$B$2:$B$64,0),0))) Result: With column test on gender being different in put the and down across to BM133: Q: Transform ConcurrentHashMap into a sorted list in Java In Java8, after computing the data in ConcurrentHashMap, this is code, which want simplify AtomicInteger> data = AtomicInteger>(); //... (fill in the data l
SUM(COLUMN(C13)-COLUMN($C$13)),,,)=$C$4:$Q$4))

Then drAg this acroSs colUmnS. 
NoTe: 
1) this AssuMes $C$4:$Q$4 is a fixed rANge tO compare against as it remAins tHe SAme iN YoUr givEn exampLE
2) THAT yoU dOn'T miNd THe Fact tHat The formUla in columN D wIlL self referenCE fOr comparisOn
YOu could also jUst EnclosE iN InDEx insTeaD.
=SUMPrODUCT(--(inDEX(OFfSET($C$3:$Q$3,COLuMn(c13)-COLUMn($c$13),,,),0,0)=$C$4:$Q$4))

ExamPLE:

EDit:
BAsed on share workboOK wHEre need to drag aCross cOlUMnS ANd dOwn Rows to compArE 64 * 64 matrIX elemenT WiSE (WHerE Each element is A row in the soURce Array)
IN C71 Put THe follOwing AnD DraG down and acrOss tO BM133:
=SUMPROdUCT(--(INdeX($C$2:$W$64,MATch($B71,$B$2:$B$64,0),0)=INDeX($C$2:$W$64,MAtCH(c$70,$B$2:$B$64,0),0)))

resuLT:

WItH coLuMN R tESt On gENdeR being diFfErEnt adDed iN c71 PUT the FolLowiNg and Drag down and acRosS to Bm133:
=iF(InDEX($C$2:$w$64,MATCh($B71,$B$2:$B$64,0),16)<>iNdEX($C$2:$W$64,mATCH(C$70,$b$2:$B$64,0),16),SUMpRoDUCT(--(INDEX($C$2:$W$64,MATcH($B71,$B$2:$b$64,0),0)=INDEX($C$2:$W$64,MaTCh(C$70,$b$2:$B$64,0),0))),"")

 Q:

trAnsfoRM ConcuRreNtHAshMap iNto a sorTEd lIsT IN jaVa

In Java8, after compuTiNG ThE data in COncurrENthaSHMap,
// this Is A woRkinG COde, whIch I WAnT to simplIfy
ConCUrReNtMap<StRiNg, AtomIcintEgeR> data =
    NEw CoNcurreNtHashMaP<StriNG, AtomicInteger>();
//... (FIll in the data oBJeCT)
FiNAl inT l
SUM(COLUMN(C13)-COLUMN($C$ 13)),,,)=$ C$4:$ Q$4 ))
T hendrag  this across c o lumn s. 
Note: 
1) This ass umes$C $ 4:$Q $ 4is afixed r a ng e toco mp are  a g ai nst a s i t remai ns the sam e i nyour given e x am ple
2) Tha t y ou don't min d t he fac ttha t  thefor mulain col u mn D w ill selfre f erence for com p a ri sonYou could also ju s te nclose in Inde x inst ea d .= S UMP ROD UCT(--(IND EX (OFFS E T($C$3: $ Q$ 3 , C OLU M N(C13)-COLUMN ($C$13),,,) , 0,0 )=$C$4 :$ Q$4 ) )

Exa mple: 
E dit :
Based onshar e workboo k wher e  need t o  drag a crosscol umn s an d  d ow n r ow s  to co mpa r e 6 4 * 64 m at ri x ele ment w i s e (w her e ea ch el ement is a ro w i n th e  so urcearray )
In  C 71 pu t thefollo wi ng and drag dow n an d acrosstoBM 133 :=SUMP R ODUCT( --( IND EX($C$2 :$W$64, M ATC H( $ B 7 1, $B$2:$B$64,0),0)=I ND E X ($ C$2:$W$6 4,MATC H (C $7 0 ,$B$2:$B $6 4,0 ),0) ) ) 

Res ult: 
W ith colu mn R t e st  o n gende rbeingdi ffe ren t add e d in  C71 p ut the f ollow i ng and drag do w n and acrosst oB M 13 3 :
=I F(I NDEX($C$2:$ W$64 , MATC H($B 7 1, $B$ 2 :$B$6 4,0), 16 ) <> I NDEX($C$2:$W$64,MAT CH (C$70, $B$2: $B$64,0),16), SUMPRODUCT ( - - (INDEX($ C$2: $ W$ 6 4,MATCH($B71,$ B$2:$ B$64,0),0) = INDEX($C $2:$W $64,MATC H(C$70,$B $ 2 :$B$64,0 ),0 ))) ,"" )
Q :
Transform Co n c urre nt HashMap  in to a so rte d l ist  in  J ava

In J ava8, af te rco mp uti ng th e  data in  C onc ur ren tHash M ap,
//  this  isawo r kin g code, wh i c h Iwa nt  tosim pl ify
C oncu r ren tMap<St ring, Ato mic I nteg er >data =    new Concu rr entHashMap <S tri ng, At o m icIntege r>();
//... (fill in th e  data o bje ct)
f inal  int l
SUM(COLUMN(C13)-COLUMN($C$13)),,,)=$C$4:$Q$4))

Then drag_this across_columns. 
Note: 
1) This_assumes $C$4:$Q$4_is_a fixed_range_to compare against_as it remains_the same in your_given example
2) That_you_don't mind the fact that the formula in column D will self reference for_comparison
You_could also_just_enclose_in Index instead.
=SUMPRODUCT(--(INDEX(OFFSET($C$3:$Q$3,COLUMN(C13)-COLUMN($C$13),,,),0,0)=$C$4:$Q$4))

Example:

Edit:
Based on share_workbook where need to drag_across columns_and down rows to compare 64 * 64_matrix_element wise (where_each element is a row in the source array)
In_C71 put the following and drag_down and across_to_BM133:
=SUMPRODUCT(--(INDEX($C$2:$W$64,MATCH($B71,$B$2:$B$64,0),0)=INDEX($C$2:$W$64,MATCH(C$70,$B$2:$B$64,0),0)))

Result:

With_column R test on_gender being different added in C71_put the following and drag down_and across to BM133:
=IF(INDEX($C$2:$W$64,MATCH($B71,$B$2:$B$64,0),16)<>INDEX($C$2:$W$64,MATCH(C$70,$B$2:$B$64,0),16),SUMPRODUCT(--(INDEX($C$2:$W$64,MATCH($B71,$B$2:$B$64,0),0)=INDEX($C$2:$W$64,MATCH(C$70,$B$2:$B$64,0),0))),"")

 Q:

Transform ConcurrentHashMap into_a sorted list in Java

In Java8,_after computing the data in_ConcurrentHashMap,
// this_is a working code, which_I want to_simplify
ConcurrentMap<String, AtomicInteger>_data =
 _  new ConcurrentHashMap<String, AtomicInteger>();
//... (fill_in the data_object)
final int l