Seifeddine87
Board Regular
- Joined
- Sep 7, 2015
- Messages
- 128
- Office Version
- 2016
- 2011
- 2010
hi just trying to find a Name based of the score
this is just an example
on my excel sheet its has got much more teams and names so it will take a long time to use IF function
Team 1
Jack, Dave, Mark and Tony
Team 2
Kev, Ste, Mike and Bob
if I want to give 40 to team 1 it should come up Jack name because jack name on the top of the list and his score higher then the score giving
if I want to give 50 to team 2 it should come up Ste name because Kev has got less score then 50 and Ste is the next name up and his score more then 50
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD][/TD]
[TD]A[/TD]
[TD]B[/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]
[TD]M[/TD]
[TD]N[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]Jack[/TD]
[TD]Dave[/TD]
[TD]Mark[/TD]
[TD]Tony[/TD]
[TD]Kev[/TD]
[TD]Ste[/TD]
[TD]Mike[/TD]
[TD]Bob[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]50[/TD]
[TD]80[/TD]
[TD]30[/TD]
[TD]100[/TD]
[TD]40[/TD]
[TD]90[/TD]
[TD]20[/TD]
[TD]70[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]Team1[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]Team 2[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]Jack[/TD]
[TD]Dave[/TD]
[TD]Mark[/TD]
[TD]Tony[/TD]
[TD][/TD]
[TD]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][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]11[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]12[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]13[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]14[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
this is just an example
on my excel sheet its has got much more teams and names so it will take a long time to use IF function
Team 1
Jack, Dave, Mark and Tony
Team 2
Kev, Ste, Mike and Bob
if I want to give 40 to team 1 it should come up Jack name because jack name on the top of the list and his score higher then the score giving
if I want to give 50 to team 2 it should come up Ste name because Kev has got less score then 50 and Ste is the next name up and his score more then 50
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD][/TD]
[TD]A[/TD]
[TD]B[/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]
[TD]M[/TD]
[TD]N[/TD]
[/TR]
[TR]
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