+ Reply to Thread
Results 1 to 14 of 14

Average of numbers not correct

  1. #1
    Registered User
    Join Date
    12-14-2013
    Location
    US
    MS-Off Ver
    Excel 2011
    Posts
    55

    Average of numbers not correct

    In the attached spreadsheet I have 2 averages.

    In column B I have the main numbers. B29 produces the average of that number

    I used a simple subtraction in column C to get the difference between each row and B29 (variance).

    I wanted to find the average of column C, but for some reason AVERAGE is not working (C29).

    If I manually type out the numbers in column C, AVERAGE works correctly. But for some reason, I think because the value of cells in column C are the product of a formula, its not working for the AVERAGE in C29. Any thoughts?
    Attached Files Attached Files

  2. #2
    Registered User
    Join Date
    12-14-2013
    Location
    US
    MS-Off Ver
    Excel 2011
    Posts
    55

    Re: Average of numbers not correct

    If I manually type out each number, the AVERAGE function returns -.12 which is correct. But I'm confused why C29 does not work in the attachment.

  3. #3
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,463

    Re: Average of numbers not correct

    Looks like it should be -2/17 = -0.117647059

    Guessing there are digits after the decimal point that we're not seeing. Viewing on an iPad so I can't see the formulae.
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  4. #4
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,316

    Re: Average of numbers not correct

    I get the same exact average for column C even when I paste the numbers in column D as values. Maybe you can tell use what you think it should be.

    As Trevor pointed out, the average is not 0, there are decimal places.
    HTH
    Regards, Jeff

  5. #5
    Registered User
    Join Date
    12-14-2013
    Location
    US
    MS-Off Ver
    Excel 2011
    Posts
    55

    Re: Average of numbers not correct

    B29 is =AVERAGE(B11:B27)

    C11 is =B11-B29
    C12 is =B12-B29
    and so on

    C29 is =AVERAGE(C11:C27)

  6. #6
    Registered User
    Join Date
    12-14-2013
    Location
    US
    MS-Off Ver
    Excel 2011
    Posts
    55

    Re: Average of numbers not correct

    Quote Originally Posted by jeffreybrown View Post
    I get the same exact average for column C even when I paste the numbers in column D as values. Maybe you can tell use what you think it should be.
    C29 in the attachment is coming back as 0. It shouldn't be that. I want to keep column C as the difference between B29 and values in each row of B.

  7. #7
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: Average of numbers not correct

    Withdrawn by FR. Failed to refresh before posting.
    Dave

  8. #8
    Registered User
    Join Date
    12-14-2013
    Location
    US
    MS-Off Ver
    Excel 2011
    Posts
    55

    Re: Average of numbers not correct

    Could it be the zeros throwing it off?

  9. #9
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: Average of numbers not correct

    I think your formula is working. The formatting in the upload is misleading. Those cells are set to Number with 0 places. Try setting to General. The decimals reveal.

    Does that help?

  10. #10
    Registered User
    Join Date
    12-14-2013
    Location
    US
    MS-Off Ver
    Excel 2011
    Posts
    55

    Re: Average of numbers not correct

    Yes the true value of B29 is 17.88etc, but I want everything to be treated as a whole number.

    Even if I set every value to general, C29 returns -4.1796etc which is also incorrect.

  11. #11
    Registered User
    Join Date
    12-14-2013
    Location
    US
    MS-Off Ver
    Excel 2011
    Posts
    55

    Re: Average of numbers not correct

    If I make C29 show 20 decimals, it produces a number at digit 16. So I guess the true value of each cell, decimals and all, are close enough to 0.

    However, is there a way to have the formulas produce only rounded digits and not just 'visually' ? Meaning the formulas will use the rounded result, rather than the true number. IE B29 will be treated as 18 and not 17.88 in formulas

  12. #12
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: Average of numbers not correct

    Yes. ROUND(cell,0). Just be sure to do the rounding at the appropriate step. For example. =ROUND(AVERAGE(B11:B27),0).

    Edit Although you didn't ask try changing the formula in 'Variance' to =B11-$B$29 and fill down. It will save a lot of manual input.
    Last edited by FlameRetired; 01-23-2019 at 08:21 PM. Reason: after thoughts

  13. #13
    Registered User
    Join Date
    12-14-2013
    Location
    US
    MS-Off Ver
    Excel 2011
    Posts
    55

    Re: Average of numbers not correct

    Great thanks, the 17.88 versus the 18 was the issue. I just wasn't immediately aware of it since I had the formatting to 0 decimals.

  14. #14
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: Average of numbers not correct

    You are welcome. Glad to help. Thank you for the feedback, added rep and marking your thread Solved.

+ 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. average formula not correct
    By [email protected] in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-03-2017, 03:09 PM
  2. [SOLVED] Insert row numbers into column A, reflect correct row numbers when I add or delete rows
    By jcambell in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-31-2015, 02:18 PM
  3. Replies: 8
    Last Post: 06-28-2014, 03:26 PM
  4. Replies: 14
    Last Post: 06-14-2013, 09:00 PM
  5. displaying numbers whoes average is as close prefered average.
    By aakhan107 in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 11-18-2012, 01:14 AM
  6. Replies: 12
    Last Post: 04-24-2011, 05:45 PM
  7. Correct Use of Average when using sumproduct?
    By cmf0106 in forum Excel General
    Replies: 2
    Last Post: 11-21-2009, 04:09 PM

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