+ Reply to Thread
Results 1 to 4 of 4

Thread: Working out averages and ignoriong errors

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

    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 11:11 AM.

  2. #2
    Forum Moderator daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2007
    Posts
    10,057

    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 Guru NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    32,636

    Re: Working out averages and ignoriong errors

    Try:

    =IFERROR(AVERAGE(F4:G4),"")
    Microsoft MVP - Excel

    Where there is a will there are many ways. Pick One!


    Please read the Forum Rules

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

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

    Preferred Charities: Lupus Canada and Sick Kids Foundation.
    Feel Free to Donate if you want to, for the assistance you received today.

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

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