Advertisement

08.23.2008 at 06:38PM PDT, ID: 23673150
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

9.1

Auto Create (in VBA) a Summary for 14 lines and n groups of data

Asked by tobey1 in Microsoft Excel Spreadsheet Software

Tags: , ,

I have a worksheet that has 6 group with 14 data lines in each and 7 months of data for each group.  I want to create via VBA a a total group and then then summary of the 14 data lines and each month.

Example:

Cell A2-A15 = Project Manager
Cell B2-B15 = 14 Distinct Functions (Job1 - Job 14)
Cell C2-J15 = The total hours for each function for each month

And this repeats 6 times for other job titles.

After all the data, I want to Total all the distinct functions (Job1 - Job14) for the 7 months.

Attached is what I started, but I think I am taking the long way to an easy answer.  Any thoughts/guidance would be appreciated.Start Free Trial
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
37:
38:
39:
40:
41:
42:
43:
44:
45:
Sub RoleMetricTotals()
    Dim i, j, k, StopRow, Looper As Integer
    Dim Sum1, Sum2, Sum3, Sum4, Sum5, Sum6, Sum7 As Double
    
    Range("A1").Select
    Selection.End(xlDown).Select
    StopRow = ActiveCell.Row
    Looper = (StopRow - 1) / 13
    
    i = 1
    Do Until i = 15
        ActiveCell.Offset(i, 0).Value = "Total"
        i = i + 1
    Loop
    i = 1
    
    Range("B2:B15").Select
    Selection.Copy
    Range("A" & StopRow).Select
    ActiveCell.Offset(1, 1).Select
    ActiveSheet.Paste
    
    Do Until j = 15
        ' summarize data for row
        Sum1 = 0
        Sum2 = 0
        Sum3 = 0
        Sum4 = 0
        Sum5 = 0
        Sum6 = 0
        Sum7 = 0
        Range("A1").Select
        k = 3
        Do Until k = 11
            Do Until i = Looper
                Sum1 = Sum1+ActiveCell.Offset(j,k
                i = i + 1
            Loop
            ' load summarized data in cells
            k = k + 1
        Loop
        j = j + 1
    Loop
    
End Sub
[+][-]08.23.2008 at 08:13PM PDT, ID: 22299367

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.

 
[+][-]08.25.2008 at 05:23AM PDT, ID: 22304822

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.

 
[+][-]08.25.2008 at 10:22AM PDT, ID: 22307309

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.

 
[+][-]08.25.2008 at 10:45AM PDT, ID: 22307492

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.

 
[+][-]08.25.2008 at 11:31AM PDT, ID: 22307843

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

Zone: Microsoft Excel Spreadsheet Software
Tags: Microsoft, Excel, 2003
Sign Up Now!
Solution Provided By: byundt
Participating Experts: 1
Solution Grade: A
 
 
[+][-]08.25.2008 at 07:44PM PDT, ID: 22311218

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.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628