Weird issue with vlookup

spanspace

Board Regular
Joined
Jan 3, 2007
Messages
159
Ok so when I point the vlookup in F9 to B9 I get a big fat #n/a. If the information in b9 was just the number and the the left formula it would work. I need help resolving this. I am sure its something easy..but my mind is moosh already from other projects.
Excel Workbook
ABCDEFG
8UNIQUE IDIDAgent NameRoleSite IBADESiteAgent ID
98886Add Agent to Master#N/A#N/A#N/A8886
WTD Conversion
Excel 2007
Cell Formulas
RangeFormula
A9=IF(C9="Add Agent to Master","",CONCATENATE(B9," ",C9))
B9=LEFT(G9,4)
C9=IF(ISBLANK(G9),"",IF(ISNA(VLOOKUP(E9,Agents!$I$2:$L$600,4,FALSE)),"Add Agent to Master",VLOOKUP(E9,Agents!$I$2:$L$600,4,FALSE)))
D9=IF(A9=" ","",IF(ISBLANK(A9),"",VLOOKUP(A9,Agents!$C$2:$DE$640,MATCH("Role",Agents!$C$2:$DE$2,0),FALSE)))
E9=IF(ISBLANK(G9),"",CONCATENATE(F9," ",LEFT(G9,4)))
F9=VLOOKUP(B9,Agents!$A$7:$F$640,MATCH("Site",Agents!$A$7:$F$7,0),FALSE)
 

Some videos you may like

Excel Facts

Last used cell?
Press Ctrl+End to move to what Excel thinks is the last used cell.

Jonmo1

MrExcel MVP
Joined
Oct 12, 2006
Messages
44,061
Change the formula in B9 from

=LEFT(G9,4)
to
=LEFT(G9,4)+0
 

nigelk

Well-known Member
Joined
Aug 30, 2008
Messages
535

ADVERTISEMENT

=VALUE(LEFT(G9,4))

Might do the trick.
 

spanspace

Board Regular
Joined
Jan 3, 2007
Messages
159

ADVERTISEMENT

I figured it out. Unfortunately the idea wontwork out for me in the long run. I have a similiar issues I am going to post as seperate thread.
 

Gerald Higgins

Well-known Member
Joined
Mar 26, 2007
Messages
9,115
Can we be absolutely clear please ?
What exactly is in G9 ?
Is it just the number 8886, or are there any other characters, including spaces, either before or after the number ?
And which cell(s) currently contain(s) the #N/A ?

I've tried replicating this and it works for me with the solution posted by jonmo1 in his first post, but I may be missing something.
 

Watch MrExcel Video

Forum statistics

Threads
1,122,669
Messages
5,597,474
Members
414,145
Latest member
lonnie451

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