Find first instance of value in a range.

ECB

Board Regular
Joined
Mar 3, 2009
Messages
63
Office Version
  1. 365
Platform
  1. MacOS
  2. Mobile
Hello all,

I hope you are well. It's been a while since I was here, and Google has been my friend but I'm really struggling with this one. I clearly can't see the wood for the trees because this seems so simple.

I have a spreadsheet. In Column A I have my marker column 1 to 5000. In columns B to L, I have the names of the players in a football team. So I have 5000 rows of football players in a team, and 12 columns - essentially the columns are the positions of each player - not that relevant to the problem.

What I want to do is put a players name in one cell, and find the first instance of his name in the range, ie, if his name appears firstly in row 5 return the number 5. If it appears in row 4001, then return 4001.

I think index match is the key, but I'm struggling to make it look like anything that might resemble it working.

Any help gratefully received.
 

Excel Facts

Why does 9 mean SUM in SUBTOTAL?
It is because Sum is the 9th alphabetically in Average, Count, CountA, Max, Min, Product, StDev.S, StDev.P, Sum, VAR.S, VAR.P.
Hi,

Thanks for the reply. I'm struggling to get this to work, I probably just need to spend a bit more time to understand it better.

In the meantime, I've done a dirty fix by running a match on each individual column and then working out the minimum value then running a vlookup based on the minimum value. It does the job but ill work out how to do it properly one day :rofl:
 
Upvote 0

Forum statistics

Threads
1,223,896
Messages
6,175,264
Members
452,627
Latest member
KitkatToby

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