+ Reply to Thread
Results 1 to 11 of 11

How to have ISBLANK, IFERROR and Average together in formula.

  1. #1
    Forum Contributor
    Join Date
    01-09-2016
    Location
    USA,USA
    MS-Off Ver
    2016
    Posts
    1,192

    How to have ISBLANK, IFERROR and Average together in formula.

    =IF(ISBLANK(A6),"",AVERAGE(Q6:Q723))

    But I want something like =IF(ISBLANK(A6),"",IFERROR(AVERAGE(Q6:Q723)""))

    I know I screwed that up, but I want the cell to be blank if A6 is blank or if no error to average, or if error, be blank.

  2. #2
    Valued Forum Contributor
    Join Date
    02-07-2013
    Location
    Philippines
    MS-Off Ver
    Excel Online; 365
    Posts
    610

    Re: How to have ISBLANK, IFERROR and Average together in formula.

    Try:

    =IFERROR(IF(A6="","",AVERAGE(Q6:Q723)),"")
    If I've helped U pls click on d *Add Reputation

  3. #3
    Valued Forum Contributor
    Join Date
    01-16-2012
    Location
    England
    MS-Off Ver
    MS 365
    Posts
    1,394

    Re: How to have ISBLANK, IFERROR and Average together in formula.

    Have you tried combining them?

    =IF(or(ISBLANK(A6),IFERROR(AVERAGE(Q6:Q723))),"",AVERAGE(Q6:Q723))

    Ochimus

  4. #4
    Forum Contributor
    Join Date
    01-09-2016
    Location
    USA,USA
    MS-Off Ver
    2016
    Posts
    1,192

    Re: How to have ISBLANK, IFERROR and Average together in formula.

    "Entered too few arguments for this function"

  5. #5
    Forum Contributor
    Join Date
    01-09-2016
    Location
    USA,USA
    MS-Off Ver
    2016
    Posts
    1,192

    Re: How to have ISBLANK, IFERROR and Average together in formula.

    I would like to do the same thing for this

    Please Login or Register  to view this content.
    so, remain blank if an error.

  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: How to have ISBLANK, IFERROR and Average together in formula.

    Like this...

    =IFERROR(IF(B7=0,"",COUNTIF(E7:Q7,"No")/COUNTA(E7:Q7)),"")
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  7. #7
    Forum Contributor
    Join Date
    01-09-2016
    Location
    USA,USA
    MS-Off Ver
    2016
    Posts
    1,192

    Re: How to have ISBLANK, IFERROR and Average together in formula.

    If I do

    =IFERROR(IF(B7=0,"",AVERAGE(S7:S51)),"")

    then I get a #NAME error now.

  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: How to have ISBLANK, IFERROR and Average together in formula.

    What version of Excel are you trying that formula in?

    IFERROR requires Excel 2007 or later.

  9. #9
    Forum Contributor
    Join Date
    01-09-2016
    Location
    USA,USA
    MS-Off Ver
    2016
    Posts
    1,192

    Re: How to have ISBLANK, IFERROR and Average together in formula.

    I am using 2016

  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: How to have ISBLANK, IFERROR and Average together in formula.

    =IFERROR(IF(B7=0,"",AVERAGE(S7:S51)),"")
    There's nothing wrong with the formula.

    I don't have Excel 2016 to test it in but it works in Excel 2007, 2010 and 2013.

  11. #11
    Valued Forum Contributor
    Join Date
    01-16-2012
    Location
    England
    MS-Off Ver
    MS 365
    Posts
    1,394

    Re: How to have ISBLANK, IFERROR and Average together in formula.

    Taylorsm,

    For your original problem, following formula makes cell blank if either A6 is blank, or "averaging" Q6:Q723 generates an error.

    Otherwise it shows the average of Q6:Q723:

    =IF(OR(A6="",ISERR(AVERAGE(Q6:Q10))),"",AVERAGE(Q6:Q10))

    Ochimus

+ 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] =sum / =ISBlank / =iferror formula needed (or some alternative)
    By KClem in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 03-02-2016, 08:21 AM
  2. Incorrect Average due to IfError formula
    By dreamer001 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 01-18-2016, 05:45 PM
  3. [SOLVED] ISBLANK formula that goes off of IFERROR formula
    By BoundToExcel in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 01-06-2016, 04:18 PM
  4. [SOLVED] Better way, IsBlank and Vlookup & Iferror
    By jtmeunier in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 11-27-2013, 06:51 PM
  5. Replies: 5
    Last Post: 06-19-2012, 04:37 PM
  6. [SOLVED] IFERROR / ISBLANK formula query
    By zhb12810 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-04-2012, 04:05 AM
  7. Help with ISBLANK function referring to a cell with another ISBLANK formula
    By camdameron in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 03-23-2011, 12:45 PM

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