Share via

Grouping Function's Problem

Anonymous
2025-01-29T09:51:27+00:00

Hello,

I am having problems with the row grouping function.When we have, for example, a level 6 with N elements of level 7 below, and then again level 6 with other elements of level 7 below, when grouping them manually, and also through code, I have the following problem, I only get the grouping of the level 7 of the first subgroup, but for the second one I don't get the corresponding +/- symbol. Is this a known error in excel? Is there any way to solve this problem?

Microsoft 365 and Office | Excel | For business | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

2 answers

Sort by: Most helpful
  1. Anonymous
    2025-02-06T14:30:46+00:00

    The behaviour was alright for the version 2412 Build 16.0.18324.20092, the same software, with the same data, works different for each Excel version. The newer one (Version 2501 Build 16.0.18429.20132), does not work with grouping, and that throws an exception when I try to call the next code :

    try { xlworksheet.Outline.SummaryRow = XlSummaryRow.xlSummaryAbove; } catch { } 
    

    I thought it should work exactly the same, but that's not the case. Another thing is that in sheet.xml File, extrated from xlsl transformed to zip, has not the correspondig field for the agroupation.

    Was this answer helpful?

    0 comments No comments
  2. Andreas Killer 144.1K Reputation points Volunteer Moderator
    2025-01-29T11:17:34+00:00

    The behavior is normal and by design, you must have at min. one row between the groups.

    Andreas.

    Was this answer helpful?

    0 comments No comments