Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 122
Default group summary totals

Hello:

A few days ago, a very nice person out here on the message board showed me
how a macro could be developed in Excel to automatically total a column in
Excel without the end user's having to click the @SUM button. This was
great, considering that this Excel data had been imported from another
application and the totaling of the column therefore had to be automatic upon
the dumping of data to Excel.

Now, in the same vein, I need to find a way to have Excel automatically
total the grouping of data within the spreadsheet. This grouping is similar
to the grouping that could be conducted through Crystal Reports or through
SQL Reporting Services.

The group would be based on the vendor IDs appearing in a column of the
srpeadsheet. In other words, the amounts in the spreadsheet would be grouped
and subtotaled by the vendor ID column.

Is it possible to develop a macro that would automatically do this after the
data is dumped to Excel? And, if so, how?

Thanks!

childofthe1980s
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6,953
Default group summary totals

Dump the Data

Turn on the macro Recorder (tools=Macro=Record a New Macro)

Select the upper left corner of you data then do
Data=SubTotal

Walk through the wizard.

when the Subtotals have been applied, then turn off the macro recorder and
look at the recorded code. You can then generalize it to suit your needs.

--
Regards,
Tom Ogilvy



"childofthe1980s" wrote:

Hello:

A few days ago, a very nice person out here on the message board showed me
how a macro could be developed in Excel to automatically total a column in
Excel without the end user's having to click the @SUM button. This was
great, considering that this Excel data had been imported from another
application and the totaling of the column therefore had to be automatic upon
the dumping of data to Excel.

Now, in the same vein, I need to find a way to have Excel automatically
total the grouping of data within the spreadsheet. This grouping is similar
to the grouping that could be conducted through Crystal Reports or through
SQL Reporting Services.

The group would be based on the vendor IDs appearing in a column of the
srpeadsheet. In other words, the amounts in the spreadsheet would be grouped
and subtotaled by the vendor ID column.

Is it possible to develop a macro that would automatically do this after the
data is dumped to Excel? And, if so, how?

Thanks!

childofthe1980s

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
Pivot Totals: Group totals different from Grand totals PsyberFox Excel Discussion (Misc queries) 1 February 13th 08 06:16 PM
Summary Sheet Totals Bowtie63 Excel Discussion (Misc queries) 7 October 29th 07 07:54 PM
multi group with summary above with 1 overall summary line below Freddy Excel Discussion (Misc queries) 2 November 7th 05 03:30 PM
multi group with summary above with 1 overall summary line below Freddy Excel Discussion (Misc queries) 1 November 1st 05 08:50 PM
Summary Sheet Totals gwhite Excel Discussion (Misc queries) 3 July 11th 05 02:28 AM


All times are GMT +1. The time now is 03:32 PM.

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"