Rank Duplicates Based on Other Cell Value - Part 3

Drogan

New Member
Joined
Mar 1, 2011
Messages
32
Ok...new problem...I thought I had everything worked out and working perfectly...but now I've run into a snag.

Sheet1

<table style="padding-right: 2pt; padding-left: 2pt; font-size: 10pt; font-family: Arial,Arial; background-color: rgb(255, 255, 255);" border="1" cellpadding="0" cellspacing="0"> <colgroup> <col style="font-weight: bold; width: 30px;"> <col style="width: 75px;"> <col style="width: 75px;"> <col style="width: 75px;"> <col style="width: 75px;"> <col style="width: 75px;"> <col style="width: 75px;"> <col style="width: 75px;"> <col style="width: 75px;"> <col style="width: 75px;"> <col style="width: 75px;"></colgroup> <tbody> <tr style="font-weight: bold; font-size: 8pt; background-color: rgb(202, 202, 202); text-align: center;"> <td>
</td> <td>C</td> <td>D</td> <td>E</td> <td>F</td> <td>G</td> <td>H</td> <td>I</td> <td>J</td> <td>K</td> <td>L</td></tr> <tr style="height: 17px;"> <td style="font-size: 8pt; background-color: rgb(202, 202, 202); text-align: center;">1</td> <td style="font-weight: bold; background-color: rgb(255, 255, 0);">Tim Hayn</td> <td style="font-weight: bold; background-color: rgb(255, 255, 0);">Jack Wilkinson</td> <td style="font-weight: bold; background-color: rgb(255, 255, 0);">Skylar Church</td> <td style="font-weight: bold; background-color: rgb(255, 255, 0);">Emily Babcole</td> <td style="font-weight: bold; background-color: rgb(255, 255, 0);">Nic Quilter</td> <td style="font-weight: bold; background-color: rgb(255, 255, 0);">Kyle Richards</td> <td style="font-weight: bold; background-color: rgb(255, 255, 0);">Noel Song</td> <td style="font-weight: bold; background-color: rgb(255, 255, 0);">Ian David Hilton</td> <td style="font-weight: bold; background-color: rgb(255, 255, 0);">
</td> <td style="font-weight: bold; background-color: rgb(255, 255, 0);">
</td></tr> <tr style="height: 17px;"> <td style="font-size: 8pt; background-color: rgb(202, 202, 202); text-align: center;">19</td> <td style="text-align: right;">8.5</td> <td>
</td> <td>
</td> <td style="text-align: right;">8</td> <td>
</td> <td>
</td> <td style="text-align: right;">7.6</td> <td>
</td> <td>
</td> <td>
</td></tr> <tr style="height: 17px;"> <td style="font-size: 8pt; background-color: rgb(202, 202, 202); text-align: center;">20</td> <td style="text-align: right;">9</td> <td>
</td> <td>
</td> <td style="text-align: right;">8.1</td> <td>
</td> <td>
</td> <td style="text-align: right;">8.8</td> <td>
</td> <td>
</td> <td>
</td></tr> <tr style="height: 17px;"> <td style="font-size: 8pt; background-color: rgb(202, 202, 202); text-align: center;">21</td> <td style="text-align: right;">9.5</td> <td>
</td> <td>
</td> <td style="text-align: right;">9.7</td> <td>
</td> <td>
</td> <td style="text-align: right;">9.7</td> <td>
</td> <td>
</td> <td>
</td></tr> <tr style="height: 17px;"> <td style="font-size: 8pt; background-color: rgb(202, 202, 202); text-align: center;">22</td> <td style="text-align: right;">9.8</td> <td>
</td> <td>
</td> <td style="text-align: right;">9.9</td> <td>
</td> <td>
</td> <td style="text-align: right;">9.8</td> <td>
</td> <td>
</td> <td>
</td></tr> <tr style="height: 17px;"> <td style="font-size: 8pt; background-color: rgb(202, 202, 202); text-align: center;">23</td> <td style="text-align: right;">10</td> <td>
</td> <td>
</td> <td style="text-align: right;">10</td> <td>
</td> <td>
</td> <td style="text-align: right;">10</td> <td>
</td> <td>
</td> <td>
</td></tr> <tr style="height: 17px;"> <td style="font-size: 8pt; background-color: rgb(202, 202, 202); text-align: center;">24</td> <td style="background-color: rgb(153, 204, 255);">00:03:43.64</td> <td style="background-color: rgb(153, 204, 255);">
</td> <td style="background-color: rgb(153, 204, 255);">
</td> <td style="background-color: rgb(153, 204, 255);">00:03:49.12</td> <td style="background-color: rgb(153, 204, 255);">
</td> <td style="background-color: rgb(153, 204, 255);">
</td> <td style="background-color: rgb(153, 204, 255);">00:03:31.25</td> <td style="background-color: rgb(153, 204, 255);">
</td> <td style="background-color: rgb(153, 204, 255);">
</td> <td style="background-color: rgb(153, 204, 255);">
</td></tr> <tr style="height: 17px;"> <td style="font-size: 8pt; background-color: rgb(202, 202, 202); text-align: center;">25</td> <td style="background-color: rgb(255, 153, 0); text-align: right;">0</td> <td style="background-color: rgb(255, 153, 0); text-align: right;">0</td> <td style="background-color: rgb(255, 153, 0); text-align: right;">0</td> <td style="background-color: rgb(255, 153, 0); text-align: right;">0</td> <td style="background-color: rgb(255, 153, 0); text-align: right;">0</td> <td style="background-color: rgb(255, 153, 0); text-align: right;">0</td> <td style="background-color: rgb(255, 153, 0); text-align: right;">0</td> <td style="background-color: rgb(255, 153, 0); text-align: right;">0</td> <td style="background-color: rgb(255, 153, 0); text-align: right;">0</td> <td style="background-color: rgb(255, 153, 0); text-align: right;">0</td></tr> <tr style="height: 17px;"> <td style="font-size: 8pt; background-color: rgb(202, 202, 202); text-align: center;">26</td> <td style="font-weight: bold; background-color: rgb(0, 255, 0); text-align: right;">28.3</td> <td style="font-weight: bold; background-color: rgb(0, 255, 0); text-align: right;">0</td> <td style="font-weight: bold; background-color: rgb(0, 255, 0); text-align: right;">0</td> <td style="font-weight: bold; background-color: rgb(0, 255, 0); text-align: right;">27.7</td> <td style="font-weight: bold; background-color: rgb(0, 255, 0); text-align: right;">0</td> <td style="font-weight: bold; background-color: rgb(0, 255, 0); text-align: right;">0</td> <td style="font-weight: bold; background-color: rgb(0, 255, 0); text-align: right;">28.3</td> <td style="font-weight: bold; background-color: rgb(0, 255, 0); text-align: right;">0</td> <td style="font-weight: bold; background-color: rgb(0, 255, 0); text-align: right;">0</td> <td style="font-weight: bold; background-color: rgb(0, 255, 0); text-align: right;">0</td></tr> <tr style="height: 17px;"> <td style="font-size: 8pt; background-color: rgb(202, 202, 202); text-align: center;">27</td> <td style="font-weight: bold; background-color: rgb(153, 204, 255); text-align: right;">86.1</td> <td style="font-weight: bold; background-color: rgb(153, 204, 255); text-align: right;">24.8</td> <td style="font-weight: bold; background-color: rgb(153, 204, 255); text-align: right;">22.8</td> <td style="font-weight: bold; background-color: rgb(153, 204, 255); text-align: right;">83.9</td> <td style="font-weight: bold; background-color: rgb(153, 204, 255); text-align: right;">51.4</td> <td style="font-weight: bold; background-color: rgb(153, 204, 255); text-align: right;">20.5</td> <td style="font-weight: bold; background-color: rgb(153, 204, 255); text-align: right;">84</td> <td style="font-weight: bold; background-color: rgb(153, 204, 255); text-align: right;">52</td> <td style="font-weight: bold; background-color: rgb(153, 204, 255); text-align: right;">0</td> <td style="font-weight: bold; background-color: rgb(153, 204, 255); text-align: right;">0</td></tr></tbody></table>
Sheet2

<table style="padding-right: 2pt; padding-left: 2pt; font-size: 10pt; font-family: Arial,Arial; background-color: rgb(255, 255, 255);" border="1" cellpadding="0" cellspacing="0"> <colgroup> <col style="font-weight: bold; width: 30px;"> <col style="width: 64px;"> <col style="width: 70px;"> <col style="width: 70px;"> <col style="width: 70px;"></colgroup> <tbody> <tr style="font-weight: bold; font-size: 8pt; background-color: rgb(202, 202, 202); text-align: center;"> <td>
</td> <td>A</td> <td>B</td> <td>C</td> <td>D</td></tr> <tr style="height: 17px;"> <td style="font-size: 8pt; background-color: rgb(202, 202, 202); text-align: center;">16</td> <td style="font-weight: bold; font-size: 9pt;">R3 Clean</td> <td style="font-weight: bold; text-align: right;">28.3</td> <td style="font-weight: bold; text-align: right;">28.3</td> <td style="font-weight: bold; text-align: right;">27.7</td></tr> <tr style="height: 17px;"> <td style="font-size: 8pt; background-color: rgb(202, 202, 202); text-align: center;">17</td> <td style="font-weight: bold; font-size: 9pt;">Names</td> <td style="font-weight: bold;">Ian David Hilton</td> <td style="font-weight: bold;">Ian David Hilton</td> <td style="font-weight: bold;">Emily Babcole</td></tr></tbody></table>
For some reason, the following formulas from Row 17 give me an initial Formula Evaluation Index of 8, then 1. However, the Index should *not* be 8 as you can see. It's supposed to be 1 then 7 respectively.

It's supposed basically say if 2 or more scores are equal, then take the highest [and lowest if needed] scores from sheet 1 in the respective rows and apply the appropriate names. However, that's not doing that in this case, it's giving me the last name in the set instead of the respective names for the respective scores -- the names being Tim Hayn first due to having the higher low score, then Noel Song second.

<table style="font-size: 10pt; border-color: rgb(0, 255, 0); color: rgb(0, 0, 0); border-style: groove; font-family: Arial; background-color: rgb(255, 252, 249);"> <tbody> <tr> <td>Spreadsheet Formulas</td></tr> <tr> <td> <table style="font-size: 9pt; font-family: Arial;" border="1" cellpadding="2" cellspacing="0"> <tbody> <tr style="font-size: 10pt; background-color: rgb(202, 202, 202);"> <td>Cell</td> <td>Formula</td></tr> <tr> <td>B16</td> <td>=IF(LARGE(Sheet1!$C$26:$L$26,COLUMN(A:A))<1,"",LARGE(Sheet1!$C$26:$L$26,COLUMN(A:A)))</td></tr> <tr> <td>C16</td> <td>=IF(LARGE(Sheet1!$C$26:$L$26,COLUMN(B:B))<1,"",LARGE(Sheet1!$C$26:$L$26,COLUMN(B:B)))</td></tr> <tr> <td>D16</td> <td>=IF(LARGE(Sheet1!$C$26:$L$26,COLUMN(C:C))<1,"",LARGE(Sheet1!$C$26:$L$26,COLUMN(C:C)))</td></tr> <tr> <td>B17</td> <td>{=IF(ISERROR(INDEX(Sheet1!$C$1:$L$1,SUMPRODUCT(--(Sheet1!$C$26:$L$26=B16),--(Sheet1!$C$23:$L$23=(LARGE(IF(Sheet1!$C$26:$L$26=B16,Sheet1!$C$23:$L$23),COUNTIF($B$16:B$16,B16)))),COLUMN($A:$J)))),INDEX(Sheet1!$C$1:$L$1,SUMPRODUCT(--(Sheet1!$C$26:$L$26=B16),--(Sheet1!$C$19:$L$19*Sheet1!$C$23:$L$23=(LARGE(IF(Sheet1!$C$26:$L$26=B16,Sheet1!$C$19:$L$19*Sheet1!$C$23:$L$23),COUNTIF($B$16:B$16,B16)))),COLUMN($A:$J))),INDEX(Sheet1!$C$1:$L$1,SUMPRODUCT(--(Sheet1!$C$26:$L$26=B16),--(Sheet1!$C$23:$L$23=(LARGE(IF(Sheet1!$C$26:$L$26=B16,Sheet1!$C$23:$L$23),COUNTIF($B$16:B$16,B16)))),COLUMN($A:$J))))}</td></tr> <tr> <td>C17</td> <td>{=IF(ISERROR(INDEX(Sheet1!$C$1:$L$1,SUMPRODUCT(--(Sheet1!$C$26:$L$26=C16),--(Sheet1!$C$23:$L$23=(LARGE(IF(Sheet1!$C$26:$L$26=C16,Sheet1!$C$23:$L$23),COUNTIF($B$16:C$16,C16)))),COLUMN($A:$J)))),INDEX(Sheet1!$C$1:$L$1,SUMPRODUCT(--(Sheet1!$C$26:$L$26=C16),--(Sheet1!$C$19:$L$19*Sheet1!$C$23:$L$23=(LARGE(IF(Sheet1!$C$26:$L$26=C16,Sheet1!$C$19:$L$19*Sheet1!$C$23:$L$23),COUNTIF($B$16:C$16,C16)))),COLUMN($A:$J))),INDEX(Sheet1!$C$1:$L$1,SUMPRODUCT(--(Sheet1!$C$26:$L$26=C16),--(Sheet1!$C$23:$L$23=(LARGE(IF(Sheet1!$C$26:$L$26=C16,Sheet1!$C$23:$L$23),COUNTIF($B$16:C$16,C16)))),COLUMN($A:$J))))}</td></tr> <tr> <td>D17</td> <td>{=IF(ISERROR(INDEX(Sheet1!$C$1:$L$1,SUMPRODUCT(--(Sheet1!$C$26:$L$26=D16),--(Sheet1!$C$23:$L$23=(LARGE(IF(Sheet1!$C$26:$L$26=D16,Sheet1!$C$23:$L$23),COUNTIF($B$16:D$16,D16)))),COLUMN($A:$J)))),INDEX(Sheet1!$C$1:$L$1,SUMPRODUCT(--(Sheet1!$C$26:$L$26=D16),--(Sheet1!$C$19:$L$19*Sheet1!$C$23:$L$23=(LARGE(IF(Sheet1!$C$26:$L$26=D16,Sheet1!$C$19:$L$19*Sheet1!$C$23:$L$23),COUNTIF($B$16:D$16,D16)))),COLUMN($A:$J))),INDEX(Sheet1!$C$1:$L$1,SUMPRODUCT(--(Sheet1!$C$26:$L$26=D16),--(Sheet1!$C$23:$L$23=(LARGE(IF(Sheet1!$C$26:$L$26=D16,Sheet1!$C$23:$L$23),COUNTIF($B$16:D$16,D16)))),COLUMN($A:$J))))}</td></tr></tbody></table></td></tr></tbody></table>
If any further explanation or clarification is needed, please let me know. I've racked my brain trying to solve the problem since it's not pulling the proper information but nothing I can come up with works. Please help! :confused:


Excel tables to the web >> Excel Jeanie HTML 4
 
Last edited:

Excel Facts

Quick Sum
Select a range of cells. The total appears in bottom right of Excel screen. Right-click total to add Max, Min, Count, Average.
Ok...well...nevermind...

I was just playing around, as I usually do, to continue to try and figure things out, and I added another formula to help take care of another problem, and it somehow solved the Index issue. Thanks for whoever looks / looked at it, though! :-D
 
Upvote 0

Forum statistics

Threads
1,224,583
Messages
6,179,676
Members
452,937
Latest member
Bhg1984

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