Vlookup on External Data query

clipper

New Member
Joined
Feb 17, 2004
Messages
4
I am trying to do a vlookup on another sheet which contains an external data query. The result of the lookup is #N/A eventhough I know that there is a valid match there.

For the moment I am working around this by copy the lookup reference from the external query to the destination sheet, which allows for the lookup to work. This however is too much maintenance work when new data is required to be looked up on.

I have seen on the microsoft website that there is an article (315961) which provides a couple of solutions such as trunc within the vlookup. I have tried these and they still don't work. The only solution that works is hard coding the value into the vlookup statement

Can anybody help me?
 

Excel Facts

How to show all formulas in Excel?
Press Ctrl+` to show all formulas. Press it again to toggle back to numbers. The grave accent is often under the tilde on US keyboards.

SydneyGeek

MrExcel MVP
Joined
Aug 5, 2003
Messages
12,251
Not sure if it would work, but have you tried making the external data (in Book2) into a named range in Book1? Yoiu can then use the defined name in your VLOOKUP.
You'll need to use Insert | Name | Define and enter the range definition there.
Something like: ='[Book2]Sheet1'!$A$2:$J$250, assuming you are in the same folder.

Regards
Denis
 

Aladin Akyurek

MrExcel MVP
Joined
Feb 14, 2002
Messages
85,210
Are the lookup values supposed to be numbers? If so, care to post the lookup formula that you're using?
 

clipper

New Member
Joined
Feb 17, 2004
Messages
4
I have played around with the formating of the cells (to text) where the lookup reference resides and now I seem to have a compromise. By copy and poasting another working cell then replacing the value with the new item.

I'll see how that goes, just have to wait for data to be available for the new item.
 

Aladin Akyurek

MrExcel MVP
Joined
Feb 14, 2002
Messages
85,210
clipper said:
I have played around with the formating of the cells (to text) where the lookup reference resides and now I seem to have a compromise. By copy and poasting another working cell then replacing the value with the new item.

I'll see how that goes, just have to wait for data to be available for the new item.

Is the formula that you use a secret?
 
Master Excel Bundle

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

Forum statistics

Threads
1,168,024
Messages
5,856,875
Members
431,837
Latest member
megantang

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