LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Conditional Subtotal Macro

I would like to create a macro to subtotal only data that is duplicated.
For instance, the current subtotal function subtotals all lines, even those
with 1 line item. Sorry if this is confusing, maybe the example below will
help:

1 2
2 1
2 1

The current subtotal function, if applied above will do the following:

1 2
1 subtotal 2
2 1
2 1
2 subtotal 2

I would like for it to skip subtotaling if there is only one item and only
do it for duplicate items therefore resulting in:

1 2
2 1
2 1
2 subtotal 2

Any help you can provide is much appreciated.


 
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
Conditional subtotal Sarah H.[_2_] Excel Discussion (Misc queries) 10 December 15th 09 11:29 PM
sort macro, subtotal and add lines after subtotal David Excel Discussion (Misc queries) 1 August 29th 09 10:56 AM
Conditional SUBTOTAL Dallman Ross Excel Discussion (Misc queries) 3 June 22nd 08 11:40 AM
macro excel subtotal in subtotal GBO Excel Discussion (Misc queries) 2 November 29th 07 02:15 PM
Conditional SUBTOTAL M.Siler Excel Discussion (Misc queries) 12 June 29th 05 01:11 AM


All times are GMT +1. The time now is 09:54 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"