+ Reply to Thread
Results 1 to 6 of 6

Average each Column

  1. #1
    Registered User
    Join Date
    10-27-2015
    Location
    CT, USA
    MS-Off Ver
    2010
    Posts
    36

    Average each Column

    Hello Excel enthusiasts!
    Happy (almost) Halloween!
    My dilemma lies in trying to average each column once a new filter takes place.
    A macro filters a column to a specific part number, from there only specific part number is shown with all its passing values ranging in about 10 columns.
    I would like to somehow, at the end of each column show the average value, or maybe show the results on sheet2 with the Part number listed with the average values listed along side.
    Im thinking of incorporating such a task inside the "PartNumber" macro, so as soon as it filters the part number, you can take the average?
    Everything I seem to attempt is wrong...

    Any help would be valued. Thank you for taking the time to attempt this.
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    07-31-2010
    Location
    California
    MS-Off Ver
    Excel 2007
    Posts
    4,070

    Re: Average each Column

    Try this. Look for averages on sheet 2. This is assuming you filter by part number first

    Please Login or Register  to view this content.
    If you are happy with my response please click the * in the lower left of my post.

  3. #3
    Registered User
    Join Date
    10-27-2015
    Location
    CT, USA
    MS-Off Ver
    2010
    Posts
    36

    Re: Average each Column

    OK, the code above works. How about having each part number line up row by row with their averages next to them?

  4. #4
    Registered User
    Join Date
    10-27-2015
    Location
    CT, USA
    MS-Off Ver
    2010
    Posts
    36

    Re: Average each Column

    Well, Let me specify how the code works.
    I have about 5000 point of data to sort through. The data, due to some VBA code, permits each Part Number to sectionalize the data.
    From there, we can either Place the average values of each column at the end per part number. Or we could place on a new worksheet with the part number listed along with average values.
    The data will be listed, so as to have each part number visible corresponding with their respected average values per column.
    The code above only brings it to the new worksheet, but it does not bring in more than one part number along with its average values.

    Some assistance needed.

  5. #5
    Forum Expert
    Join Date
    07-31-2010
    Location
    California
    MS-Off Ver
    Excel 2007
    Posts
    4,070

    Re: Average each Column

    Do you mean like this? (Note: It may take a second or two for the code to go through 5000 data points)

    Please Login or Register  to view this content.

  6. #6
    Registered User
    Join Date
    10-27-2015
    Location
    CT, USA
    MS-Off Ver
    2010
    Posts
    36

    Re: Average each Column

    Yup, Just like that. Thank you very much! Just have to do some tidying up, but it'll get the job done. Thank you for your assistance!

+ 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. Replies: 15
    Last Post: 10-20-2015, 11:19 AM
  2. [SOLVED] Find Average, Return Column Header of Number Closest To Average
    By djmyers in forum Excel Formulas & Functions
    Replies: 15
    Last Post: 07-07-2013, 04:19 PM
  3. Replies: 14
    Last Post: 06-14-2013, 09:00 PM
  4. Replies: 2
    Last Post: 06-06-2013, 08:29 AM
  5. formula for column instances reference another column and plot average on X, Y, axis
    By silverbullet08 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 11-15-2012, 07:48 AM
  6. Replies: 2
    Last Post: 06-25-2012, 11:21 PM
  7. Replies: 8
    Last Post: 02-16-2011, 05:03 PM

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