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

I am trying to sum totals where I have the same name in
mulptiple rows.
I want to compare the previous row with the present row
based first on one column and then another and where the
two rows are different I want to insert a row and insert a
total for that name.
I am not good with VBA but I want this to be part of a
current macro.
How do I go about doing this in VBA?

Any help would be great.
Thanks
Kelly

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Summing rows

Are you familiar with Data=subtotals. This does what you describe. If you
want to apply it with a macro, you can turn on the macro recorder while you
do it manually.

--
Regards,
Tom Ogilvy

Kelly wrote in message
...
I am trying to sum totals where I have the same name in
mulptiple rows.
I want to compare the previous row with the present row
based first on one column and then another and where the
two rows are different I want to insert a row and insert a
total for that name.
I am not good with VBA but I want this to be part of a
current macro.
How do I go about doing this in VBA?

Any help would be great.
Thanks
Kelly



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
summing only certain rows rodchar Excel Discussion (Misc queries) 2 April 7th 09 09:10 PM
Summing up rows that only have all the values Rob Excel Discussion (Misc queries) 3 March 31st 09 09:46 AM
summing rows and columns RKS Excel Discussion (Misc queries) 2 April 14th 07 03:50 AM
Summing column and rows L. Howard Kittle Excel Discussion (Misc queries) 4 November 14th 06 05:00 AM
Summing Alternate Rows KarenQ Excel Discussion (Misc queries) 2 August 11th 05 09:27 PM


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