+ Reply to Thread
Results 1 to 3 of 3

Macro to Calculate Average, Stdev, Sum, and Count From a Column of Data That Changes

  1. #1
    Registered User
    Join Date
    08-13-2013
    Location
    chicago
    MS-Off Ver
    Excel 2010
    Posts
    5

    Macro to Calculate Average, Stdev, Sum, and Count From a Column of Data That Changes

    Here's my situation. I copy and paste a table of data into Excel from our Datametric software at work. The table can be of varying columns and rows. I want to create a macro where I manually select the column of data I want to work with, run the macro, and then it will output the average, stdev, sum, and count into cells I specify.

    If it helps, the Sheet is called "Dump," the cell I want the average output to go into is A5, Stdev B5, Sum C5, and Count D5. I figured I could create a string, set the string equal to selection.address, but from there, I don't know how to go about it. Any help is much appreciated.

  2. #2
    Forum Contributor
    Join Date
    06-22-2011
    Location
    somerset
    MS-Off Ver
    365
    Posts
    328

    Re: Macro to Calculate Average, Stdev, Sum, and Count From a Column of Data That Changes

    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    08-13-2013
    Location
    chicago
    MS-Off Ver
    Excel 2010
    Posts
    5

    Re: Macro to Calculate Average, Stdev, Sum, and Count From a Column of Data That Changes

    Well, I've never claimed to know any VBA, but this still made me feel dumb. Thanks a ton, works great!

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Need a macro to calculate =count =avg =stdev of each subset for a large set of data
    By gabriellucero in forum Excel Programming / VBA / Macros
    Replies: 27
    Last Post: 07-20-2012, 02:06 PM
  2. VBA: Calculate average based on data from previous column, variable length
    By zeno1 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-01-2012, 07:26 PM
  3. Replies: 2
    Last Post: 12-01-2011, 08:36 AM
  4. ignoring #N/A in column average, stdev, etc
    By usererrr in forum Excel General
    Replies: 2
    Last Post: 10-19-2010, 06:08 PM
  5. average and stdev from groups of data
    By Charlie in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-09-2006, 12:00 AM

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