ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Select player from list and get his position in next column (https://www.excelbanter.com/excel-discussion-misc-queries/44753-select-player-list-get-his-position-next-column.html)

Massivemike

Select player from list and get his position in next column
 
Hi
I am trying to make excell put a player position next to his name when i
select him from a drop down list, I have 30 players and 4 positions, i can
do it with the "IF" but it only lets me do one player. Please Help

Debra Dalgleish

You can use a VLookup formula to return the player position from a list
of players and their positions. There's information on VLookup in
Excel's Help, and he

http://www.contextures.com/xlFunctions02.html

Massivemike wrote:
Hi
I am trying to make excell put a player position next to his name when i
select him from a drop down list, I have 30 players and 4 positions, i can
do it with the "IF" but it only lets me do one player. Please Help



--
Debra Dalgleish
Excel FAQ, Tips & Book List
http://www.contextures.com/tiptech.html


Dave Peterson

It sounds like you could build a table on a different worksheet with those 30
player names in column A and each associated position in column B.

Then you could use a =vlookup() formula to return the position.

Say your name goes in A1, then you could use this in B1:
=if(a1="","",vlookup(a1,sheet2!a:b,2,false))

If you want to read more about =vlookup(), visit Debra Dalgleish's site:
http://www.contextures.com/xlFunctions02.html

You may even want to use data|validation to show the names:
http://www.contextures.com/xlDataVal01.html
(also from Debra's site)

Massivemike wrote:

Hi
I am trying to make excell put a player position next to his name when i
select him from a drop down list, I have 30 players and 4 positions, i can
do it with the "IF" but it only lets me do one player. Please Help


--

Dave Peterson


All times are GMT +1. The time now is 09:05 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com