+ Reply to Thread
Results 1 to 5 of 5

Excel Data Grouping and Evaluation

Hybrid View

  1. #1
    Registered User
    Join Date
    10-08-2009
    Location
    Boston, MA
    MS-Off Ver
    Excel 2007
    Posts
    3

    Smile Excel Data Grouping and Evaluation

    I have a set of data that looks like this:

    ID Value
    12345_12_345 7
    12345_12_345 10
    12346_12_345 9
    12346_12_345 10
    12346_12_345 3
    12347_12_345 3
    12347_12_345 5
    12347_13_345 10
    12347_13_345 3
    12347_13_346 8
    12347_13_346 8

    I need to create a macro that will march through the ID column and identify groups of similar data. Once a group is identified, i need to take the average of the value of that group, print it to a column adjacent to the values, and move to the next group.

    Any thoughts?

  2. #2
    Forum Guru
    Join Date
    08-26-2007
    Location
    London
    Posts
    4,606

    Re: Excel Data Grouping and Evaluation

    Not sure what
    print it to a column adjacent to the values
    this means, but I would investigate pivot tables if I were you.

  3. #3
    Registered User
    Join Date
    10-08-2009
    Location
    Boston, MA
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: Excel Data Grouping and Evaluation

    I've looked into that but i have 60,000 data points in my set. I think given this large value a macro would be able to do the task more efficiently.

  4. #4
    Registered User
    Join Date
    10-08-2009
    Location
    Boston, MA
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: Excel Data Grouping and Evaluation

    "Print to a column adjacent to the set"

    By that I just mean post the value of the group average in the next column.

  5. #5
    Forum Guru
    Join Date
    08-26-2007
    Location
    London
    Posts
    4,606

    Re: Excel Data Grouping and Evaluation

    Irrespective of what you might think, you'll find that pivot tables are probably a very efficient way of doing this.

    If you want someone to provide a macro, I suggest you attach a sample workbook.

+ 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