+ Reply to Thread
Results 1 to 4 of 4

Formula to Average if at least X cells have values

  1. #1
    Registered User
    Join Date
    02-21-2014
    Location
    Houston
    MS-Off Ver
    Excel 2010
    Posts
    21

    Formula to Average if at least X cells have values

    I have sets of student scores where one student may only have one score, but another may have 6. I'm looking for a formula that will average the scores only if the student has at least 4, but they could be anywhere in the row. I've gotten it to work where it will not average the score if one value is missing, using a simple IF-AND, but then I lose students with 4 or 5 scores. Any ideas? Thanks!

    See attachment below. If it matters, the way the sheet is set up, those blank cells aren't really blank, but are errors that return a "" value.

    average formula sample.xlsx

  2. #2
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,463

    Re: Formula to Average if at least X cells have values

    Try:
    =IF(COUNT(C2:H2)>=4,AVERAGE(C2:I2),"")
    Quang PT

  3. #3
    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: Formula to Average if at least X cells have values

    Hi,

    One way

    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.

  4. #4
    Registered User
    Join Date
    02-21-2014
    Location
    Houston
    MS-Off Ver
    Excel 2010
    Posts
    21

    Re: Formula to Average if at least X cells have values

    Beauty. Thank you much!

+ 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] Formula to average range of cells only if difference between values is no more than 1
    By aaron85w in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 09-28-2013, 07:12 AM
  2. [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
  3. [SOLVED] Average for non-consecutive cells, excluding zero values.
    By musik7 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 01-29-2013, 06:11 PM
  4. Replies: 5
    Last Post: 10-24-2011, 10:11 AM
  5. How to average cells but exclude 0 values?
    By Billznik in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-27-2008, 06:26 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