+ Reply to Thread
Results 1 to 10 of 10

Average array formula to conitinue calculating even if one of cells or many are empty

  1. #1
    Registered User
    Join Date
    02-19-2011
    Location
    Cairo
    MS-Off Ver
    Excel 2010
    Posts
    60

    Average array formula to conitinue calculating even if one of cells or many are empty

    Hello All,

    I have a formula of average array which is working good, but if one of cells or more are empty it won't work at all

    the formula
    Please Login or Register  to view this content.
    i would like to be able to calculate the average even if cell (B16) and or (C16) and or (D16)...etc are blank cells
    Any idea?

    Thanks in advance

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,714

    Re: Average array formula to conitinue calculating even if one of cells or many are empty

    As you are using XL2010, you can use the AVERAGEIFS function - no need for an array function, and it will ignore blank cells.

    Hope this helps.

    Pete

  3. #3
    Registered User
    Join Date
    02-19-2011
    Location
    Cairo
    MS-Off Ver
    Excel 2010
    Posts
    60

    Re: Average array formula to conitinue calculating even if one of cells or many are empty

    Thanks Pete, yes i use XL2010
    i did it like that : =AVERAGEIFS(SOURCE!N2:N21900,SOURCE!A2:A21900,SOURCE!A2:A21900=B16,SOURCE!B2:B21900,SOURCE!B2:B21900=C16)
    but it doesn't work!
    N2:N21900 ... is the Average_range,
    please help,
    thanks

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

    Re: Average array formula to conitinue calculating even if one of cells or many are empty

    Quote Originally Posted by Pete_UK View Post
    As you are using XL2010, you can use the AVERAGEIFS function - no need for an array function, and it will ignore blank cells.
    I think they meant if the criteria cells are empty just ignore them.

    This monster array formula** should do it:

    =AVERAGE(IF((IF(B16="",Source!A2:A21637=Source!A2:A21637,Source!A2:A21637=B16))*(IF(C16="",Source!B2:B21637=Source!B2:B21637,Source!B2:B21637=C16))*(IF(D16="",Source!C2:C21637=Source!C2:C21637,Source!C2:C21637=D16))*(IF(E16="",Source!D2:D21637=Source!D2:D21637,Source!D2:D21637=E16)),Source!N2:N21637))

    ** 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.

  5. #5
    Registered User
    Join Date
    02-19-2011
    Location
    Cairo
    MS-Off Ver
    Excel 2010
    Posts
    60

    Re: Average array formula to conitinue calculating even if one of cells or many are empty

    THANKS Tony, this is exactly what i want

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

    Re: Average array formula to conitinue calculating even if one of cells or many are empty

    You're welcome. Thanks for the feedback!

  7. #7
    Registered User
    Join Date
    02-19-2011
    Location
    Cairo
    MS-Off Ver
    Excel 2010
    Posts
    60

    Re: Average array formula to conitinue calculating even if one of cells or many are empty

    Hello Tony,
    Can we make same formula to ignore cells with 0 while calculating the average from the average range?
    something like "<>0" with AverageIF ?

    thanks a lot

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

    Re: Average array formula to conitinue calculating even if one of cells or many are empty

    Like this...

    =AVERAGE(IF((IF(B16="",Source!A2:A21637=Source!A2:A21637,Source!A2:A21637=B16))*(IF(C16="",Source!B2:B21637=Source!B2:B21637,Source!B2:B21637=C16))*(IF(D16="",Source!C2:C21637=Source!C2:C21637,Source!C2:C21637=D16))*(IF(E16="",Source!D2:D21637=Source!D2:D21637,Source!D2:D21637=E16))*(Source!N2:N21637<>0),Source!N2:N21637))

    Still array entered.

  9. #9
    Registered User
    Join Date
    02-19-2011
    Location
    Cairo
    MS-Off Ver
    Excel 2010
    Posts
    60

    Re: Average array formula to conitinue calculating even if one of cells or many are empty

    wow, perfect,
    thanks a ton

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

    Re: Average array formula to conitinue calculating even if one of cells or many are empty

    You're welcome!

+ 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. Replies: 2
    Last Post: 05-04-2013, 05:47 PM
  2. Replies: 10
    Last Post: 04-25-2013, 06:12 PM
  3. Replies: 0
    Last Post: 01-22-2013, 12:22 PM
  4. The rank of average ranks excluding empty cells but including their average.
    By Terminal45 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 10-21-2012, 03:44 AM
  5. Replies: 0
    Last Post: 10-02-2012, 02:21 AM
  6. Average Formula Excluding Empty Cells
    By Alhazred in forum Excel General
    Replies: 5
    Last Post: 03-21-2008, 08:31 AM
  7. average formula ingoring empty cells
    By jenparker1234 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-11-2006, 11:42 PM
  8. Replies: 1
    Last Post: 09-15-2005, 08:05 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