Setting up rank within changing Pivot Table

MyDogJake

New Member
Joined
Feb 22, 2011
Messages
13
I'm trying to rank two columns (never change) but length of columns (rows) will change as I add or remove variables. I am referencing a pivot table.

The layout is always the same.

My ranking example formula for Atlanta is: =IFERROR(RANK($L6,$L$6:$L$84,0),"") ...where 84 is the last row of values...

The formula should skip rows that are the next market, in this case row 85
The new rank should begin on row 86 to XXXX. ... and the process repeats.

Thank you for any help.

PS: I tried to post a picture but nothing worked ... any idea on how to post a snippit of my workbook?

-- removed inline image ---
 

Excel Facts

Shade all formula cells
To shade all formula cells: Home, Find & Select, Formulas to select all formulas. Then apply a light fill color.
If your Pivot Table has subtotals, you could try something like this:

Excel Workbook
ABCDE
1CitySalespersonSum of SalesRank
2AtlantaName 011,6882
3Name 029773
4Name 038804
5Name 042,1321
6Atlanta Total5,677
7BostonName 012,3191
8Name 021,5383
9Name 031,8802
10Boston Total5,737
11ChicagoName 011,2102
12Name 022,4211
13Chicago Total3,631
14Grand Total15,045
Sheet1
Excel 2007
#VALUE!
Entered with Ctrl+Shift+Enter. If entered correctly, Excel will surround with curly braces {}. Note: Do not try and enter these manually yourself


You might need to modify this if your PT layout is different (IE subtotals at Top).

PS: I tried to post a picture but nothing worked ... any idea on how to post a snippit of my workbook?

See the FAQs for instruction on how to download MrExcel's HTML Maker.
 
Upvote 0
This looks fantastic! ..way above my formula skills :eeek:

The only difference between my layout and the one you created for example, is that I have two separate columns; one for 52wks and the other for 24wks. Contained within each column is $ sales. Each row represent items.
Each section is a market.
A_B___C______D__________E__________F
52wk/24wk ______________52wk_______24wk
_____Atlanta Census Trade
1 1------------ Item 1---------52000----------26150
2 3-------------Item 2---------48000----------23500
3 2-------------Item 3---------43500----------24500
_____Total Atlanta

Next market =Boston ... it might have 50 items, followed by Cincinatti with only 28 etc... by choosing the filter I could have many markets or as few as one.


Thank you so much for your help.

Go Ducks!!
Mike (from Portland!)
 
Upvote 0
Hi Mike,

Here's how that would look for 2 columns of rankings to the left of the PivotTable.

Excel Workbook
ABCDEF
1Values
252 wk24 wkCityItemsSum of 52 wkSum of 24 wk
311AtlantaItem 152,00026,150
423Item 248,00023,500
532Item 343,50024,500
6Atlanta Total143,50074,150
732BostonItem 124,00038,000
821Item 2135,00063,000
913Item 3157,0004,000
10Boston Total316,000105,000
11Grand Total459,500179,150
Sheet2
Excel 2007
#VALUE!
Entered with Ctrl+Shift+Enter. If entered correctly, Excel will surround with curly braces {}. Note: Do not try and enter these manually yourself


Go Ducks!!
Mike (from Portland!)

Thanks. You're the first to mention my UO Duck's Avatar!
:beerchug:
 
Upvote 0

Forum statistics

Threads
1,224,586
Messages
6,179,729
Members
452,939
Latest member
WCrawford

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