Vlook up problem with pivot tables

Joe Martino

New Member
Joined
Aug 31, 2010
Messages
2
I am using excel 2010.

Question:

What Am I doing wrong with my syntax?
Or is the VLOOKUP formula not the one I should be using as it doesn't work with a pivot table?


Background:
I have a multiple tab work book that contain external data sources. Specifically QQube (data warehouse that pulls from Quickbooks)

([@[SalesTxn Shipping Address Postal Code]] is the external data reference.
Distances! is another tab on the workbook that I am trying to pull in a dollar amount.

I am trying to pull the zip code from ([@[SalesTxn Shipping Address Postal Code]]
, then use Vlook up to reference the Distances tab for a travel rate.

I have verified that my table is sorted from smallest to larget in column 1 and my row column selection is column 2 as you can see from my formula.


My formula:

=VLOOKUP([@[SalesTxn Shipping Address Postal Code]],Distances!A24:B924,2)

Answer is #N/A

I have the correct syntax using the formula wizzard. I think it is a problem with the pivot table or calculated fields. I am pushing the edge of my knowledge and need some help on what I am doing wrong.

Any help would be appreciated.

Joe
 

Excel Facts

VLOOKUP to Left?
Use =VLOOKUP(A2,CHOOSE({1,2},$Z$1:$Z$99,$Y$1:$Y$99),2,False) to lookup Y values to left of Z values.
Joe
Are your postal codes formatted as text or numerical? I finally gave up on using vlookup and switched over to index(match()) as it seems to be a bit less particular about your data formats, (or I just got used to doing it the way it wanted.) At any ate that is my experience for what it's worth.

Jake
 
Upvote 0

Forum statistics

Threads
1,217,364
Messages
6,136,117
Members
449,993
Latest member
Sphere2215

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