+ Reply to Thread
Results 1 to 5 of 5

Working out an average based on a previous cell contents

  1. #1
    Registered User
    Join Date
    07-08-2008
    Location
    Australia
    Posts
    3

    Working out an average based on a previous cell contents

    I Am trying to work out averages based on whats in another cell

    example:
    A B
    1 Name 1 | 3.33
    2 Name 2 | 3.26
    3 Name 3 | 3.32
    4 Name 2 | 6.26
    5 Name 1 | 3.32


    Name 1 | So here would be average of B1 and B5
    Name 2 | So here would be average of B2 and B4
    Name 3 | So here would be average of B3 (yes I know can't be an average of just 1 number this is just example)


    Problem is Both A and B can change so next time could be

    A B
    1 Name 2 | 3.68
    2 Name 3 | 3.99
    3 Name 1 | 3.48
    4 Name 2 | 5.10
    5 Name 3 | 1.01


    Name 1 | So here would be average of B3
    Name 2 | So here would be average of B1 and B4
    Name 3 | So here would be average of B3 and B5

    Any help would be greatly appreciated Thanks

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898
    Try something like

    =Average(IF($A$1:$A$10="Name1",$B$1:$B$10))

    adjust ranges to suit and replace "Name1" with actual cell reference housing the text string to match....

    Note: This is an array formula and must be confirmed with CTRL+SHIFT+ENTER not just ENTER.. you will see { } brackets appear around the formula.
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Registered User
    Join Date
    07-08-2008
    Location
    Australia
    Posts
    3
    Ok I tried that and as all it shows in the result area is #NAME
    I have included a test file so you can view if that would help
    Attached Files Attached Files

  4. #4
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898
    See attached...
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    07-08-2008
    Location
    Australia
    Posts
    3
    Awesome Thanks Worked Perfectly

+ 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