+ Reply to Thread
Results 1 to 10 of 10

complex AVG formula

  1. #1
    Registered User
    Join Date
    08-19-2012
    Location
    long beach
    MS-Off Ver
    Excel 2010
    Posts
    18

    complex AVG formula

    Hi everyone,

    I have a table with people's initials and some star ratings they have received. What I need to do is find the total avg for each person. This total will go on sheet 2. If there is no star rating in column E than that avg rating '2' should not be counted toward the total average. Please see the attached excel sheet.

    Not to complicate things but I would also like to count how many star ratings each person has received.

    Thank you for your help,

    Kyle

    Workbook1-sample.xlsx

  2. #2
    Forum Expert
    Join Date
    03-23-2004
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    7,076

    Re: complex AVG formula

    What results are you expecting for Person IP ?
    Regards
    Special-K

    Ensure you describe your problem clearly, I have little time available to solve these problems and do not appreciate numerous changes to them.

  3. #3
    Registered User
    Join Date
    08-19-2012
    Location
    long beach
    MS-Off Ver
    Excel 2010
    Posts
    18

    Re: complex AVG formula

    The avg values I found for IP are:
    2.5
    2.67
    2.5
    2.5
    1.5
    2

    so the (total) avg star rating should be 2.2783
    the number of ratings should be 9

  4. #4
    Forum Expert
    Join Date
    09-01-2012
    Location
    Norway
    MS-Off Ver
    Office 365
    Posts
    2,883

    Re: complex AVG formula

    I'm not sure I follow your logic but I'll take a chance on this.
    Attached Files Attached Files
    <----- If you were helped by my posts you can say "Thank you" by clicking the star symbol down to the left

    If the problem is solved, finish of the thread by clicking SOLVED under Thread Tools
    I don't wish to leave you with no answer, yet I sometimes miss posts. If you feel I forgot you, remind me with a PM or just bump the thread.

  5. #5
    Forum Expert
    Join Date
    03-23-2004
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    7,076

    Re: complex AVG formula

    @koosh1986 : In your original spreadsheet column C is called AVG.

    Are those values ALREADY averages cos mathematically you can't add averages together to produce an overall average.
    If no then I have to query what that column is because it certainly isn't an average so what does it represent?

    https://uk.answers.yahoo.com/questio...6075127AAnfArl

    If they are just ordinary values and you're adding/dividng them to obtain an overall average then thats ok.

    As an example consider this:

    The average of 2,3,4 is 3
    The average of 6,8,13 is 9

    But the average of ALL those values is NOT 12 (3 + 9) it is
    (2+3+4+6+8+13) / 6 = 6

    Hence you CAN'T add averages.
    Last edited by Special-K; 04-22-2014 at 07:32 AM.

  6. #6
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: complex AVG formula

    Hi,

    As Special-K has remarked, if those numbers are themselves averages from a larger data set then mathematically speaking it's not correct to average them without weighting them - i.e. using the original data.

    However

    Formula: copy to clipboard
    Please Login or Register  to view this content.

    will give you the avaerage of those numbers.

    And if you mean the count of the column E star ratings then
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  7. #7
    Forum Expert
    Join Date
    09-01-2012
    Location
    Norway
    MS-Off Ver
    Office 365
    Posts
    2,883

    Re: complex AVG formula

    Hmm... So this makes more sense then?
    Attached Files Attached Files

  8. #8
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: complex AVG formula

    Quote Originally Posted by Jacc View Post
    Hmm... So this makes more sense then?
    Not necessarily

    It all depends on what you are trying to demonstrate. For instance it's not clear to me why you average D2:R2 when seemingly column D is a different category of number to the star ratings that appear in E:R, or at least it carries a different descriptor.

    For instance, take IP as an example.
    If we include column D in the calculation of averages then there are 6 rows, containing 15 numbers totalling 35 giving an average of 2.3333
    However if you simply take the 6 rows and the 6 'averages' you show in column C then the 'average' of those averages is 2.272

    Similarly
    If we use just column E in the calculation of averages then there are 6 rows, containing 6 numbers totalling 15 giving an average of 2.5
    However if you simply take the 6 rows and the 6 'averages' you show in column C then the 6 numbers total 13.6667, giving an 'average' of 2.2777

    The attached shows you what I think you're asking for but whether in the light of the above it's what you actually want is a moot point.
    Attached Files Attached Files

  9. #9
    Registered User
    Join Date
    08-19-2012
    Location
    long beach
    MS-Off Ver
    Excel 2010
    Posts
    18

    Re: complex AVG formula

    Well I obviously looked over a major flaw in my plan. Thank you all for the help!

    Richard, your example sheet seems to work great except when totaling the stars for each person (sheet 2, columns e to g) your formula only looks at column E. Is it possible to change this to include column E to Z?

    =COUNTIFS(Sheet1!$A$2:$A$115,Sheet2!$A2,Sheet1!$E$2:$E$115,"<>",Sheet1!$E$2:$E$115,3)


    Thank you again,
    Kyle

  10. #10
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: complex AVG formula

    Hi,

    See attached.

    And just to throw another Q. in to the pot. In terms of the average star rating should a rating of 3 be given more weight than a rating of 1?
    For instance currently IP on row 2 returns an average of 2.5 being the sum of 10 divided by 4 values.

    If the ratings were weighted so the you had 2,2,3,3,3,3,3,3,2,2, A sum of 26 divided by a count of 10 the average would be 2.6.
    Attached Files Attached Files

+ 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. [SOLVED] Complex IF Formula
    By tomvh444 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 02-12-2014, 10:31 AM
  2. Complex IF Formula
    By elanum in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-26-2013, 09:16 AM
  3. [SOLVED] Complex if formula help
    By davisfs2007 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 09-15-2012, 03:14 PM
  4. complex formula?
    By spinkung in forum Excel General
    Replies: 1
    Last Post: 12-22-2009, 05:20 AM
  5. Help with a complex formula
    By frank.freeman in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 10-03-2005, 02:05 AM

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