Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 19
Default Subtotal duplicate

I have a list of amounts that are attached to 3 separate elements. I need to
have a subtotal on a single line (no levels like in the 'subtotal' function)
for each change in the 3 columns as a whole, then delete the lines that are
not total lines. I need to work this into an existing macro, but I record all
of them & the subtotal function with 3 levels got way too messy. The list is
always a variable length & all 3 columns will have different values. Any
suggestions?

Original list:
A B C D
GL ST RL AMT
602600 01 KC 30.00
602600 01 KC 4.50
602600 00 GA 10.00
602600 00 GA 2.25
602600 04 KB 15.00
602600 04 KB 3.75
702600 04 KB 6.00
602600 04 KE 24.00
602600 04 KE 4.50
602600 04 KM 7.50


List as I would like it to be:
GL ST RL AMT
602600 01 KC 34.50
602600 00 GA 12.25
602600 04 KB 18.75
702600 04 KB 6.00
602600 04 KE 28.50
602600 04 KM 7.50

Any help would be appreciated!
--
DanaK
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,836
Default Subtotal duplicate

Data Pivot Table and Pivot Chart.

Place Gl andf RL in the 'Rows' area. Place AMT int the 'Data Items' area.
Finally, double-click GL Subtotals None.

HTH,
Ryan---
--
Ryan---
If this information was helpful, please indicate this by clicking ''Yes''.


"DanaK" wrote:

I have a list of amounts that are attached to 3 separate elements. I need to
have a subtotal on a single line (no levels like in the 'subtotal' function)
for each change in the 3 columns as a whole, then delete the lines that are
not total lines. I need to work this into an existing macro, but I record all
of them & the subtotal function with 3 levels got way too messy. The list is
always a variable length & all 3 columns will have different values. Any
suggestions?

Original list:
A B C D
GL ST RL AMT
602600 01 KC 30.00
602600 01 KC 4.50
602600 00 GA 10.00
602600 00 GA 2.25
602600 04 KB 15.00
602600 04 KB 3.75
702600 04 KB 6.00
602600 04 KE 24.00
602600 04 KE 4.50
602600 04 KM 7.50


List as I would like it to be:
GL ST RL AMT
602600 01 KC 34.50
602600 00 GA 12.25
602600 04 KB 18.75
702600 04 KB 6.00
602600 04 KE 28.50
602600 04 KM 7.50

Any help would be appreciated!
--
DanaK

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 19
Default Subtotal duplicate

Thank you, Ryan, but I've tried a pivot table & it won't work in this
instance. I need a clean list of subtotals to be used 8 different ways in the
same macro. And ever since I got MS 2007, I've had trouble using pivot
tables. One of the areas I wish they had not changed!
DanaK


"DanaK" wrote:

I have a list of amounts that are attached to 3 separate elements. I need to
have a subtotal on a single line (no levels like in the 'subtotal' function)
for each change in the 3 columns as a whole, then delete the lines that are
not total lines. I need to work this into an existing macro, but I record all
of them & the subtotal function with 3 levels got way too messy. The list is
always a variable length & all 3 columns will have different values. Any
suggestions?

Original list:
A B C D
GL ST RL AMT
602600 01 KC 30.00
602600 01 KC 4.50
602600 00 GA 10.00
602600 00 GA 2.25
602600 04 KB 15.00
602600 04 KB 3.75
702600 04 KB 6.00
602600 04 KE 24.00
602600 04 KE 4.50
602600 04 KM 7.50


List as I would like it to be:
GL ST RL AMT
602600 01 KC 34.50
602600 00 GA 12.25
602600 04 KB 18.75
702600 04 KB 6.00
602600 04 KE 28.50
602600 04 KM 7.50

Any help would be appreciated!
--
DanaK

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,836
Default Subtotal duplicate

Maybe this would work:
Data Subtotals At each change in RL and Add Subtotal to AMT. Then,
click OK.
Then, you can group the data or leave it ungrouped.

Good luck,
Ryan--

--
Ryan---
If this information was helpful, please indicate this by clicking ''Yes''.


"DanaK" wrote:

Thank you, Ryan, but I've tried a pivot table & it won't work in this
instance. I need a clean list of subtotals to be used 8 different ways in the
same macro. And ever since I got MS 2007, I've had trouble using pivot
tables. One of the areas I wish they had not changed!
DanaK


"DanaK" wrote:

I have a list of amounts that are attached to 3 separate elements. I need to
have a subtotal on a single line (no levels like in the 'subtotal' function)
for each change in the 3 columns as a whole, then delete the lines that are
not total lines. I need to work this into an existing macro, but I record all
of them & the subtotal function with 3 levels got way too messy. The list is
always a variable length & all 3 columns will have different values. Any
suggestions?

Original list:
A B C D
GL ST RL AMT
602600 01 KC 30.00
602600 01 KC 4.50
602600 00 GA 10.00
602600 00 GA 2.25
602600 04 KB 15.00
602600 04 KB 3.75
702600 04 KB 6.00
602600 04 KE 24.00
602600 04 KE 4.50
602600 04 KM 7.50


List as I would like it to be:
GL ST RL AMT
602600 01 KC 34.50
602600 00 GA 12.25
602600 04 KB 18.75
702600 04 KB 6.00
602600 04 KE 28.50
602600 04 KM 7.50

Any help would be appreciated!
--
DanaK

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Subtotal To Include Item Description On Subtotal Line Tickfarmer Excel Discussion (Misc queries) 2 February 23rd 10 07:56 PM
subtotal by week with duplicate dates? Beth Excel Discussion (Misc queries) 2 April 5th 08 03:37 AM
pasting to subtotal lines without replacing hidden -non-subtotal l harleydiva67 Excel Discussion (Misc queries) 1 October 12th 06 06:02 PM
subtotal of identical data and deleting its duplicate PaolaAndrea Excel Discussion (Misc queries) 2 February 17th 06 06:10 PM
Subtotal of Subtotal displays Grand Total in wrong row Thomas Born Excel Worksheet Functions 5 January 6th 05 01:46 PM


All times are GMT +1. The time now is 05:38 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"