Wrox Programmer Forums
|
Excel VBA Discuss using VBA for Excel programming.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Excel VBA section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old August 16th, 2004, 03:52 AM
Registered User
 
Join Date: Aug 2004
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default Summing and Exporting

I retrieve raw data which allows me to save to an excel file. However the data is save with all the item names and values separated into rows and cols. For e.g cA/r - r6 would be titled "Password Reset" 5 times, along with their related values in cB. They are more than 15 items; I would like to sum the value for individual items and exported them to a pre-defined excel worksheet for printing.

I'm new to this forum and VB scripting, however I must accomplish this task. Thank you for your help!!!!!

 
Old August 17th, 2004, 06:55 AM
Authorized User
 
Join Date: Aug 2004
Posts: 54
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I think a Pivot Table would do what you want. You need a simple table with headings at the top of columns and data underneath. Select the whole data and use menu Data/Pivot Table Report and follow the instructions step by step.

It is easy to experiment to see what happens with various layouts. To change a pivot table, click somewhere on in and use Data/Pivot Table Report again.


-----------------------
Regards BrianB
Most problems occur from starting at the wrong place.
Use a cup of coffee to make Windows run faster.
It is easy until you know how.
 
Old August 17th, 2004, 07:35 AM
Registered User
 
Join Date: Aug 2004
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks!!! I will give it a test and let you know.

 
Old August 18th, 2004, 11:25 PM
Registered User
 
Join Date: Aug 2004
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hey BrianB!

The [u]PivotTable</u> did the trick, I tried all the types as you suggested, and the "Microsoft Excel List or database" works fine.

Now, is it possible to export the summarized data to a different worksheet?

Once again thank you for your response.






Similar Threads
Thread Thread Starter Forum Replies Last Post
summing column values hydriswall PHP Databases 1 December 8th, 2006 04:54 AM
Summing values swwallace XSLT 4 March 4th, 2006 12:13 PM
Help with summing calculated fields on a report dbartelt Access 6 January 4th, 2006 03:33 PM
SQL vs CR summing daniel SQL Server 2000 5 October 3rd, 2005 04:59 PM
Summing up in a loop Tschuri XSLT 0 May 3rd, 2005 07:16 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.