+ Reply to Thread
Results 1 to 5 of 5

Error when averaging empty & non empty cells

  1. #1
    Registered User
    Join Date
    02-18-2013
    Location
    England
    MS-Off Ver
    Excel 2003
    Posts
    17

    Error when averaging empty & non empty cells

    Hi

    I have been helped on another post with a problem averaging only unique figures from a column. (I've only started this new one so new viewers don't have to wade through all my posts in the old one)

    I am using the array formula =AVERAGE(IF(FREQUENCY(A2:A31,A2:A31),A2:A31)) which has worked brilliantly but only if there are less than two blank cells in the list.

    My problem is that I will be starting each month with a blank list and adding to it each day so the formula as is will only work on the penultimate day of the month.

    Could someone please help? I am using Excel 2013.

    Thank you.
    Attached Files Attached Files

  2. #2
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Error when averaging empty & non empty cells

    Try =SUBTOTAL(101,B4:B33)
    If you like my answer please click on * Add Reputation
    Don't forget to mark threads as "Solved" if your problem has been resolved

    "Nothing is so firmly believed as what we least know."
    --Michel de Montaigne

  3. #3
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Error when averaging empty & non empty cells

    Here's the other thread:

    http://www.excelforum.com/excel-form...lues-only.html

    And here's the array formula** updated for the different ranges:

    =AVERAGE(IF(FREQUENCY(IF(B4:B33<>"",MATCH(B4:B33,B4:B33,0)),ROW(B4:B33)-ROW(B4)+1),B4:B33))

    ** array formulas need to be entered using the key
    combination of CTRL,SHIFT,ENTER (not just ENTER).
    Hold down both the CTRL key and the SHIFT key
    then hit ENTER.
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  4. #4
    Registered User
    Join Date
    02-18-2013
    Location
    England
    MS-Off Ver
    Excel 2003
    Posts
    17

    Re: Error when averaging empty & non empty cells

    Thank you Tony

    You've cracked it! Great job!

  5. #5
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Error when averaging empty & non empty cells

    You're welcome. Thanks for the feedback!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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