Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 349
Default Excel 2007: Pivottable and Rank

Is there a way to include a ranking within a Pivottable in Excel 2007?

I have used =RANK(H6,H$6:H$77) used this outside of the table for now, so I
do get the correct number, but if I collapse the table, of course I get #N/A.
If the data is updated and I have more rows, then I will need to update the
formula.

I can at least sort them to see which was the best and which was the worst,
but not able to see (without manually coutning) which is #10, #15, etc.

Any help would be greatly appreciated and I will use RANK forumal in the
meantime.
--
Peter
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,180
Default Excel 2007: Pivottable and Rank

I assume you have a column of numbers, named MyData,
that you want to put into the ROW of a Pivot Table and
you want the DATA to show the original RANK of MyData
inside the Pivot Table.
In that case, add a column to MyData,
named MyOrder with this array formula
=RANK(MyData,MyData)/COUNTIF(MyData,MyData)
In DATA, show Sum of MyOrder.

In Automatic, PV sorts the ROW.
The RANK of sorted, unique MyData is simply {1;2;3;....}


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 349
Default Excel 2007: Pivottable and Rank

I very rarely name the data I use as I have never seen a benefit for the use
of it and problem not using it, but maybe I need it here. I have 7 columns
and 44,410 rows of data. Columns 3 & 4 are the only two with data, the rest
are just breakdowns on type or area. When I pivot the data, it narrows down
to about 70 rows as many of it has summed up. This is where I then want to
add the rank.

I did name the data MyData (highlighted it and typed it in the name box) and
then tried to add the array formula and maybe because so many rows, it seemed
to lock up and never completed. I cancelled it.

I will try again, but also wanted to check. If I do set this up in the data
and then sum everything up in Pivottable, will the rank reflect 1 - 70 (or
so) that end up in the table or a sum of their rank within the 40,000+ rows
of data?


--
Peter


"Herbert Seidenberg" wrote:

I assume you have a column of numbers, named MyData,
that you want to put into the ROW of a Pivot Table and
you want the DATA to show the original RANK of MyData
inside the Pivot Table.
In that case, add a column to MyData,
named MyOrder with this array formula
=RANK(MyData,MyData)/COUNTIF(MyData,MyData)
In DATA, show Sum of MyOrder.

In Automatic, PV sorts the ROW.
The RANK of sorted, unique MyData is simply {1;2;3;....}



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,180
Default Excel 2007: Pivottable and Rank

If you want the rank within the filtered data (70 or so)
use this formula in MyOrder:
=(SUMPRODUCT((MyDataMyData 2:2)*
(1/COUNTIF(MyData,MyData)))+1)/COUNTIF(MyData,MyData 2:2)
This assumes MyData is a single column, starting at row 2.
Copy the formula down as far as needed. This is not an array formula.
I suggest you troubleshoot the problem/procedure with a very short
and simplified list that fits on one page.
When you name a range, verify it by clicking on the appropriate
name in the name box or go to
Insert Name Define
You don't have to use names, it just makes the formula
more readable and it's appearance location independent.
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
Excel 2007 - Pivottable formula with COUNT peter Excel Worksheet Functions 2 October 19th 07 10:00 PM
Excel 2007 PivotTable Question Dale Howard [MVP] Excel Worksheet Functions 3 August 28th 07 12:48 PM
Pivottable columns multiply in excel 2007 Haffi Excel Worksheet Functions 1 August 21st 07 04:32 AM
Excel 2007 PivotTable and Chart Michael Excel Discussion (Misc queries) 0 June 27th 06 09:31 PM
Excel 2007 - The connection for this PivotTable has been deleted Michael Excel Discussion (Misc queries) 1 June 22nd 06 08:54 PM


All times are GMT +1. The time now is 10:50 AM.

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"