• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

Naming the Header of table based on Grouping & ungrouping

Hi,

I need a help with a formula on the header of the table,if table is grouped header name should be "Group",if ungrouped it should be "Subdivision"
For example,

In attached sheet when i ungroup the table B5 should be named as "Subdivision"
If i group the table B5 should be named as "Group"
 

Attachments

  • GroupUngroup.xlsx
    8.6 KB · Views: 6
Need a formula that can detect if a row is hidden. In A6:A11, put this formula:
=SUBTOTAL(103,B6)

Change font color to white, if desired.

Then, formula in B5 becomes:
=IF(COUNTIF(A6:A11,0),"Group","Subdivision")
 
Back
Top