LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5,441
Default Is there any way of combining vlookup with getpivotdata?

Sarah,

Simply insert a copy of the pivot table and hide details to get to the table that you
want.....That's the beauty of Pivot tables.


Or

Use the =GETPIVOTDATA() function, and change the appropriate parameter to a cell reference.
For example:

=GETPIVOTDATA("Value",Sheet2!$A$3,"Client Ref","ABC","Client Name","Client
ABC","Class","A","Product","Home")

would become

=GETPIVOTDATA("Value",Sheet2!$A$3,"Client Ref",A2,"Client Name",B2,"Class","A","Product","Home")

where column A will have the client ref values, and column B will have the Client name.

HTH,
Bernie
MS Excel MVP


"Sarah (OGI)" wrote in message
...
Is there any way of combining a vlookup with the getpivotdata function?

I have two worksheets. The first contains a pivot table. The data looks
similar to example below:

A B C D E
1 Client Ref Client Name Class Product Total
2 ABC Company ABC A Home 1
3 Travel 2
4 A TOTAL 3
5 ABC TOTAL 3
6 XYZ Company XYZ A Home 10
7 A TOTAL 10
8 B Car 20
9 B TOTAL 20
10 XYZ TOTAL 30

In the second worksheet, I want to show an overview of the details, so
listed in column A, I have a list of each of the client references (those
shown in column A of pivot table). I want to vlookup against each of these
client references listed in worksheet 2, picking out the value corresponding
to "A Total" on worksheet 1.

So for client ref ABC listed on worksheet 2, I want to show a value of "3"
for "A Total". For client ref XYZ, I want to show "10" as "A Total" and "20"
as "B Total".

Any ideas?



 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
VLOOKUP & Combining Worksheets - Please HELP ksverdlina Excel Worksheet Functions 0 March 13th 07 08:30 PM
Vlookup within GetPivotData formula Spidey Excel Worksheet Functions 2 November 29th 06 04:33 AM
Combining VLOOKUP functions Jay Excel Worksheet Functions 16 August 31st 06 06:52 PM
combining a Vlookup and Mid formula [email protected] Excel Worksheet Functions 1 November 13th 05 05:29 AM
combining VLOOKUP and IF z.entropic Excel Worksheet Functions 4 January 24th 05 12:05 AM


All times are GMT +1. The time now is 05:50 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"