Getting a VLOOKUP to say a line of text

Steviefiege

Board Regular
Joined
Aug 29, 2018
Messages
66
Hi,

I've got a list of players but i'll just narrow it down to 1 for the reason. At the side of 62.06 i want it to say "Taken" as there is already a player in that position, i just cant figure out the formula. I think it's a VLOOKUP but that just returns the players name & i dont want that. Any help would be really greatful.

Steve

Butler, AndyCentral Defender62.06

<colgroup><col width="124"><col width="157"><col width="64" span="2"></colgroup><tbody>
</tbody>

Goalkeeper
Full Back (Right)
Central DefenderBoyle, Andy
Defensive Centre Back
Full Back (Left)
Advanced Playmaker
Advanced Playmaker
Inside Forward (Right)
Attacking Midfielder
Inside Forward (Left)Rowe, Tommy
Advanced ForwardMarquis, John

<colgroup><col style="mso-width-source:userset;mso-width-alt:5412;width:111pt" width="148"> <col style="mso-width-source:userset;mso-width-alt:3364;width:69pt" width="92"> </colgroup><tbody>
</tbody>
 

Excel Facts

Select all contiguous cells
Pressing Ctrl+* (asterisk) will select the "current region" - all contiguous cells in all directions.
try this out

assuming B2 is where you have the word "Central Defender" next to the 62.06

and also assuming your table is from A3 to B30

=IF(NOT(ISBLANK(VLOOKUP(B2,A3:B20,2,0))),"Taken","Available")
 
Upvote 0
Can you help me with the next part please too. Adding to that formula you gave me, i need it so as well as the position to say "Taken" for the player to say "Taken" too as i have some players who play in more than one position but if there already in the team i dont want it putting them in another position too.
 
Upvote 0
It's ok, i've managed to sort that one, that was just a VLOOKUP i needed. Do need help on this one though...

Below are all my players, positions & ratings. At the side of the rating there are another 2 columns with formula's in. The next to the rating is the one you kindly did which says taken once the position is filled on the teamsheet, the one next to that says PKD to say the player is on the teamsheet

Butler, AndyCentral Defender
62.06
Butler, AndyDefensive Centre Back61.20
Andrew, DannyCentral Defender61.00
Lawlor, IanGoalkeeper60.00
Rowe, TommyFull Back (Left)59.50
Coppinger, JamesAttacking Midfielder59.00
Blair, MattyFull Back (Right)58.50
Rowe, TommyInside Forward (Left)58.10
Alcock, CraigFull Back (Right)58.00
Marquis, JohnAdvanced Forward57.38
Coppinger, JamesAdvanced Playmaker57.00
Coppinger, JamesAdvanced Playmaker57.00
Rowe, TommyAdvanced Playmaker56.67
Mason, NiallFull Back (Right)56.50
Mason, NiallFull Back (Right)56.50
Mason, NiallFull Back (Right)56.50
Alcock, CraigCentral Defender56.47
Alcock, CraigCentral Defender56.47
Alcock, CraigDefensive Centre Back55.00
Alcock, CraigDefensive Centre Back55.00
Kongolo, RodneyAdvanced Playmaker54.17
Whiteman, BenAdvanced Playmaker54.09
Williams, AndrewAdvanced Forward53.33
Wright, JoeCentral Defender53.24
May, AlfieInside Forward (Left)53.00
May, AlfieInside Forward (Left)53.00
Kongolo, RodneyCentral Defender52.94
Whiteman, BenCentral Defender52.06
Wright, JoeDefensive Centre Back52.00
May, AlfieAdvanced Forward51.67
Coppinger, JamesInside Forward (Right)51.00
Coppinger, JamesInside Forward (Right)51.00
Coppinger, JamesInside Forward (Right)51.00
Coppinger, JamesInside Forward (Right)51.00
Coppinger, JamesInside Forward (Right)51.00
Anderson, TomCentral Defender50.88
Wright, JoeFull Back (Right)49.50
Anderson, TomDefensive Centre Back49.00
Mason, NiallCentral Defender48.24
Beestin, AlfieAttacking Midfielder48.00
Beestin, AlfieInside Forward (Left)47.00
Beestin, AlfieInside Forward (Left)47.00
Beestin, AlfieInside Forward (Left)47.00
Beestin, AlfieAdvanced Playmaker45.50
Garrett, Tyler
Full Back (Left)45.00
Ben Khemis, Issam
Advanced Playmaker41.00

<colgroup><col><col><col span="3"></colgroup><tbody>
</tbody>

What i would like now is for the positions to be filled in below in my teamsheet without having to put them in manually. For example Butler, Andy will go in the Central Defender slot, then, in the above table, all players in that position will be "Taken" & Butler, Andy will say "PKD"

Example 2 would be, the next available player which is Lawlor, Ian, because the one above him, the position is taken & the one above that the player is taken

Goalkeeper

Full Back (Right)
Central Defender
Defensive Centre Back
Full Back (Left)

Advanced Playmaker
Advanced Playmaker
Inside Forward (Right)
Attacking Midfielder
Inside Forward (Left)

Advanced Forward

<colgroup><col><col></colgroup><tbody>
</tbody>

Hope you manage to find a way.

Steve
 
Upvote 0

Forum statistics

Threads
1,214,926
Messages
6,122,306
Members
449,079
Latest member
juggernaut24

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