+ Reply to Thread
Results 1 to 9 of 9

ignore empty data across a range

Hybrid View

  1. #1
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: ignore empty data across a range

    with helper columns to give days 1-365 col f and one to count non null values col g then use averageif as in col e (note its an array formula confirmed with ctrl+shift+enter)
    if you dont want the extra column g
    use
    =IF(SUMPRODUCT(--(B1:B8760=F1),--(D1:D8760<>-9999))>21,AVERAGE(IF(B1:B8760=F1,D1:D8760)),"less than 22 non null values") in col e instead (again array entered)
    see my sig on how to enter arrays
    Attached Files Attached Files
    Last edited by martindwilson; 07-23-2009 at 07:53 AM.
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  2. #2
    Registered User
    Join Date
    07-09-2009
    Location
    Michigan, USA
    MS-Off Ver
    Excel 2003
    Posts
    11

    Re: ignore empty data across a range

    Great, that's very helpful; thank you! However, I've encountered one strange problem: the formula works - clicking the "fx" button brings up the "function arguments" window and the result is correct. However, in the cell it shows up as a zero. Any ideas on what could be wrong? I've tried changing the formatting and extending the width of the column, but neither works.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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