Resolving Duplicate name is spreadsheet that has index and if statements

FVZBW

New Member
Joined
May 31, 2024
Messages
1
Office Version
  1. 2021
Platform
  1. Windows
Hi All,

can anyone assist, I have been helping out our local archery club with score keeping and have crudely made a simple system, however if there are two people with the same score the system puts the first name twice.

any assitance will be greatly appreciated.

Cell Formulas
RangeFormula
EI20,EN20EI20=EI3
EH22:EH24EH22=LARGE(IF($N$5:$N$120=$EI$3,$DX$5:$DX$120),EG22)
EI22:EI24EI22=INDEX($K$5:$K$120,MATCH(LARGE(IF($N$5:$N$120=$EI$3,$DX$5:$DX$120),$EB22), IF($N$5:$N$120=$EI$3,$DX$5:$DX$120),0))
EM22:EM24EM22=LARGE(IF($N$5:$N$120=$EN$3,$DX$5:$DX$120),EL22)
EN22:EN24EN22=INDEX($K$5:$K$120,MATCH(LARGE(IF($N$5:$N$120=$EN$3,$DX$5:$DX$120),$EB22), IF($N$5:$N$120=$EN$3,$DX$5:$DX$120),0))
EH28:EH30EH28=LARGE(IF($N$122:$N$162=$EI$3,$DX$122:$DX$162),EG28)
EI28:EI30EI28=INDEX($K$122:$K$162,MATCH(LARGE(IF($N$122:$N$162=$EI$3,$DX$122:$DX$162),$EB28), IF($N$122:$N$162=$EI$3,$DX$122:$DX$162),0))
EH31:EH33EH31=LARGE(IF($N$164:$N$214=$EI$3,$DX$164:$DX$214),EG31)
EI31:EI33EI31=INDEX($K$164:$K$214,MATCH(LARGE(IF($N$164:$N$214=$EI$3,$DX$164:$DX$214),$EB31), IF($N$164:$N$214=$EI$3,$DX$164:$DX$214),0))
EH34:EH36EH34=LARGE(IF($N$216:$N$271=$EI$3,$DX$216:$DX$271),EG34)
EI34:EI36EI34=INDEX($K$216:$K$271,MATCH(LARGE(IF($N$216:$N$271=$EI$3,$DX$216:$DX$271),$EB34), IF($N$216:$N$271=$EI$3,$DX$216:$DX$271),0))
EM28:EM30EM28=LARGE(IF($N$122:$N$162=$EN$3,$DX$122:$DX$162),EL28)
EN28:EN30EN28=INDEX($K$122:$K$162,MATCH(LARGE(IF($N$122:$N$162=$EN$3,$DX$122:$DX$162),$EB28), IF($N$122:$N$162=$EN$3,$DX$122:$DX$162),0))
EM31:EM33EM31=LARGE(IF($N$164:$N$214=$EN$3,$DX$164:$DX$214),EL31)
EN31:EN33EN31=INDEX($K$164:$K$214,MATCH(LARGE(IF($N$164:$N$214=$EN$3,$DX$164:$DX$214),$EB31), IF($N$164:$N$214=$EN$3,$DX$164:$DX$214),0))
EM34:EM36EM34=LARGE(IF($N$216:$N$271=$EN$3,$DX$216:$DX$271),EL34)
EN34:EN36EN34=INDEX($K$216:$K$271,MATCH(LARGE(IF($N$216:$N$271=$EN$3,$DX$216:$DX$271),$EB34), IF($N$216:$N$271=$EN$3,$DX$216:$DX$271),0))
Press CTRL+SHIFT+ENTER to enter array formulas.
 

Excel Facts

Enter current date or time
Ctrl+: enters current time. Ctrl+; enters current date. Use Ctrl+: Ctrl+; Enter for current date & time.
The reason for lack of response is likely as you have not shared the full sheet (meaning formulas you use are referring to areas on your worksheet that people on this forum cannot see and therefore understand).

Excel Formula:
=INDEX($K$122:$K$162,MATCH(LARGE(IF($N$122:$N$162=$EI$3,$DX$122:$DX$162),$EB28), IF($N$122:$N$162=$EI$3,$DX$122:$DX$162),0))

When you use Index / Match statements, it always uses the first match that is comes across in a list, so if there are 3 or 4, it uses the first one each time, as you can see. So its doing what it thinks it should.

With more sheet info as to what you are doing, maybe people could propose an alternative solution for you ..

cheers
Rob
 
Upvote 0

Forum statistics

Threads
1,223,164
Messages
6,170,444
Members
452,326
Latest member
johnshaji

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