VLOOKUP formula only partly working

Steviefiege

Board Regular
Joined
Aug 29, 2018
Messages
66
Hi,

This is my vlookup formula: =IF(M5="","",(IF(VLOOKUP(M5,$I$5:$K$39,3,FALSE)="YES","Taken",""))) but its only partly working. Below is my table:

Alex KiwomyaINJ
Alfie Beestin CM46.67 Carrilero45.50Taken
Alfie May CF51.67Yes
Ali Suljic WB (Right)41.50 BPD40.29Taken
Andrew WilliamsINJ
Andy Boyle BPD64.71Yes
Andy Butler BPD62.06Yes
Ben Whiteman Carrilero57.50Yes
Branden Horton BPD30.00
Cameron Barnett CF33.81
Carlton Cole CF57.14Yes
Cedric EvinaLOANED OUT
Craig Alcock WB (Right)58.00 BPD56.47Taken
Danny Amos WB (Left)43.50
Danny AndrewINJ
Issam Ben Khemis Carrilero50.50 CM42.92 NOT WORKING
James Coppinger CM57.92Yes
Joe Wright BPD53.24 WB (Right)49.50 NOT WORKING
John Marquis CF57.38Yes
Jordan HoughtonINJ
Liam MandevilleLOANED OUT
Luke McCulloughINJ
Mathieu BaudryINJ
Matty Blair WB (Right)58.50Yes
Mitchell LundLOANED OUT
Myron Gibbons CF35.24
Niall Mason WB (Right)56.50 WB (Right)56.50 NOT WORKING
Reece Fielding BPD48.82
Rieves Boocock CF34.29
Rodney KongoloINJ
Shane Blaney WB (Right)48.00 BPD47.35Taken
Tom Anderson BPD50.88
Tommy Rowe WB (Left)59.50Yes
Tyler Walker WB (Right)38.00
Will Longbottom CF46.67

<colgroup><col style="mso-width-source:userset;mso-width-alt:7314;width:150pt" width="200"> <col style="mso-width-source:userset;mso-width-alt:3291;width:68pt" width="90"> <col style="mso-width-source:userset;mso-width-alt:365;width:8pt" width="10"> <col style="mso-width-source:userset;mso-width-alt:3803;width:78pt" width="104"> <col style="mso-width-source:userset;mso-width-alt:2157; width:44pt" width="59" span="2"> <col style="mso-width-source:userset;mso-width-alt:365;width:8pt" width="10"> <col style="mso-width-source:userset;mso-width-alt:2669;width:55pt" width="73"> <col style="mso-width-source:userset;mso-width-alt:2194;width:45pt" width="60"> <col style="mso-width-source:userset;mso-width-alt:2157;width:44pt" width="59"> </colgroup><tbody>
</tbody>

The ones i've put in bold down the side are the ones that arent working. Its baffling me why. They should say "Taken" but there just blank. Can anyone help please?

Rgs
Steve
 
Actually Scott, that formula did & didnt work. It said taken which i wanted it to say, but i also want it to say "yes" if on the first column no one is in that position
Small sample data and expected results to demonstrate that situation?

Is it this?

=IF(M5="","",(IF(COUNTIFS(I$5:I$39,M5,K$5:K$39,"Yes"),"Taken","Yes")))
 
Last edited:
Upvote 0

Excel Facts

Pivot Table Drill Down
Double-click any number in a pivot table to create a new report showing all detail rows that make up that number
I've tweaked it a little bit now, in my formula: =IF(M5="","",(IF(VLOOKUP(M5,$I$5:$K$39,3,FALSE)="YES","Taken","")))
Where i've made it bold, instead of it saying yes, how do i make it so its any word? What do i put in instead of yes
 
Upvote 0
Thats its Peter, thats worked a treat, thank you.
You're welcome.

I've tweaked it a little bit now, in my formula: =IF(M5="","",(IF(VLOOKUP(M5,$I$5:$K$39,3,FALSE)="YES","Taken","")))
Where i've made it bold, instead of it saying yes, how do i make it so its any word? What do i put in instead of yes
If you are still looking for a way to count anything in place of the bold YES, try

=IF(M5="","",(IF(COUNTIFS(I$5:I$39,M5,K$5:K$39,"<>"),"Taken","Yes")))
 
Last edited:
Upvote 0
Got another question Peter,

In my table below:
In the last column where it says POS TAKEN in bold, how do i put 2 VLOOKUP formula's in? Similar to the last one you did, but instead of just checking the first POS TAKEN like you just did, it needs to check the 2nd one as well.

PLAYERSQUAD INFO BEST POSITIONRATING POS
TAKEN
2ND BEST POSITIONRATINGPOS TAKEN 3RD BEST POSITIONRATINGPOS TAKEN
Alex KiwomyaINJ
Alfie BeestinINJ BWM45.00
Alfie May CF51.67Yes
Ali Suljic WB (Right)41.50 BPD40.29Taken
Andrew WilliamsINJ
Andy Boyle BPD64.71Yes
Andy Butler BPD62.06Yes
Ben Whiteman Carrilero57.50Yes BWM54.09
Branden Horton BPD30.00
Cameron Barnett CF33.81
Carlton Cole CF57.14Yes
Cedric EvinaLOANED OUT
Craig Alcock WB (Right)58.00 BPD56.47Taken
Danny Amos WB (Left)43.50
Danny AndrewINJ
Issam Ben Khemis Carrilero50.50 CM42.92YesBWM40.45
James CoppingerINJ BWM53.64
Joe Wright BPD53.24 WB (Right)49.50Taken
John Marquis CF57.38Yes
Jordan HoughtonINJ CM54.17
Liam MandevilleLOANED OUT
Luke McCulloughINJ WB (Right)56.00
Mathieu BaudryINJ
Matty Blair WB (Right)58.50Yes
Mitchell LundLOANED OUT
Myron Gibbons CF35.24
Niall Mason WB (Right)56.50 WB (Right)56.50TakenBWM54.09
Reece Fielding BPD48.82
Rieves Boocock CF34.29
Rodney KongoloINJ CM54.17
Shane Blaney WB (Right)48.00 BPD47.35Taken
Tom Anderson BPD50.88
Tommy Rowe WB (Left)59.50Yes CM56.67
Tyler Walker WB (Right)38.00
Will Longbottom CF46.67

<colgroup><col><col><col><col><col span="2"><col><col><col><col><col><col><col span="2"></colgroup><tbody>
</tbody>
 
Upvote 0
What are the expected results and why?
Remember that I am not familiar with what your data is about and just what you are trying to do.
 
Upvote 0
For example: Under BEST POSITION, there is no one playing BWM, under 2ND BEST POSITION there is no one playing BWM, under 3RD BEST POSITION there is one player who so far hasn't got a yes next to his name at all, NIALL MASON, in POS TAKEN at the end i want it to say "yes" in there & then in all the other ones to say "taken"
 
Upvote 0
The lookups appear to have grown from 1 to 2 to now 3. Is that all there will be?

In any case, I still don't fully understand and I have no idea what row you are talking about in post 17, so why not show all the expected results for all the rows and provide any further clarification you can.
It would also be helpful to know what columns and what rows we are looking at (like you can see in post 5). My signature block below has some help about that.
 
Upvote 0

Forum statistics

Threads
1,214,943
Messages
6,122,370
Members
449,080
Latest member
Armadillos

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