Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #7  
Old 04-25-2023, 02:55 AM
p45cal's Avatar
p45cal p45cal is offline Trying to sort different values from different categories under other categories Windows 10 Trying to sort different values from different categories under other categories Office 2019
Expert
 
Join Date: Apr 2014
Posts: 948
p45cal has a reputation beyond reputep45cal has a reputation beyond reputep45cal has a reputation beyond reputep45cal has a reputation beyond reputep45cal has a reputation beyond reputep45cal has a reputation beyond reputep45cal has a reputation beyond reputep45cal has a reputation beyond reputep45cal has a reputation beyond reputep45cal has a reputation beyond reputep45cal has a reputation beyond repute
Default

Your source data is already like a pivot table so needs some re-organisation in the background before presenting it to the user.
In the attached are two offerings (both use Power Query).
I've made the source data into a proper Excel table. I've also added a line to that source data to make sure that multiple positions for the same Position/Level/Company but different Pay are properly handled.

1. A Pivot table at cell G19. This is a bit of a cheat because I've hidden column J of the sheet because I'm not really using the pivot table to summarise data but to display it in a different way, so the Index column ensures that records remain separate. A bit messy.

2. A Power Query table at cell M19. This is more straightforward and more robust. There's just one tweak I made to that result table, I added conditional formatting in the first two columns to hide repeating items so that it looks a bit like what you wanted.

Both solutions need to be refreshed should the source data be changed. Use the Refresh All button on the Queries and Connections section of the Data tab of the ribbon.
Attached Files
File Type: xlsx msofficeforums50784Salary Sheet Example.xlsx (25.8 KB, 4 views)
Reply With Quote
 

Tags
sort worksheet, table



Similar Threads
Thread Thread Starter Forum Replies Last Post
Sorting: Sort Categories, and Then the Items in Each Category? tatihulot Word 1 05-12-2022 06:37 PM
Trying to sort different values from different categories under other categories Dynamic Categories stephen_ Excel 4 07-03-2013 01:38 AM
Categories disappear PattiL Outlook 0 08-05-2011 08:34 AM
Using categories Matelot Outlook 3 10-14-2010 07:32 PM
Categories disappeared? markg2 Outlook 1 08-02-2010 03:24 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 04:04 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft