How to find doubles, triplets, and quadruplets in a range of listed numbers

caneki

New Member
Joined
Jun 20, 2024
Messages
7
Office Version
  1. 2021
Platform
  1. Mobile
IMG_0331.jpeg

I saw a thread posted recently and
I actually used Snakehips' answer and it was very good.
I have additional questions
How do I find quadruples?
 

Excel Facts

What does custom number format of ;;; mean?
Three semi-colons will hide the value in the cell. Although most people use white font instead.
In column Y, please do UNIQUE(H2:Q14) for listing down all the possible entries

Right beside these entries in column Y, in column Z, please put countif(H2:Q14)

Then, in column AB- please put sortby(Y:Z, Z:Z)- this would sort the columns by the count which is there in Z:Z
 
Upvote 0
In column Y, please do UNIQUE(H2:Q14) for listing down all the possible entries

Right beside these entries in column Y, in column Z, please put countif(H2:Q14)

Then, in column AB- please put sortby(Y:Z, Z:Z)- this would sort the columns by the count which is there in Z:Z
Thanks for the answer.
This is a triplets function formula.

=TRANSPOSE(LET(tr,TOCOL(B25#&"-"&TRANSPOSE(U2:Y2)),FILTER(tr,1*TEXTAFTER(TEXTBEFORE(tr,"-",2),"-")<1*TEXTAFTER(tr,"-",2))))

I would like to know how to modify this function to quadruplets, how should I modify it?
 
Upvote 0
Hi

Please check this

For triplets
=TRANSPOSE(LET(outarr,LET(arr,WRAPROWS(TEXTSPLIT(TEXTJOIN("-",,TOROW((B2:F2)&"-"&TRANSPOSE(H2#))),"-")*1,3),FILTER(arr,CHOOSECOLS(arr,1)<CHOOSECOLS(arr,2))),CHOOSECOLS(outarr,1)&"-"&CHOOSECOLS(outarr,2)&"-"&CHOOSECOLS(outarr,3)))
For quadraplets
=TRANSPOSE(LET(outarr,LET(arr,WRAPROWS(TEXTSPLIT(TEXTJOIN("-",,TOROW((B2:F2)&"-"&TRANSPOSE(H15#))),"-")*1,4),FILTER(arr,CHOOSECOLS(arr,1)<CHOOSECOLS(arr,2))),CHOOSECOLS(outarr,1)&"-"&CHOOSECOLS(outarr,2)&"-"&CHOOSECOLS(outarr,3)&"-"&CHOOSECOLS(outarr,4)))

Differences between the triplets and quadraplets
Source- H2# array- takes from pairs, to build triplets, H15# array takes from triplets to build quadraplets

The 3 (for triplets) and 4( for quadraplets) highlighted above in Red
The last "-"&CHOOSECOLS(outarr,4) which is additional for quadraplets

The fundamental logic is as suggested by @snake Hips



Triplets, Qudraplets etc.xlsx
BCDEFGHIJKLMNOPQRST
1InputAll possible pairsCount>=2
25151825285-155-1815-185-2515-2518-255-2815-2818-2825-285-252
32371635452-3716-3735-372-162-3516-352-4537-4516-4535-455-282
45252836385-255-2825-285-3625-3628-365-3825-3828-3836-3825-282
58163537458-168-3516-358-3716-3735-378-4516-4535-4537-4516-372
64101920434-104-1910-194-2010-2019-204-4310-4319-4320-4335-372
716-352
837-452
916-452
1035-452
11
12
13
14All possible tripletsCount>=2
155-15-185-15-255-18-2515-18-255-15-285-18-2815-18-285-25-2815-25-2818-25-285-25-282
162-16-372-35-3716-35-372-16-352-37-4516-37-4535-37-452-16-452-35-4516-35-4516-35-372
175-25-285-25-365-28-3625-28-365-25-385-28-3825-28-385-36-3825-36-3828-36-3816-37-452
188-16-358-16-378-35-3716-35-378-16-458-35-4516-35-458-37-4516-37-4535-37-4535-37-452
194-10-194-10-204-19-2010-19-204-10-434-19-4310-19-434-20-4310-20-4319-20-4316-35-452
20
21Count>=2
225-15-18-255-15-18-285-15-25-285-18-25-2815-18-25-2816-35-37-452
232-16-35-372-16-37-452-35-37-4516-35-37-452-16-35-45
245-25-28-365-25-28-385-25-36-385-28-36-3825-28-36-38
258-16-35-378-16-35-458-16-37-458-35-37-4516-35-37-45
264-10-19-204-10-19-434-10-20-434-19-20-4310-19-20-43
Sheet3
Cell Formulas
RangeFormula
S2:S10,S22,S15:S19S2=UNIQUE(TOCOL(IF(COUNTIF(H2:Q6,H2:Q6)>1,H2:Q6,1/0),3))
T2:T10,T22,T15:T19T2=COUNTIF(H2:Q6,S2#)
H2:Q6H2=LET(arr,TOROW((B2:F2)&"-"&TRANSPOSE(B2:F2)),FILTER(arr,TEXTBEFORE(arr,"-")*1<TEXTAFTER(arr,"-")*1))
H15:Q19H15=TRANSPOSE(LET(outarr,LET(arr,WRAPROWS(TEXTSPLIT(TEXTJOIN("-",,TOROW((B2:F2)&"-"&TRANSPOSE(H2#))),"-")*1,3),FILTER(arr,CHOOSECOLS(arr,1)<CHOOSECOLS(arr,2))),CHOOSECOLS(outarr,1)&"-"&CHOOSECOLS(outarr,2)&"-"&CHOOSECOLS(outarr,3)))
H22:L26H22=TRANSPOSE(LET(outarr,LET(arr,WRAPROWS(TEXTSPLIT(TEXTJOIN("-",,TOROW((B2:F2)&"-"&TRANSPOSE(H15#))),"-")*1,4),FILTER(arr,CHOOSECOLS(arr,1)<CHOOSECOLS(arr,2))),CHOOSECOLS(outarr,1)&"-"&CHOOSECOLS(outarr,2)&"-"&CHOOSECOLS(outarr,3)&"-"&CHOOSECOLS(outarr,4)))
Dynamic array formulas.
 
Upvote 0
@caneki
Here is an extension of the solution I provided previously that hopefully sorts Quadruplets?

AutoTraining.xlsm
ABCDEFGHIJKLMNOPQRSTUVWXYZAAAB
1Range of NumbersPairsTimesTripletsTimesQuadsTimesRange Check
231518252825-28216-35-452None01016194320
32516354516-352As a result of adding above range:
452528363816-452PairsTimesTripletsTimesQuadsTimes
581635374535-45225-28216-35-45210-19-20-432
641019204316-35210-19-202
716-45210-19-432
835-45210-20-432
910-19219-20-432
1010-202
1119-202
1210-432
1319-432
1420-432
15
16
17
18
19
20Pairs Helper3-153-1815-183-2515-2518-253-2815-2818-2825-28
21Numbers Pairs2-52-165-162-355-3516-352-455-4516-4535-45
225-255-2825-285-3625-3628-365-3825-3828-3836-38
238-168-3516-358-3716-3735-378-4516-4535-4537-45
244-104-1910-194-2010-2019-204-4310-4319-4320-43
25Check Pairs10-1610-1916-1910-4316-4319-4320-4310-2016-2019-20
26
27
28Triplets Helper3-15-183-15-253-18-2515-18-253-15-283-18-2815-18-283-25-2815-25-2818-25-28
29Numbers Triplets2-5-162-5-352-16-355-16-352-5-452-16-455-16-452-35-455-35-4516-35-45
305-25-285-25-365-28-3625-28-365-25-385-28-3825-28-385-36-3825-36-3828-36-38
318-16-358-16-378-35-3716-35-378-16-458-35-4516-35-458-37-4516-37-4535-37-45
324-10-194-10-204-19-2010-19-204-10-434-19-4310-19-434-20-4310-20-4319-20-43
33Check Triples10-16-1910-16-4310-19-4316-19-4310-20-4316-20-4319-20-4310-16-2010-19-2016-19-20
34
35
36Quads Helper3-15-18-253-15-18-283-15-25-283-18-25-2815-18-25-28
37Numbers Triplets2-5-16-352-5-16-452-5-35-452-16-35-455-16-35-45
385-25-28-365-25-28-385-25-36-385-28-36-3825-28-36-38
398-16-35-378-16-35-458-16-37-458-35-37-4516-35-37-45
404-10-19-204-10-19-434-10-20-434-19-20-4310-19-20-43
41Check Quads10-16-19-2010-16-19-4310-16-20-4310-19-20-4316-19-20-43
Sheet11
Cell Formulas
RangeFormula
H2:H5H2=IFERROR(UNIQUE(TOCOL(IF(COUNTIF(B20:K24,B20:K24)>1,B20:K24,1/0),3)),"None")
I2:I5I2=COUNTIF(B20:K24,H2#)
K2K2=IFERROR(UNIQUE(TOCOL(IF(COUNTIF(B28:K32,B28:K32)>1,B28:K32,1/0),3)),"None")
L2L2=COUNTIF(B28:K32,K2#)
N2N2=IFERROR(UNIQUE(TOCOL(IF(COUNTIF(B36:F40,B36:F40)>1,B36:F40,1/0),3)),"None")
O2O2=COUNTIF(B36:F40,N2#)
U5:U14U5=IFERROR(UNIQUE(TOCOL(IF(COUNTIF(B20:K25,B20:K25)>1,B20:K25,1/0),3)),"None")
V5:V14V5=COUNTIF(B20:K25,U5#)
X5:X9X5=IFERROR(UNIQUE(TOCOL(IF(COUNTIF(B28:K33,B28:K33)>1,B28:K33,1/0),3)),"None")
Y5:Y9Y5=COUNTIF(B28:K33,X5#)
AA5AA5=IFERROR(UNIQUE(TOCOL(IF(COUNTIF(B36:F41,B36:F41)>1,B36:F41,1/0),3)),"None")
AB5AB5=COUNTIF(B36:F41,AA5#)
B20:K24B20=TRANSPOSE(LET(rw,TOCOL(B2:F2&"-"&TRANSPOSE(B2:F2)),FILTER(rw,1*TEXTBEFORE(rw,"-")<1*TEXTAFTER(rw,"-"))))
B25:K25B25=TRANSPOSE(LET(rw,TOCOL(U2:Y2&"-"&TRANSPOSE(U2:Y2)),FILTER(rw,1*TEXTBEFORE(rw,"-")<1*TEXTAFTER(rw,"-"))))
B28:K32B28=TRANSPOSE(LET(tr,TOCOL(B20#&"-"&TRANSPOSE(B2:F2)),FILTER(tr,1*TEXTAFTER(TEXTBEFORE(tr,"-",2),"-")<1*TEXTAFTER(tr,"-",2))))
B33:K33B33=TRANSPOSE(LET(tr,TOCOL(B25#&"-"&TRANSPOSE(U2:Y2)),FILTER(tr,1*TEXTAFTER(TEXTBEFORE(tr,"-",2),"-")<1*TEXTAFTER(tr,"-",2))))
B36:B40B36=TEXTJOIN("-",,INDEX(SORT($B2:$F2,,1,TRUE),{1,2,3,4}))
C36:C40C36=TEXTJOIN("-",,INDEX(SORT($B2:$F2,,1,TRUE),{1,2,3,5}))
D36:D40D36=TEXTJOIN("-",,INDEX(SORT($B2:$F2,,1,TRUE),{1,2,4,5}))
E36:E40E36=TEXTJOIN("-",,INDEX(SORT($B2:$F2,,1,TRUE),{1,3,4,5}))
F36:F40F36=TEXTJOIN("-",,INDEX(SORT($B2:$F2,,1,TRUE),{2,3,4,5}))
B41B41=TEXTJOIN("-",,INDEX(SORT($U$2:$Y$2,,1,TRUE),{1,2,3,4}))
C41C41=TEXTJOIN("-",,INDEX(SORT($U$2:$Y$2,,1,TRUE),{1,2,3,5}))
D41D41=TEXTJOIN("-",,INDEX(SORT($U$2:$Y$2,,1,TRUE),{1,2,4,5}))
E41E41=TEXTJOIN("-",,INDEX(SORT($U$2:$Y$2,,1,TRUE),{1,3,4,5}))
F41F41=TEXTJOIN("-",,INDEX(SORT($U$2:$Y$2,,1,TRUE),{2,3,4,5}))
Dynamic array formulas.
 
Upvote 0
Alternative formula for the Pairs and Triplet helpers, similar to used for Quads.

Cell Formulas
RangeFormula
B20:B24B20=TEXTJOIN("-",,INDEX(SORT($B2:$F2,,1,TRUE),{1,2}))
C20:C24C20=TEXTJOIN("-",,INDEX(SORT($B2:$F2,,1,TRUE),{1,3}))
D20:D24D20=TEXTJOIN("-",,INDEX(SORT($B2:$F2,,1,TRUE),{1,4}))
E20:E24E20=TEXTJOIN("-",,INDEX(SORT($B2:$F2,,1,TRUE),{1,5}))
F20:F24F20=TEXTJOIN("-",,INDEX(SORT($B2:$F2,,1,TRUE),{2,3}))
G20:G24G20=TEXTJOIN("-",,INDEX(SORT($B2:$F2,,1,TRUE),{2,4}))
H20:H24H20=TEXTJOIN("-",,INDEX(SORT($B2:$F2,,1,TRUE),{2,5}))
I20:I24I20=TEXTJOIN("-",,INDEX(SORT($B2:$F2,,1,TRUE),{3,4}))
J20:J24J20=TEXTJOIN("-",,INDEX(SORT($B2:$F2,,1,TRUE),{3,5}))
K20:K24K20=TEXTJOIN("-",,INDEX(SORT($B2:$F2,,1,TRUE),{4,5}))
B25B25=TEXTJOIN("-",,INDEX(SORT($U$2:$Y$2,,1,TRUE),{1,2}))
C25C25=TEXTJOIN("-",,INDEX(SORT($U$2:$Y$2,,1,TRUE),{1,3}))
D25D25=TEXTJOIN("-",,INDEX(SORT($U$2:$Y$2,,1,TRUE),{1,4}))
E25E25=TEXTJOIN("-",,INDEX(SORT($U$2:$Y$2,,1,TRUE),{1,5}))
F25F25=TEXTJOIN("-",,INDEX(SORT($U$2:$Y$2,,1,TRUE),{2,3}))
G25G25=TEXTJOIN("-",,INDEX(SORT($U$2:$Y$2,,1,TRUE),{2,4}))
H25H25=TEXTJOIN("-",,INDEX(SORT($U$2:$Y$2,,1,TRUE),{2,5}))
I25I25=TEXTJOIN("-",,INDEX(SORT($U$2:$Y$2,,1,TRUE),{3,4}))
J25J25=TEXTJOIN("-",,INDEX(SORT($U$2:$Y$2,,1,TRUE),{3,5}))
K25K25=TEXTJOIN("-",,INDEX(SORT($U$2:$Y$2,,1,TRUE),{4,5}))
B28:B32B28=TEXTJOIN("-",,INDEX(SORT($B2:$F2,,1,TRUE),{1,2,3}))
C28:C32C28=TEXTJOIN("-",,INDEX(SORT($B2:$F2,,1,TRUE),{1,2,4}))
D28:D32D28=TEXTJOIN("-",,INDEX(SORT($B2:$F2,,1,TRUE),{1,2,5}))
E28:E32E28=TEXTJOIN("-",,INDEX(SORT($B2:$F2,,1,TRUE),{1,3,4}))
F28:F32F28=TEXTJOIN("-",,INDEX(SORT($B2:$F2,,1,TRUE),{1,3,5}))
G28:G32G28=TEXTJOIN("-",,INDEX(SORT($B2:$F2,,1,TRUE),{1,4,5}))
H28:H32H28=TEXTJOIN("-",,INDEX(SORT($B2:$F2,,1,TRUE),{2,3,4}))
I28:I32I28=TEXTJOIN("-",,INDEX(SORT($B2:$F2,,1,TRUE),{2,3,5}))
J28:J32J28=TEXTJOIN("-",,INDEX(SORT($B2:$F2,,1,TRUE),{2,4,5}))
K28:K32K28=TEXTJOIN("-",,INDEX(SORT($B2:$F2,,1,TRUE),{3,4,5}))
B33B33=TEXTJOIN("-",,INDEX(SORT($U$2:$Y$2,,1,TRUE),{1,2,3}))
C33C33=TEXTJOIN("-",,INDEX(SORT($U$2:$Y$2,,1,TRUE),{1,2,4}))
D33D33=TEXTJOIN("-",,INDEX(SORT($U$2:$Y$2,,1,TRUE),{1,2,5}))
E33E33=TEXTJOIN("-",,INDEX(SORT($U$2:$Y$2,,1,TRUE),{1,3,4}))
F33F33=TEXTJOIN("-",,INDEX(SORT($U$2:$Y$2,,1,TRUE),{1,3,5}))
G33G33=TEXTJOIN("-",,INDEX(SORT($U$2:$Y$2,,1,TRUE),{1,4,5}))
H33H33=TEXTJOIN("-",,INDEX(SORT($U$2:$Y$2,,1,TRUE),{2,3,4}))
I33I33=TEXTJOIN("-",,INDEX(SORT($U$2:$Y$2,,1,TRUE),{2,3,5}))
J33J33=TEXTJOIN("-",,INDEX(SORT($U$2:$Y$2,,1,TRUE),{2,4,5}))
K33K33=TEXTJOIN("-",,INDEX(SORT($U$2:$Y$2,,1,TRUE),{3,4,5}))
 
Upvote 0
Hi

Please check this

For triplets
=TRANSPOSE(LET(outarr,LET(arr,WRAPROWS(TEXTSPLIT(TEXTJOIN("-",,TOROW((B2:F2)&"-"&TRANSPOSE(H2#))),"-")*1,3),FILTER(arr,CHOOSECOLS(arr,1)<CHOOSECOLS(arr,2))),CHOOSECOLS(outarr,1)&"-"&CHOOSECOLS(outarr,2)&"-"&CHOOSECOLS(outarr,3)))
For quadraplets
=TRANSPOSE(LET(outarr,LET(arr,WRAPROWS(TEXTSPLIT(TEXTJOIN("-",,TOROW((B2:F2)&"-"&TRANSPOSE(H15#))),"-")*1,4),FILTER(arr,CHOOSECOLS(arr,1)<CHOOSECOLS(arr,2))),CHOOSECOLS(outarr,1)&"-"&CHOOSECOLS(outarr,2)&"-"&CHOOSECOLS(outarr,3)&"-"&CHOOSECOLS(outarr,4)))

Differences between the triplets and quadraplets
Source- H2# array- takes from pairs, to build triplets, H15# array takes from triplets to build quadraplets

The 3 (for triplets) and 4( for quadraplets) highlighted above in Red
The last "-"&CHOOSECOLS(outarr,4) which is additional for quadraplets

The fundamental logic is as suggested by @snake Hips



Triplets, Qudraplets etc.xlsx
BCDEFGHIJKLMNOPQRST
1InputAll possible pairsCount>=2
25151825285-155-1815-185-2515-2518-255-2815-2818-2825-285-252
32371635452-3716-3735-372-162-3516-352-4537-4516-4535-455-282
45252836385-255-2825-285-3625-3628-365-3825-3828-3836-3825-282
58163537458-168-3516-358-3716-3735-378-4516-4535-4537-4516-372
64101920434-104-1910-194-2010-2019-204-4310-4319-4320-4335-372
716-352
837-452
916-452
1035-452
11
12
13
14All possible tripletsCount>=2
155-15-185-15-255-18-2515-18-255-15-285-18-2815-18-285-25-2815-25-2818-25-285-25-282
162-16-372-35-3716-35-372-16-352-37-4516-37-4535-37-452-16-452-35-4516-35-4516-35-372
175-25-285-25-365-28-3625-28-365-25-385-28-3825-28-385-36-3825-36-3828-36-3816-37-452
188-16-358-16-378-35-3716-35-378-16-458-35-4516-35-458-37-4516-37-4535-37-4535-37-452
194-10-194-10-204-19-2010-19-204-10-434-19-4310-19-434-20-4310-20-4319-20-4316-35-452
20
21Count>=2
225-15-18-255-15-18-285-15-25-285-18-25-2815-18-25-2816-35-37-452
232-16-35-372-16-37-452-35-37-4516-35-37-452-16-35-45
245-25-28-365-25-28-385-25-36-385-28-36-3825-28-36-38
258-16-35-378-16-35-458-16-37-458-35-37-4516-35-37-45
264-10-19-204-10-19-434-10-20-434-19-20-4310-19-20-43
Sheet3
Cell Formulas
RangeFormula
S2:S10,S22,S15:S19S2=UNIQUE(TOCOL(IF(COUNTIF(H2:Q6,H2:Q6)>1,H2:Q6,1/0),3))
T2:T10,T22,T15:T19T2=COUNTIF(H2:Q6,S2#)
H2:Q6H2=LET(arr,TOROW((B2:F2)&"-"&TRANSPOSE(B2:F2)),FILTER(arr,TEXTBEFORE(arr,"-")*1<TEXTAFTER(arr,"-")*1))
H15:Q19H15=TRANSPOSE(LET(outarr,LET(arr,WRAPROWS(TEXTSPLIT(TEXTJOIN("-",,TOROW((B2:F2)&"-"&TRANSPOSE(H2#))),"-")*1,3),FILTER(arr,CHOOSECOLS(arr,1)<CHOOSECOLS(arr,2))),CHOOSECOLS(outarr,1)&"-"&CHOOSECOLS(outarr,2)&"-"&CHOOSECOLS(outarr,3)))
H22:L26H22=TRANSPOSE(LET(outarr,LET(arr,WRAPROWS(TEXTSPLIT(TEXTJOIN("-",,TOROW((B2:F2)&"-"&TRANSPOSE(H15#))),"-")*1,4),FILTER(arr,CHOOSECOLS(arr,1)<CHOOSECOLS(arr,2))),CHOOSECOLS(outarr,1)&"-"&CHOOSECOLS(outarr,2)&"-"&CHOOSECOLS(outarr,3)&"-"&CHOOSECOLS(outarr,4)))
Dynamic array formulas.
Thank you very much.
I tried it and it works fine.
Thanks again.
 
Upvote 0
Alternative formula for the Pairs and Triplet helpers, similar to used for Quads.

Cell Formulas
RangeFormula
B20:B24B20=TEXTJOIN("-",,INDEX(SORT($B2:$F2,,1,TRUE),{1,2}))
C20:C24C20=TEXTJOIN("-",,INDEX(SORT($B2:$F2,,1,TRUE),{1,3}))
D20:D24D20=TEXTJOIN("-",,INDEX(SORT($B2:$F2,,1,TRUE),{1,4}))
E20:E24E20=TEXTJOIN("-",,INDEX(SORT($B2:$F2,,1,TRUE),{1,5}))
F20:F24F20=TEXTJOIN("-",,INDEX(SORT($B2:$F2,,1,TRUE),{2,3}))
G20:G24G20=TEXTJOIN("-",,INDEX(SORT($B2:$F2,,1,TRUE),{2,4}))
H20:H24H20=TEXTJOIN("-",,INDEX(SORT($B2:$F2,,1,TRUE),{2,5}))
I20:I24I20=TEXTJOIN("-",,INDEX(SORT($B2:$F2,,1,TRUE),{3,4}))
J20:J24J20=TEXTJOIN("-",,INDEX(SORT($B2:$F2,,1,TRUE),{3,5}))
K20:K24K20=TEXTJOIN("-",,INDEX(SORT($B2:$F2,,1,TRUE),{4,5}))
B25B25=TEXTJOIN("-",,INDEX(SORT($U$2:$Y$2,,1,TRUE),{1,2}))
C25C25=TEXTJOIN("-",,INDEX(SORT($U$2:$Y$2,,1,TRUE),{1,3}))
D25D25=TEXTJOIN("-",,INDEX(SORT($U$2:$Y$2,,1,TRUE),{1,4}))
E25E25=TEXTJOIN("-",,INDEX(SORT($U$2:$Y$2,,1,TRUE),{1,5}))
F25F25=TEXTJOIN("-",,INDEX(SORT($U$2:$Y$2,,1,TRUE),{2,3}))
G25G25=TEXTJOIN("-",,INDEX(SORT($U$2:$Y$2,,1,TRUE),{2,4}))
H25H25=TEXTJOIN("-",,INDEX(SORT($U$2:$Y$2,,1,TRUE),{2,5}))
I25I25=TEXTJOIN("-",,INDEX(SORT($U$2:$Y$2,,1,TRUE),{3,4}))
J25J25=TEXTJOIN("-",,INDEX(SORT($U$2:$Y$2,,1,TRUE),{3,5}))
K25K25=TEXTJOIN("-",,INDEX(SORT($U$2:$Y$2,,1,TRUE),{4,5}))
B28:B32B28=TEXTJOIN("-",,INDEX(SORT($B2:$F2,,1,TRUE),{1,2,3}))
C28:C32C28=TEXTJOIN("-",,INDEX(SORT($B2:$F2,,1,TRUE),{1,2,4}))
D28:D32D28=TEXTJOIN("-",,INDEX(SORT($B2:$F2,,1,TRUE),{1,2,5}))
E28:E32E28=TEXTJOIN("-",,INDEX(SORT($B2:$F2,,1,TRUE),{1,3,4}))
F28:F32F28=TEXTJOIN("-",,INDEX(SORT($B2:$F2,,1,TRUE),{1,3,5}))
G28:G32G28=TEXTJOIN("-",,INDEX(SORT($B2:$F2,,1,TRUE),{1,4,5}))
H28:H32H28=TEXTJOIN("-",,INDEX(SORT($B2:$F2,,1,TRUE),{2,3,4}))
I28:I32I28=TEXTJOIN("-",,INDEX(SORT($B2:$F2,,1,TRUE),{2,3,5}))
J28:J32J28=TEXTJOIN("-",,INDEX(SORT($B2:$F2,,1,TRUE),{2,4,5}))
K28:K32K28=TEXTJOIN("-",,INDEX(SORT($B2:$F2,,1,TRUE),{3,4,5}))
B33B33=TEXTJOIN("-",,INDEX(SORT($U$2:$Y$2,,1,TRUE),{1,2,3}))
C33C33=TEXTJOIN("-",,INDEX(SORT($U$2:$Y$2,,1,TRUE),{1,2,4}))
D33D33=TEXTJOIN("-",,INDEX(SORT($U$2:$Y$2,,1,TRUE),{1,2,5}))
E33E33=TEXTJOIN("-",,INDEX(SORT($U$2:$Y$2,,1,TRUE),{1,3,4}))
F33F33=TEXTJOIN("-",,INDEX(SORT($U$2:$Y$2,,1,TRUE),{1,3,5}))
G33G33=TEXTJOIN("-",,INDEX(SORT($U$2:$Y$2,,1,TRUE),{1,4,5}))
H33H33=TEXTJOIN("-",,INDEX(SORT($U$2:$Y$2,,1,TRUE),{2,3,4}))
I33I33=TEXTJOIN("-",,INDEX(SORT($U$2:$Y$2,,1,TRUE),{2,3,5}))
J33J33=TEXTJOIN("-",,INDEX(SORT($U$2:$Y$2,,1,TRUE),{2,4,5}))
K33K33=TEXTJOIN("-",,INDEX(SORT($U$2:$Y$2,,1,TRUE),{3,4,5}))
Thank you so much for your attention to detail.
I'm very happy to apply the function you sent me.
Thank you very much.
 
Upvote 0

Forum statistics

Threads
1,223,909
Messages
6,175,312
Members
452,634
Latest member
cpostell

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