Advertisement

02.22.2007 at 08:19AM PST, ID: 22406662
[x]
Attachment Details

Perform Caluclations with Subtotals in a Macro (Excel)

Asked by NTGuru705 in Software, Microsoft Excel Spreadsheet Software

Tags: , ,

I have a problem with Excel... I insert subtotals of some columns but then I need an average of the subtotals.  How can I accomplish this... I could average the column but that wont work... because the column is averages... basicallly I need to sum some columns and then use the subtotals to calculate an average...

One column is a frequency and one column is a number of widgets per instance of the frequency.  So what I want to do is sum the frequency (count how often) and then sum the number of widgets per instance and then divide to get an average per frequency...   So in my subtotal I want to sum two columns then use the resulting totals to divide by each other.

I can do this just fine by hand but I want to put it into a macro... which makes it tough because I dont have a predefined number of row per break so I never know where these subtotal rows will be.. so I need to figure out some way to do this either by finding the subtotal tow or perhaps some unknown function in Excel that already handles this... PLEASE HELP.. Start Free Trial
[+][-]02.22.2007 at 08:35AM PST, ID: 18589061

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]02.22.2007 at 08:37AM PST, ID: 18589080

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]02.22.2007 at 08:38AM PST, ID: 18589101

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]02.22.2007 at 09:09AM PST, ID: 18589405

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Software, Microsoft Excel Spreadsheet Software
Tags: excel, macro, subtotal
Sign Up Now!
Solution Provided By: LoNeRaVeR9
Participating Experts: 1
Solution Grade: A
 
 
 
Loading Advertisement...
20080716-EE-VQP-32