+ Reply to Thread
Results 1 to 6 of 6

Cell being ignored in Average formula

  1. #1
    Registered User
    Join Date
    10-09-2015
    Location
    Illinois, USA
    MS-Off Ver
    2013
    Posts
    8

    Cell being ignored in Average formula

    Hi,

    I have a spreadsheet for an employee review. In each section of the review there is a numerical score assigned 1-5. On another sheet these scores are pulled together and then averaged to give a score for the employee. This average formula is ignoring one of the cells in the range, and I don't know why. I believe it has to do with the fact that the cell contains a formula, that assigns a score based on how many days the employee has missed which is entered in another cell rather then just a numerical value, but it is still displaying the value and not the formula on the second sheet, it just won't add it to the average. For example:

    Employee A Scores:

    Safety: 1
    Job Knowledge: 2
    Adherence to Quality Standards: 1
    Productivity: 2
    Time, Attendance & Dependability: 1
    Communication Skills: 2
    Planning and Organizing: 1
    Working Relationships: 2

    The score for "Time, Attendance, and Dependability" is a result of the employees missing 5 days, determined by this formula:

    =IF(ISBLANK(N39),"",IF(N39>=5,"1",IF(N39>=4,"2",IF(N39>=2,"3",IF(N39>=1,"4",IF(N39>=0,"5",IF))))))

    On the second sheet it collects the scores into a table like so.

    1
    2
    1
    2
    1
    2
    1
    2

    And then averages them (=Average A1:A8) which should give an average of 1.5, but instead ignores the value for the attendance and gives 1.57. If I manually enter a 1 in either the cells for attendance (sheet 1 or 2) then the average works.

    Thanks in advance for any help you can provide.

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: Cell being ignored in Average formula

    Take the " out from around the numbers in your formula. "5" is recognised as being TEXT not a number.
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU

  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
    48,324

    Re: Cell being ignored in Average formula

    As Glenn has said, you are producing Text values. An alternative and shorter formula is:
    Formula: copy to clipboard
    Please Login or Register  to view this content.



    Regards, TMS
    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 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
    48,324

    Re: Cell being ignored in Average formula

    Or, simpler logic:
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    And it's even shorter (but aesthetically less pleasing)


    Regards, TMS

  5. #5
    Registered User
    Join Date
    10-09-2015
    Location
    Illinois, USA
    MS-Off Ver
    2013
    Posts
    8

    Re: Cell being ignored in Average formula

    It works! I figured it was something simple. Thanks.

  6. #6
    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
    48,324

    Re: Cell being ignored in Average formula

    You're welcome. Thanks for the rep.

+ 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. I need a formula for counting the average of every 5th cell please
    By gregori94 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 05-14-2015, 08:10 AM
  2. Is there a formula that will highlight a cell that is below an average
    By Snowwhite969 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-05-2015, 08:46 PM
  3. [SOLVED] need formula to average cells but if one cell has N/A then dont average and input N/A
    By CityInspector in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-08-2013, 04:16 PM
  4. Running average formula (in same cell)
    By wonderdunder in forum Excel General
    Replies: 8
    Last Post: 02-27-2011, 07:03 AM
  5. Formula to calculate average of every other cell
    By froffel in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 11-05-2009, 02:39 PM
  6. Formula to calculate average of every other cell
    By froffel in forum Excel General
    Replies: 1
    Last Post: 10-29-2009, 11:58 AM
  7. Limit a cell with average formula to 100%
    By Tony Vargo in forum Excel General
    Replies: 2
    Last Post: 08-07-2009, 10:19 AM

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