+ Reply to Thread
Results 1 to 6 of 6

Macro for calculating stats(ie, Average) over variable range

  1. #1
    Registered User
    Join Date
    11-20-2012
    Location
    New York, NewYork
    MS-Off Ver
    Excel 2010
    Posts
    14

    Macro for calculating stats(ie, Average) over variable range

    Hi All,

    I have a macro (unsuccessfully) started to help me automate calculating statistics for a variable set of data.

    Please Login or Register  to view this content.
    The problem is, this code seems unnecessarily long, and also will not work if I have labels in the rows and columns (ie, text for headers in columns), as well as the first few column's data consisting of names and text associated with the numeric data I need to calculate statistics for.

    An example is below, and is to be read as a worksheet (Capital letters represent the labeled column headers).

    Please Login or Register  to view this content.
    Any help or insight would be greatly appreciated.

    Thanks in advance.

    -P

  2. #2
    Valued Forum Contributor Naveed Raza's Avatar
    Join Date
    11-04-2012
    Location
    India, Hyderabad
    MS-Off Ver
    Excel, Access 2007/2010
    Posts
    1,338

    Re: Macro for calculating stats(ie, Average) over variable range

    Hi,

    Please attached example workbook than its more easy to solve ur query.

  3. #3
    Registered User
    Join Date
    11-20-2012
    Location
    New York, NewYork
    MS-Off Ver
    Excel 2010
    Posts
    14

    Re: Macro for calculating stats(ie, Average) over variable range

    Sure, probably should have added to the original post. It's attached now.

    I deleted the irrelevant macros because the module was pretty crowded, but left the results they produced for the starting point of the macro(s) I'm having trouble with.

    My end goal is to produce the stats on the "Stats2" sub in the sheets labeled "Stats01" and "Stats02." It will ideally produce a set of separate stats for the students by section.

    My work so far is pretty messy, but hopefully isn't too difficult to interpret.

    Thanks

    -P
    Attached Files Attached Files

  4. #4
    Valued Forum Contributor Naveed Raza's Avatar
    Join Date
    11-04-2012
    Location
    India, Hyderabad
    MS-Off Ver
    Excel, Access 2007/2010
    Posts
    1,338

    Re: Macro for calculating stats(ie, Average) over variable range

    Hi Par,

    Please find the attached workbook and plz have review and let me know is it that u want output or not.

    Thanks - Naveed.
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    11-20-2012
    Location
    New York, NewYork
    MS-Off Ver
    Excel 2010
    Posts
    14

    Re: Macro for calculating stats(ie, Average) over variable range

    Yep, that's it exactly. Thanks a lot, I really appreciate the help.

  6. #6
    Valued Forum Contributor Naveed Raza's Avatar
    Join Date
    11-04-2012
    Location
    India, Hyderabad
    MS-Off Ver
    Excel, Access 2007/2010
    Posts
    1,338

    Re: Macro for calculating stats(ie, Average) over variable range

    K thanks to u as well brother i also learn new thing equally .

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1