• Automagic Subtotals in Pivot Table

    From dpb@21:1/5 to All on Thu May 6 11:58:48 2021
    I don't yet understand much about pivot tables -- I can create one that
    has such a sample data set as

    B62503
    Allied Health - Nursing $2,900.00
    Allied Health - RT $1,500.00
    Allied Health - ST $1,000.00
    Allied Health-Sports Medicine $9,661.48

    which is great in that it has everything for the accounting fund code
    B62503, but ...

    I have to manually collapse the group to get the subtotal and when do
    that, the identifying main text goes away so it's "flying blind".

    Is there not a way to get a subtotal in the group as well? -- Seems
    pretty obvious thing one would want.

    I then would like/need a way to autogenerate such pivot tables in a new workbook instead of also having to create them manually.

    Thanks for any guidance...

    --

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Claus Busch@21:1/5 to All on Thu May 6 19:17:11 2021
    Hi,

    Am Thu, 6 May 2021 11:58:48 -0500 schrieb dpb:

    I don't yet understand much about pivot tables -- I can create one that
    has such a sample data set as

    B62503
    Allied Health - Nursing $2,900.00
    Allied Health - RT $1,500.00
    Allied Health - ST $1,000.00
    Allied Health-Sports Medicine $9,661.48

    which is great in that it has everything for the accounting fund code
    B62503, but ...

    I have to manually collapse the group to get the subtotal and when do
    that, the identifying main text goes away so it's "flying blind".

    Is there not a way to get a subtotal in the group as well? -- Seems
    pretty obvious thing one would want.

    I then would like/need a way to autogenerate such pivot tables in a new workbook instead of also having to create them manually.

    1. PivotTable Options => Display and activate "Show expand/collapse
    buttons
    2. Right click to the groups and choose "Subtotals "Group""

    Have a look:
    https://1drv.ms/x/s!AqMiGBK2qniTgfBFJyvhUNVNOYM9WQ?e=msZb71


    Regards
    Claus B.
    --
    Windows10
    Microsoft 365 for business

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Claus Busch@21:1/5 to All on Thu May 6 20:40:16 2021
    Hi,

    Am Thu, 6 May 2021 13:29:25 -0500 schrieb dpb:

    Thanks, Claus. It doesn't seem to work with Excel 2016...whenever try
    to Right click and subtotal, get error of

    "A PivotTable report cannot overlay another PivotTable report"

    in this case you have another PivotTable under the first one. Insert
    rows between the PivotTables that the first one doesn't overlap the
    second one if there is one more line per group is inserted.


    Regards
    Claus B.
    --
    Windows10
    Microsoft 365 for business

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From dpb@21:1/5 to Claus Busch on Thu May 6 13:29:25 2021
    On 5/6/2021 12:17 PM, Claus Busch wrote:
    Hi,

    Am Thu, 6 May 2021 11:58:48 -0500 schrieb dpb:

    I don't yet understand much about pivot tables -- I can create one that
    has such a sample data set as

    B62503
    Allied Health - Nursing $2,900.00
    Allied Health - RT $1,500.00
    Allied Health - ST $1,000.00
    Allied Health-Sports Medicine $9,661.48

    which is great in that it has everything for the accounting fund code
    B62503, but ...

    I have to manually collapse the group to get the subtotal and when do
    that, the identifying main text goes away so it's "flying blind".

    Is there not a way to get a subtotal in the group as well? -- Seems
    pretty obvious thing one would want.

    I then would like/need a way to autogenerate such pivot tables in a new
    workbook instead of also having to create them manually.

    1. PivotTable Options => Display and activate "Show expand/collapse
    buttons
    2. Right click to the groups and choose "Subtotals "Group""

    Have a look:
    https://1drv.ms/x/s!AqMiGBK2qniTgfBFJyvhUNVNOYM9WQ?e=msZb71


    Regards
    Claus B.


    Thanks, Claus. It doesn't seem to work with Excel 2016...whenever try
    to Right click and subtotal, get error of

    "A PivotTable report cannot overlay another PivotTable report"

    The "Expand/Collapse" buttons are shown; I can toggle them on/off and
    when on they work and the total then shows but just the one-line, of course.

    The overall grand total at the bottom shows, but no group totals.

    I'll try to log on to the community college site and use updated Excel
    and see if acts differently there. This is a real bummer as
    is...pretty-much makes worthless other than pretty.

    --dpb

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From dpb@21:1/5 to Claus Busch on Thu May 6 14:02:27 2021
    On 5/6/2021 1:40 PM, Claus Busch wrote:
    Hi,

    Am Thu, 6 May 2021 13:29:25 -0500 schrieb dpb:

    Thanks, Claus. It doesn't seem to work with Excel 2016...whenever try
    to Right click and subtotal, get error of

    "A PivotTable report cannot overlay another PivotTable report"

    in this case you have another PivotTable under the first one. Insert
    rows between the PivotTables that the first one doesn't overlap the
    second one if there is one more line per group is inserted.

    Well, it's another mystery of Excel -- if I try the same thing and put
    it on a new worksheet instead of on the existing one besides the data
    range where it rightfully belongs, everything seems to work.

    I don't understand the difference if the area on the existing sheet is
    empty. If it is something about how a pivot table mushes rows together
    into the groups that conflicts with other rows on the same sheet, that
    also pretty-much makes it useless for this task if will have to keep
    moving back and forth between worksheets.

    That just won't be at all conducive to the task flow...

    I had manually written a similar functionality with conditional
    summations but seemed like should be able to get away from having to do
    that.

    Later I'll see if moving the data range to a brand new worksheet gets
    rid of any old "stuff" hanging around behind the scenes from past
    attempts just in case, but it looks right now like a non-starter, unfortunately.

    Thanks again for the feedback...

    --dpb

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Claus Busch@21:1/5 to All on Thu May 6 20:48:27 2021
    Hi again,

    Thanks, Claus. It doesn't seem to work with Excel 2016...whenever try
    to Right click and subtotal, get error of

    "A PivotTable report cannot overlay another PivotTable report"

    have a look: https://www.myexcelonline.com/blog/a-pivottable-report-cannot-overlap-another-pivottable-report-solution/


    Regards
    Claus B.
    --
    Windows10
    Microsoft 365 for business

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From dpb@21:1/5 to Claus Busch on Thu May 6 16:19:52 2021
    On 5/6/2021 1:48 PM, Claus Busch wrote:
    Hi again,

    Thanks, Claus. It doesn't seem to work with Excel 2016...whenever try
    to Right click and subtotal, get error of

    "A PivotTable report cannot overlay another PivotTable report"

    have a look: https://www.myexcelonline.com/blog/a-pivottable-report-cannot-overlap-another-pivottable-report-solution/


    OK, thanks Claus. I hadn't found the thingie about "Show All Subtotals
    at Bottom|Top of Group" before. Turns out it was apparently trying to
    use "Bottom" instead of "Top" which adds another line in every group and
    that caused the PivotTable to grow that I wasn't expecting/didn't see
    any reason why it should. Of course, it doesn't tell you that... :(

    Anyways, trying to add all those extra lines did cause the overall
    length grow into an area where I thought it possible for it to go and
    that did have my other calculated table in it. So, the mystery is
    explained.

    It's a pretty useful feature, but surely could stand some improved
    diagnostics and interface tools.

    Looks like in the end it will be workable if I can figure out how to autogenerate it with the code that populates the rest of the sheet.

    It has anywhere from 4-8 separate sections corresponding to monthly
    scholarship billings that are extracted from the workbook Financial Aid
    sends as the bill to the Foundation; we have to then code the funds to
    which individual awards are to be billed internally to/tracked by the Foundation by the source of the funds.

    I create that workbook by reading the required columns and building a
    new workbook for the accountant/bookkeeper; all these individual sums
    had been being calculated by hand by sorting the workbook on the ACCOUNT
    and writing a SUM() manually.

    I need now to be able to insert the given PivotTable for the monthly
    billing sections when create the table -- of course it's possible to do
    it by hand, but shouldn't be necessary to do so.

    Thanks again for the pointers; this is my first foray into PTs in depth,
    and I'm no Excel expert to begin with...

    --dpb

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Claus Busch@21:1/5 to All on Fri May 7 00:49:41 2021
    Hi,

    Am Thu, 6 May 2021 16:19:52 -0500 schrieb dpb:

    It has anywhere from 4-8 separate sections corresponding to monthly scholarship billings that are extracted from the workbook Financial Aid
    sends as the bill to the Foundation; we have to then code the funds to
    which individual awards are to be billed internally to/tracked by the Foundation by the source of the funds.

    try:
    Options => Quick Access Toolbar and add "PivotTable and PivotChart
    Wizard"
    With that tool you can choose "Multiple consolidation ranges"

    or have a look:
    https://www.contextures.com/xlpivot08.html


    Regards
    Claus B.
    --
    Windows10
    Microsoft 365 for business

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From dpb@21:1/5 to Claus Busch on Thu May 6 19:14:39 2021
    On 5/6/2021 5:49 PM, Claus Busch wrote:
    Hi,

    Am Thu, 6 May 2021 16:19:52 -0500 schrieb dpb:

    It has anywhere from 4-8 separate sections corresponding to monthly
    scholarship billings that are extracted from the workbook Financial Aid
    sends as the bill to the Foundation; we have to then code the funds to
    which individual awards are to be billed internally to/tracked by the
    Foundation by the source of the funds.

    try:
    Options => Quick Access Toolbar and add "PivotTable and PivotChart
    Wizard"
    With that tool you can choose "Multiple consolidation ranges"

    or have a look:
    https://www.contextures.com/xlpivot08.html


    Regards
    Claus B.

    Thanks...that'll help for overall sanity check. For accounting each
    monthly billing has to be posted during the month was accrued so have to
    keep those separate -- although on occasion there may be two billings in
    a given month, so that could be helpful there, too...although generally
    the bookkeeper will enter the two (or more) separately so can check
    against the entry for the given month/billing; they're then converted to
    values the following month and new billing recorded.

    Thank you again, Claus, for the pointers -- did help me figure out what
    made no sense to me originally, for sure.

    --

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Claus Busch@21:1/5 to All on Fri May 7 16:54:43 2021
    Hi Duane,

    Am Fri, 7 May 2021 09:17:16 -0500 schrieb dpb:

    Actually, I have one more issue that isn't really related to the pivot
    table other than it's an artifact of the attempts to try to create one--

    When I created a table from the range following some hints I read on one
    of the many web sites, Excel "helpfully" inserted alternate-row shading
    on top of the existing background fill colors that I don't want to lose.

    How can one remove that distracting and now hard-to-read shading without destroying the other background fill? I can, of course, just trash this sheet entirely and start over again, but I had done some preliminary rearranging that would have to redo not knowing what Excel was going to
    do to me...

    select the PivotTable => Design and choose a PivotTable style you like.
    You can also play around with "Banded Rows" and "Banded Columns".

    Regards
    Claus B.
    --
    Windows10
    Microsoft 365 for business

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From dpb@21:1/5 to Claus Busch on Fri May 7 09:17:16 2021
    On 5/6/2021 5:49 PM, Claus Busch wrote:
    Hi,

    Am Thu, 6 May 2021 16:19:52 -0500 schrieb dpb:

    It has anywhere from 4-8 separate sections corresponding to monthly
    scholarship billings that are extracted from the workbook Financial Aid
    sends as the bill to the Foundation; we have to then code the funds to
    which individual awards are to be billed internally to/tracked by the
    Foundation by the source of the funds.

    try:
    Options => Quick Access Toolbar and add "PivotTable and PivotChart
    Wizard"
    With that tool you can choose "Multiple consolidation ranges"

    or have a look:
    https://www.contextures.com/xlpivot08.html


    Actually, I have one more issue that isn't really related to the pivot
    table other than it's an artifact of the attempts to try to create one--

    When I created a table from the range following some hints I read on one
    of the many web sites, Excel "helpfully" inserted alternate-row shading
    on top of the existing background fill colors that I don't want to lose.

    How can one remove that distracting and now hard-to-read shading without destroying the other background fill? I can, of course, just trash this
    sheet entirely and start over again, but I had done some preliminary rearranging that would have to redo not knowing what Excel was going to
    do to me...

    Removing "conditional formatting" didn't have any effect...

    --

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From dpb@21:1/5 to Claus Busch on Fri May 7 14:42:07 2021
    On 5/7/2021 9:54 AM, Claus Busch wrote:
    Hi Duane,

    Am Fri, 7 May 2021 09:17:16 -0500 schrieb dpb:

    Actually, I have one more issue that isn't really related to the pivot
    table other than it's an artifact of the attempts to try to create one--

    When I created a table from the range following some hints I read on one
    of the many web sites, Excel "helpfully" inserted alternate-row shading
    on top of the existing background fill colors that I don't want to lose.

    How can one remove that distracting and now hard-to-read shading without
    destroying the other background fill? I can, of course, just trash this
    sheet entirely and start over again, but I had done some preliminary
    rearranging that would have to redo not knowing what Excel was going to
    do to me...

    select the PivotTable => Design and choose a PivotTable style you like.
    You can also play around with "Banded Rows" and "Banded Columns".

    Regards
    Claus B.

    This isn't in the PivotTable but in the data range of the PT when I
    tried turning it into a table per a suggestion seen on internet.

    I turned it back into a regular range from the table and the banded rows artifact remained. I guess I could try going back to the table again
    and seeing if there's some control there.

    I can just revert back to the previously saved version; it's not a
    terribly large number of modifications I had made so it's not a
    disaster, just inconvenience.

    Thanks for feedback, as always.

    --

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Claus Busch@21:1/5 to All on Fri May 7 21:48:44 2021
    Hi Duane,

    Am Fri, 7 May 2021 14:42:07 -0500 schrieb dpb:

    This isn't in the PivotTable but in the data range of the PT when I
    tried turning it into a table per a suggestion seen on internet.

    I turned it back into a regular range from the table and the banded rows artifact remained. I guess I could try going back to the table again
    and seeing if there's some control there.

    I can just revert back to the previously saved version; it's not a
    terribly large number of modifications I had made so it's not a
    disaster, just inconvenience.

    when you right click on as table formatted data => Convert to range you
    will get a normal table. But the colors and the borders remain.
    You must select the whole range => no fill and no border.


    Regards
    Claus B.
    --
    Windows10
    Microsoft 365 for business

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From dpb@21:1/5 to Claus Busch on Fri May 7 15:45:04 2021
    On 5/7/2021 2:48 PM, Claus Busch wrote:
    Hi Duane,

    Am Fri, 7 May 2021 14:42:07 -0500 schrieb dpb:

    This isn't in the PivotTable but in the data range of the PT when I
    tried turning it into a table per a suggestion seen on internet.

    I turned it back into a regular range from the table and the banded rows
    artifact remained. I guess I could try going back to the table again
    and seeing if there's some control there.

    I can just revert back to the previously saved version; it's not a
    terribly large number of modifications I had made so it's not a
    disaster, just inconvenience.

    when you right click on as table formatted data => Convert to range you
    will get a normal table. But the colors and the borders remain.
    You must select the whole range => no fill and no border.

    "That's rude!" :) Afraid of that being a non-reversible "feature".

    Fortunately, I do have the original, and had, in fact, already reverted
    to it and made the edits again.

    Thanks for confirming...

    --

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)