+ Reply to Thread
Results 1 to 5 of 5

Show cell empty if result is an error due to empty source

  1. #1
    Registered User
    Join Date
    10-07-2016
    Location
    Lincolnshire
    MS-Off Ver
    2010
    Posts
    15

    Show cell empty if result is an error due to empty source

    Hi all,

    I have a sheet which looks at three cells and produces either the MODE or AVERAGE depending on the three numbers. I'm using the formula:

    =IFERROR(MODE(Q13:S13),AVERAGE(Q13:S13))

    When I copy the formula down through rows I get an error (#DIV/0!) if say Q14 is empty.

    I've tried =IF(ISERROR(Q14,"",IFERROR(MODE(Q14:S14),AVERAGE(Q14:S14)))

    but it says there's an error in the formula. I've also tried using =ISERROR but get the same result.

    Any ideas?

    TIA

    Jack

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

    Re: Show cell empty if result is an error due to empty source

    Try this...

    =IFERROR(MODE(Q13:S13),IFERROR(AVERAGE(Q13:S13),""))
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  3. #3
    Forum Expert
    Join Date
    10-10-2016
    Location
    Sheffield
    MS-Off Ver
    365 and rarely 2016
    Posts
    3,212

    Re: Show cell empty if result is an error due to empty source

    if Q14:S14 are all empty or non numeric you will get an error, if this is the case what value do you wish to return? =IFERROR(MODE(Q13:S13),IFERROR(AVERAGE(Q13:S13)),"What do you want to display?")

    Dav

  4. #4
    Registered User
    Join Date
    10-07-2016
    Location
    Lincolnshire
    MS-Off Ver
    2010
    Posts
    15

    Re: Show cell empty if result is an error due to empty source

    That got it Tony, thanks!

  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: Show cell empty if result is an error due to empty source

    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)

Similar Threads

  1. [SOLVED] excel 2010 empty a cell according to other cells (without Deleting them just show empty)
    By pavlos_x in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-11-2015, 01:46 PM
  2. [SOLVED] Show result Cell as Empty If.....
    By JRidge in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-24-2014, 04:56 AM
  3. Formula shows #value! error when source cell is empty
    By tstowe in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-16-2012, 10:22 AM
  4. Replies: 3
    Last Post: 03-24-2011, 11:02 AM
  5. show empty cell if result is more than 20
    By fargobride in forum Excel General
    Replies: 4
    Last Post: 10-24-2009, 09:14 PM
  6. Macro to Find any empty cell within a range and show result in another column
    By acsishere in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-25-2008, 11:32 AM
  7. [SOLVED] When I SUM cells & 1 is empty I need the result to be empty not 0
    By Maribel in forum Excel General
    Replies: 1
    Last Post: 08-01-2005, 08:05 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