Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default Max value in Pivot Table

Hi all,

I'm trying to find the maximum value of a column in a pivot table so
that each time the user pivots on a field, it will recalculate the max
value for one of the columns that I can then use in other calculated
fields. Since I'll also be pulling down other fields into the pivot
table, I can't use the MAX function for a specified column letter. Is
this even possible to do? Thanks in advance to any and all replies.

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,886
Default Max value in Pivot Table

Hi Mark

Not necessarily the best way, but what I have done is use a formula like
=IF(AND(LEFT(B4)<"G",B4<""),MAX(B5:B150),"")
copied across row 2 of my worksheet to show the maximum for EACH column
in the PT, allowing for it to grow and shrink.
The "G" is just testing that it is not the Grand Total column, the rest
to make sure the column has some data.

In your case, substitute the Field name you are looking for, which will
only return a value in row 2 for the relevant column
To find the value for use in another formula, with an unknown column
where it will appear, then
=INDEX(2:2,MATCH(99999999,2:2))
Substitute for the 9's any number large enough to be beyond the range
you expect.

--
Regards

Roger Govier


"lear" wrote in message
oups.com...
Hi all,

I'm trying to find the maximum value of a column in a pivot table so
that each time the user pivots on a field, it will recalculate the max
value for one of the columns that I can then use in other calculated
fields. Since I'll also be pulling down other fields into the pivot
table, I can't use the MAX function for a specified column letter. Is
this even possible to do? Thanks in advance to any and all replies.



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 to create pivot table from existing pivot table in excel 2007 Udayraj Dhulekar Excel Discussion (Misc queries) 2 July 8th 13 08:22 PM
Filter lines with Pivot table and non Pivot table columns Grover Excel Discussion (Misc queries) 1 September 26th 07 12:48 AM
Filter lines containing pivot table and non pivot table data Grover Excel Worksheet Functions 0 September 24th 07 07:20 PM
How do I create a pivot table if the pivot table icon or menu ite. Lynn@WS Charts and Charting in Excel 1 December 16th 04 02:36 AM
Help required with setting up a pivot table with the source on sheet1 to have the pivot table created on sheet called "report" Diana[_5_] Excel Programming 0 August 21st 03 10:19 PM


All times are GMT +1. The time now is 10:26 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"