Modified Vlookup?

MarkAndrews

Well-known Member
Joined
May 2, 2006
Messages
1,970
Office Version
  1. 2010
Platform
  1. Windows
Morning

I have this table present in a workbook
Generic Exchanges.xls
ABCDEFGHIJK
4Fee-EarnerLevelStartCaseloadTargetTotalExc%AchievedAgainstTargetFinishingCaseloadTotalComp
5JohuraHannon1115251768% 11119
Marlice Figures


What i would like to do is have the Vlookups in column K read the first name in column A

Sample of the Vlookup

=VLOOKUP("Johura*",'Completion Results'!$E:$F,2,FALSE)

Johura appears in A5, can i incorporate left - The first names are all different lengths & seperaed from their surname by a space

Hope you can help

TIA

Mark
 

Excel Facts

Square and cube roots
The =SQRT(25) is a square root. For a cube root, use =125^(1/3). For a fourth root, use =625^(1/4).
Hi Mark,

either amend Fairwinds suggestion so that a blank (or some other text) is returned instead of #N/A. Then your SUM in K28 will work, i.e. use

=IF(COUNTIF('completion results'!$E:$E,LEFT(A5,FIND(" ",A5))&"*"),VLOOKUP(LEFT(A5,FIND(" ",A5))&"*",'completion results'!$E:$F,2,0),"")

or use this formula in K28 which will ignore #N/A errors

=SUMIF(K5:K27,"<>#N/A")
 
Upvote 0
Hi Mark,

either amend Fairwinds suggestion so that a blank (or some other text) is returned instead of #N/A. Then your SUM in K28 will work, i.e. use

=IF(COUNTIF('completion results'!$E:$E,LEFT(A5,FIND(" ",A5))&"*"),VLOOKUP(LEFT(A5,FIND(" ",A5))&"*",'completion results'!$E:$F,2,0),"")

or use this formula in K28 which will ignore #N/A errors

=SUMIF(K5:K27,"<>#N/A")

Excellent, thanks Barry i used

=IF(COUNTIF('completion results'!$E:$E,LEFT(A5,FIND(" ",A5))&"*"),VLOOKUP(LEFT(A5,FIND(" ",A5))&"*",'completion results'!$E:$F,2,0),"")

:) :) :) :)
 
Upvote 0

Forum statistics

Threads
1,214,598
Messages
6,120,441
Members
448,966
Latest member
DannyC96

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