Pivot to show top 5, However.....

nparsons75

Well-known Member
Joined
Sep 23, 2013
Messages
1,254
Office Version
  1. 2016
I have a normal table of data, in most cases the data is vertical, however, within the table is some data that is horizontal, by this I mean running along the columns as opposed to in rows. I have managed to create a pivot table by adding calculated fields of the same data in the columns.

Although I have managed this I cannot sort the data A-Z.

I need to find the top 5 items from the data.

Is this possible at all?

Thanks in advance....
 

Excel Facts

Is there a shortcut key for strikethrough?
Ctrl+S is used for Save. Ctrl+5 is used for Strikethrough. Why Ctrl+5? When you use hashmarks to count |||| is 4, strike through to mean 5.
You should be able to filter a row field by the Top 5 of a given value field.
 
Upvote 0
Hi, It wont let me. I have a pivot table built from calculated fields, however it will not let me filter as it will with a normal pivot table?
 
Upvote 0
What exactly do you mean by "won't let me"? Even a Mac can do that. ;)
 
Upvote 0
its very hard to explain...

My data in the main table is mixed, some data is vertical, some horizontal. I need to pivot the horizontal data which is not always possible, pivot data should be vertical i believe as a pivot table assumes the first row as the header. Along each row are headers. The data i need, for example, is like this...


ID 1ID 2ID 3ID 4ID 5
551503012122

<tbody>
</tbody>


From this, I need to understand the top 3 items and list them. For example,

ID2 150
ID5 122
ID1 55


As i filter the data table this will change...

The only way i can think is using the pivot, however, I cannot transpose the data vertically as its part of a bigger table...
 
Upvote 0
That really doesn't sound suitable for a pivot table unless you can clean up the data first. Formulas would probably be a better bet, though if you have Power Query/Get and Transform, you should be able to clean it up pretty easily.
 
Upvote 0
Hi Rory, thanks for the help, however, I havent got power query or even know what it is...:LOL:
 
Upvote 0
Do you not have a Get And Transform section on the Data tab?
 
Upvote 0

Forum statistics

Threads
1,214,793
Messages
6,121,619
Members
449,039
Latest member
Mbone Mathonsi

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