insertm line and subtotal on separate worksheet

S

Smitty

I am trying to create a workshete from another. I also need to insert a
subtotal line when the condition changes. For example, this is what the input
spreadsheet looks like.

AAA 20
AAA 30
AAA 40
BBB 20
BBB 35
BBB 15
BBB 25
CCC 25
CCC 25
CCC 25

This is what I am trying to make the output worksheet look like.

AAA 20
AAA 30
AAA 40
Subtotal AAA 90
BBB 20
BBB 35
BBB 15
BBB 25
Subtotal BBB 95
CCC 25
CCC 25
CCC 25
Subtotal CCC 75
Total 260

I need to avoid manual interventon and I have to be able to automatically
break on the change and insert a subtotal row. Can anyone help?
 
S

Shane Devenshire

Hi,

I prefer pivot tables but your problem can be solved easily with the Data,
Subtotal command. (2003) or the Data, Subtotal command in 2007.

If this helps, please click the Yes button

Cheers,
Shane Devenshire
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Automated report 1
Report Question 3
Counter 1
Database and VBA 3
Query to Count If >= 1
Combining MATCH & LOOKUP formulas 7
Sort Data Items in Pivot Table 8
Vertical line in Detail 4

Top