+ Reply to Thread
Results 1 to 3 of 3

find the average of B correspond to their A

  1. #1
    Registered User
    Join Date
    08-23-2007
    Posts
    7

    find the average of B correspond to their A

    Hi all
    I need to find the average B values corresponding to the same A and input it in C. Something like what is shown below:



    A B C
    1 1 (1+2+3)/3
    1 2
    1 3
    2 5 (5+1+2)/3
    2 1
    2 2
    3 6 6
    4 7 (7+6+9)/3
    4 6
    4 9


    However, I have a long list of numbers (A rangers sequentially from 1 to 25000) So I am looking for a function that will auto go down the list to compute the C values.


    Thanks =)

  2. #2
    Registered User
    Join Date
    08-12-2007
    Location
    United Sates
    MS-Off Ver
    Office 365, PC
    Posts
    29
    Will the values in 'A' always be in increasig order like they are in your example? Or will they ever be mixed up like this?:

    A B
    1 1
    4 9
    1 3
    2 5
    4 6
    1 2
    2 1
    2 2
    3 6
    4 7

  3. #3
    Registered User
    Join Date
    08-23-2007
    Posts
    7
    hi!

    A will always be in increasing order. =)

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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