+ Reply to Thread
Results 1 to 4 of 4

Working out averages and ignoriong errors

  1. #1
    Forum Contributor
    Join Date
    09-23-2010
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    346

    Working out averages and ignoriong errors

    Good afternoon,

    I have two columns (F and G), some have a value in and some do not. I want to work out the average of the two columns, so am using:

    =AVERAGE(F4:G4)

    However, on the row where the values are empty in columns F and G it gives an error message. How can I make it so the cell will just appear blank rather than have a message in?

    Many thanks
    Last edited by Cmorgan; 12-09-2011 at 12:11 PM.

  2. #2
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675

    Re: Working out averages and ignoriong errors

    Try this for any excel version

    =IF(COUNT(F4:G4),AVERAGE(F4:G4),"")

    or in Excel 2007 or later

    =IFERROR(AVERAGE(F4:G4),"")
    Audere est facere

  3. #3
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Working out averages and ignoriong errors

    Try:

    =IFERROR(AVERAGE(F4:G4),"")
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  4. #4
    Forum Contributor
    Join Date
    09-23-2010
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    346

    Re: Working out averages and ignoriong errors

    Many thanks

+ 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