Modified Vlookup?

MarkAndrews

Well-known Member
Joined
May 2, 2006
Messages
1,963
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

Repeat Last Command
Pressing F4 adds dollar signs when editing a formula. When not editing, F4 repeats last command.

fairwinds

MrExcel MVP
Joined
May 15, 2003
Messages
8,638
hi,

Try:

=VLOOKUP(LEFT(A5,FIND(" ",A5))&"*",'Completion Results'!$E:$F,2,FALSE)
 

barry houdini

MrExcel MVP
Joined
Mar 23, 2005
Messages
20,825

ADVERTISEMENT

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")
 

MarkAndrews

Well-known Member
Joined
May 2, 2006
Messages
1,963
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),"")

:) :) :) :)
 

Forum statistics

Threads
1,141,217
Messages
5,705,071
Members
421,377
Latest member
FerdiFuchs

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
Top