I am not sure how to explain.
Assume I have 3 colums per month for 3 months.
Sales, Returns and Commision.
Going down the rows I have different product codes and the data therfore shows for example what the sales value of product code 110456 in each month is. The same is obviously true of returns and consequently commision.
ITO formatting I group each month: Data > Group and Outline > Group.
What I want is to total all the sales for each month, all the returns for a month and all the commision.
However if the grouping of a particular month is closed - hidden then the calculation must ignore those figures, but must include them if the groping is open, i.e the months figures can be seen.
Type 10 into A1 and 20 into A2. In B3 type =subtotal(109,A1,A2)
Then select row two, go to Data, Group and Outline click Group. There will be a little minus sign on the left of the row 2. As you click it, you will notice the result of the subtotal change from 30 to 10 as you either group or ungroup row 2. I want to do exactly this but I group columns, not rows and there seems to be no function that allowes me to do that.
What do I do?
Thanks.
I hope this is clear.
[/quote]