ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Pivot table sort order (https://www.excelbanter.com/excel-discussion-misc-queries/74379-pivot-table-sort-order.html)

Vincdc

Pivot table sort order
 
Hello:
I have a pivot table which is sort by week number 1-52. How can I show the
order as 26-52 and then 1-25.
Thanks in advance!

Debra Dalgleish

Pivot table sort order
 
You could calculate the week number to include a prefix, e.g.:

=IF(WEEKNUM(A2)=26,"A-","B-")&TEXT(WEEKNUM(A2),"00")

and the weeks would sort as you want them.

Vincdc wrote:
Hello:
I have a pivot table which is sort by week number 1-52. How can I show the
order as 26-52 and then 1-25.
Thanks in advance!



--
Debra Dalgleish
Excel FAQ, Tips & Book List
http://www.contextures.com/tiptech.html


Vincdc

Pivot table sort order
 
Thanks for you answer! But I do not have the Analysis ToolPak add-in on my
computer; so I had to sort the order manually.


"Debra Dalgleish" wrote:

You could calculate the week number to include a prefix, e.g.:

=IF(WEEKNUM(A2)=26,"A-","B-")&TEXT(WEEKNUM(A2),"00")

and the weeks would sort as you want them.

Vincdc wrote:
Hello:
I have a pivot table which is sort by week number 1-52. How can I show the
order as 26-52 and then 1-25.
Thanks in advance!



--
Debra Dalgleish
Excel FAQ, Tips & Book List
http://www.contextures.com/tiptech.html




All times are GMT +1. The time now is 05:30 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com