+ Reply to Thread
Results 1 to 5 of 5

Pivot Table - Row %

  1. #1
    Registered User
    Join Date
    06-04-2023
    Location
    UK
    MS-Off Ver
    365 (or 2016)
    Posts
    2

    Pivot Table - Row %

    Good morning, very pleased to be here and hoping for some help. I just cannot get this sheet to work. It is the row percentages I'm struggling with. I have tried everything but just can't seem to get it to work. Thank you in advance for any advice.
    I have attached a screenshot and the file here.
    Excel.png
    Attached Files Attached Files

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,910

    Re: Pivot Table - Row %

    Welcome to the forum.

    A non-PT 365 solution:

    =LET(h,Table1[[#Headers],[Year]:[C]],y,Table1[Year],s,Table1[Subject],te,Table1[TOTAL ENTRIES],VSTACK(h,HSTACK(s,y,Table1[A]/te,Table1[B]/te,Table1[C]/te)))
    Attached Files Attached Files
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Registered User
    Join Date
    06-04-2023
    Location
    UK
    MS-Off Ver
    365 (or 2016)
    Posts
    2

    Re: Pivot Table - Row %

    Wow! Many thanks. I have to ask as I don't really understand... Is that better than just using plain old:

    e.g. D4/$G4 etc.

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,910

    Re: Pivot Table - Row %

    It does the same, but all in one and it spills - no copying of formulae down. If you need an explanation of the syntax, just shout. It won't work in Excel 2016, of course. I have a loathing of pivot tables, so will always try to find a way around using them.

  5. #5
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,910

    Re: Pivot Table - Row %

    HOW IT WORKS

    =LET(h,Table1[[#Headers],[Year]:[C]],y,Table1[Year],s,Table1[Subject],te,Table1[TOTAL ENTRIES],VSTACK(h,HSTACK(s,y,Table1[A]/te,Table1[B]/te,Table1[C]/te)))

    Variables h, y, s and te define the constants (header row and columns).

    [B]Table1[A]/te,Table1/te,Table1[C]/te are the calculated columns - if you change the number of entries in any row of the source table, the results will update accordingly.

    HSTACK stacks the columns needed next to each other in the order defined.

    VTACK sticks the header row on top to leave you with a complete table.


    If that takes care of your original question, please choose Thread Tools from the menu link above and mark this thread as SOLVED.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] VBA create pivot table in excel 2010 defaulted to 2003 pivot table format
    By lynnsong986 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-15-2019, 02:05 PM
  2. Replies: 7
    Last Post: 02-27-2017, 07:41 AM
  3. Replies: 6
    Last Post: 01-24-2017, 06:56 PM
  4. Automating Pivot table and pivot chart creation if data table names unknown
    By Vegiepie2016 in forum Excel Charting & Pivots
    Replies: 0
    Last Post: 02-04-2016, 11:52 AM
  5. Replies: 1
    Last Post: 07-29-2015, 05:19 PM
  6. Replies: 1
    Last Post: 07-29-2015, 05:15 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1