#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8
Default Pivot Table

I have a Pivot Table below where column 1 has the value 'a' for my 3 rows of
data. How can I do a vlookup on column 1 with the value 'a' and column 2
with the value 'e' and return my total of 3?

Count of 3
1 2 Total
a d 2
e 3
n 1
a Total 6
Grand Total 6
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 340
Default Pivot Table

If you type an "=" and click the cell in the table you should get a
dynamic formula:

=GETPIVOTDATA("3",$A$1,"1","a","2","e")

Then you could replace "a" and "e" by cell references

Alternatively, if you want to use lookup functions try:

=LOOKUP(2,1/(LOOKUP(ROW(A2:A5),ROW(A2:A5)/(A2:A5<""),A2:A5)="a")
/(B2:B5="e"),C2:C5)

The key to the formula is:
LOOKUP(ROW(A2:A5),ROW(A2:A5)/(A2:A5<""),A2:A5) which fills in blanks
in the first column.

Terence wrote:

I have a Pivot Table below where column 1 has the value 'a' for my 3 rows of
data. How can I do a vlookup on column 1 with the value 'a' and column 2
with the value 'e' and return my total of 3?

Count of 3
1 2 Total
a d 2
e 3
n 1
a Total 6
Grand Total 6


Reply
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
How do I sort pivot table data outside a pivot table Michael Excel Worksheet Functions 1 January 4th 07 02:45 PM
Display the source for a pivot table page field Gary Brown Excel Worksheet Functions 4 November 8th 06 03:02 PM
Top 5 plus Other in Pivot table almpk Excel Worksheet Functions 1 July 19th 06 10:29 PM
Derived Columns in Pivot Table sa02000 Excel Discussion (Misc queries) 1 February 8th 06 07:18 PM
Pivot -- want to use Max and Sum in same table Dave Excel Worksheet Functions 1 July 13th 05 04:37 AM


All times are GMT +1. The time now is 08:00 AM.

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

About Us

"It's about Microsoft Excel"