Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 28
Default Help with Suming of Column

I need VBA code to sum the values in two columns even if the data is each set
that I need to sum varies in length exa.

Initial data

Quantity Amount
2 32.30

3 177.00

2 1,598.00
2 198.00

End result needed.

Quantity Amount
2 32.30
2 32.30 The sum of values above

3 177.00
3 177.00 The sum of values above


2 1,598.00
2 198.00
4 1,796.00 The sum of values above

I need it to do this until the end of the data..
Any help Would be deeply appreciated..

--
Regards,
Michael
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,533
Default Help with Suming of Column

Hi Michael

Why not use the SubTotal function.

Select your data table, and goto Data Subtotal Follow the instructions

Hopes this helps.

---
Per

"Michael from Austin" skrev i
meddelelsen ...
I need VBA code to sum the values in two columns even if the data is each
set
that I need to sum varies in length exa.

Initial data

Quantity Amount
2 32.30

3 177.00

2 1,598.00
2 198.00

End result needed.

Quantity Amount
2 32.30
2 32.30 The sum of values above

3 177.00
3 177.00 The sum of values above


2 1,598.00
2 198.00
4 1,796.00 The sum of values above

I need it to do this until the end of the data..
Any help Would be deeply appreciated..

--
Regards,
Michael


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 28
Default Help with Suming of Column

Wow. didn't think the subtotal would work because I have empty rows
seperating them. It worked though. I feel like an idiot. Thanks for you help.
Sometimes the answer is staring you in the face:)
--
Regards,
Michael


"Per Jessen" wrote:

Hi Michael

Why not use the SubTotal function.

Select your data table, and goto Data Subtotal Follow the instructions

Hopes this helps.

---
Per

"Michael from Austin" skrev i
meddelelsen ...
I need VBA code to sum the values in two columns even if the data is each
set
that I need to sum varies in length exa.

Initial data

Quantity Amount
2 32.30

3 177.00

2 1,598.00
2 198.00

End result needed.

Quantity Amount
2 32.30
2 32.30 The sum of values above

3 177.00
3 177.00 The sum of values above


2 1,598.00
2 198.00
4 1,796.00 The sum of values above

I need it to do this until the end of the data..
Any help Would be deeply appreciated..

--
Regards,
Michael



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 28
Default Help with Suming of Column

Thanks for the help. It worked...
--
Regards,
Michael


"Per Jessen" wrote:

Hi Michael

Why not use the SubTotal function.

Select your data table, and goto Data Subtotal Follow the instructions

Hopes this helps.

---
Per

"Michael from Austin" skrev i
meddelelsen ...
I need VBA code to sum the values in two columns even if the data is each
set
that I need to sum varies in length exa.

Initial data

Quantity Amount
2 32.30

3 177.00

2 1,598.00
2 198.00

End result needed.

Quantity Amount
2 32.30
2 32.30 The sum of values above

3 177.00
3 177.00 The sum of values above


2 1,598.00
2 198.00
4 1,796.00 The sum of values above

I need it to do this until the end of the data..
Any help Would be deeply appreciated..

--
Regards,
Michael



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
suming every 3rd column Steved Excel Worksheet Functions 7 April 11th 08 02:12 AM
testing while suming angryelvis New Users to Excel 3 August 14th 07 05:58 PM
suming in add-ins ajimmo Excel Worksheet Functions 2 October 2nd 06 11:57 PM
Suming a column to another worksheet CRYM Excel Programming 2 June 11th 06 01:28 AM
suming across sheets netnews.comcast.net Excel Programming 1 July 15th 04 08:23 PM


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