#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 14
Default Group by SUM

Hi,

I am need some help with this, i am absolutly new to vba.
I have a worksheet with two colums as given below
Id value
1 10
1 10
1 10
2 10
2 10
3 10
3 10
3 10


I want to SUM the values column based on the Id, that i mean is i
want
to write a VBA macro that helps me generate an output of the form:


Id value
1 10
1 10
1 10
30
2 10
2 10
20


3 10
3 10
3 10
30


Any help is really really appretiated


Thanks

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,856
Default Group by SUM

No need for a macro - Data | Subtotals will do this for you:

for each change in ID, sum value

Hope this helps.

Pete

On Oct 29, 4:48 pm, "
wrote:
Hi,

I am need some help with this, i am absolutly new to vba.
I have a worksheet with two colums as given below
Id value
1 10
1 10
1 10
2 10
2 10
3 10
3 10
3 10

I want to SUM the values column based on the Id, that i mean is i
want
to write a VBA macro that helps me generate an output of the form:

Id value
1 10
1 10
1 10
30
2 10
2 10
20

3 10
3 10
3 10
30

Any help is really really appretiated

Thanks



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
Copy Data from One Group of Cells to Another Group Alan Auerbach Charts and Charting in Excel 2 May 27th 07 04:12 PM
I wish to group my worksheets under group tabs CSI Excel Worksheet Functions 5 October 19th 06 09:25 PM
How can I convert a group of numbers to a group of letters? CarlG Excel Worksheet Functions 9 August 18th 06 03:31 PM
Taking age group Ie ages 20-29 and picking out net sales for group viabello Excel Worksheet Functions 1 April 25th 06 04:19 AM
How do I group worksheets (Lotus 123 function is "Sheet>Group Shee jaking Excel Worksheet Functions 2 August 30th 05 02:09 PM


All times are GMT +1. The time now is 08:04 AM.

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

About Us

"It's about Microsoft Excel"