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

nparsons75

Well-known Member
Joined
Sep 23, 2013
Messages
1,256
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

What does custom number format of ;;; mean?
Three semi-colons will hide the value in the cell. Although most people use white font instead.
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...


[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD="align: center"]ID 1[/TD]
[TD="align: center"]ID 2[/TD]
[TD="align: center"]ID 3[/TD]
[TD="align: center"]ID 4[/TD]
[TD="align: center"]ID 5[/TD]
[/TR]
[TR]
[TD="align: center"]55[/TD]
[TD="align: center"]150[/TD]
[TD="align: center"]30[/TD]
[TD="align: center"]12[/TD]
[TD="align: center"]122[/TD]
[/TR]
</tbody>[/TABLE]


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...:laugh:
 
Upvote 0
Do you not have a Get And Transform section on the Data tab?
 
Upvote 0

Forum statistics

Threads
1,223,911
Messages
6,175,323
Members
452,635
Latest member
laura12345

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