=[URL="https://exceljet.net/excel-functions/excel-sumproduct-function"]SUMPRODUCT[/URL](1/[URL="https://exceljet.net/excel-functions/excel-countif-function"]COUNTIF[/URL]([SIZE=3]yourRange,yourRange[/SIZE]))
A | B | C | D | E | F | G | H | |
#DIV/0! | Apple | Fish | ||||||
Dog | ||||||||
Orange | Dog | |||||||
Cat | ||||||||
Cat | ||||||||
Duck | ||||||||
Bird | ||||||||
Rabbit | Rabbit |
Spreadsheet Formulas | ||||
<tbody> </tbody> |
=IFERROR(INDEX(INDEX($A$1:$H$11,N(IF(1,AGGREGATE(15,6,(ROW($A$1:$H$11)*100+COLUMN($A$1:$H$11))/($A$1:$H$11<>""),ROW(J1:J20))/100)),N(IF(1,MOD(AGGREGATE(15,6,(ROW($A$1:$H$11)*100+COLUMN($A$1:$H$11))/($A$1:$H$11<>""),ROW(J1:J20)),100)))),MATCH(0,COUNTIF(J$1:J1,INDEX($A$1:$H$11,N(IF(1,AGGREGATE(15,6,(ROW($A$1:$H$11)*100+COLUMN($A$1:$H$11))/($A$1:$H$11<>""),ROW(J1:J20))/100)),N(IF(1,MOD(AGGREGATE(15,6,(ROW($A$1:$H$11)*100+COLUMN($A$1:$H$11))/($A$1:$H$11<>""),ROW(J1:J20)),100))))),)),"")
Excel Workbook | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
A | B | C | D | E | F | G | H | I | |||
1 | 14 | Apple | Fish | 15 | |||||||
2 | Returns | Dog | |||||||||
3 | Apple | Orange | Dog | Fritz | Tommy | ||||||
4 | Bird | Cat | Fritz | ||||||||
5 | Cat | Duck | |||||||||
6 | Cooper | Cat | Rhino | Fish | |||||||
7 | Dave | Duck | |||||||||
8 | Dog | Fritz | |||||||||
9 | Duck | Bird | Dave | ||||||||
10 | Fish | Cooper | Gus | ||||||||
11 | Fritz | Rabbit | Rabbit | ||||||||
12 | Gus | ||||||||||
13 | Orange | ||||||||||
14 | Rabbit | ||||||||||
15 | Rhino | ||||||||||
16 | Tommy | ||||||||||
Sheet1 |