If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > PC based Database Applications > Microsoft Excel > Subtotals by Group

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 04-14-04, 06:14
axapta axapta is offline
Registered User
 
Join Date: Apr 2004
Posts: 47
Subtotals by Group

Hi Group,
I have an Excel template which will be populated dynamically with data from my .ASP Page.

The format of the template is as follows:

Column B: Branch
Column C: Account No
Column E: Turnover

At the moment, I have a grand total but will need to have subtotals for each Branch.
How can I achieve this using VBA

Kind regards
Jackie

Example is as follows:
Branch Account No Turnover
Cambridge 1 50.00
Cambridge 2 48.00
Cambridge 3 15.00
Harlow 1617 25.00
Harlow 4556 45.00

Totals: 183.00


I need the report to look like this
Branch Account No Turnover
Cambridge 1 50.00
Cambridge 2 48.00
Cambridge 3 15.00
Total 113.00

Harlow 1617 25.00
Harlow 4556 45.00
Total 70.00

Totals: 183.00
Reply With Quote
  #2 (permalink)  
Old 04-14-04, 21:37
Smitty Smitty is offline
Registered User
 
Join Date: Dec 2003
Location: San Diego, CA
Posts: 153
Unless I'm misunderstanding, there's no need for VBA.

Goto Data-->Subtotals and Subtotal on Branch Name.

If you need that in VBA, just record it and it will give you what you need.

Hope that helps,

Smitty
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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