+ Reply to Thread
Results 1 to 3 of 3

Average in Cells

  1. #1
    Forum Contributor
    Join Date
    02-16-2006
    Posts
    200

    Average in Cells

    I am trying to work out a formula which calculates the average of cells in the following scenario -

    Columns F3 to F5 contain formulas which calculate the "days delay" based on figues entered in cells A3/A5 & E3/E5; I would like to calculate the Average of F3 to F5 but only where figures are returned in cells F3/F5 e.g. if all 3 cells are populated you would divide by 3 but I need the formula to recognize that if figures are only present in 2 of the cells, it divides by 2 to get the average.

    Hope this makes sense

  2. #2
    Registered User
    Join Date
    08-17-2006
    Posts
    22
    I think I understand.

    Use the COUNT function to see how many cells are completed (per row) - then divide your total by this new columns value.

    Example, if your data is in A1 to E1 and your total in F1

    =F1\(COUNT(a1:e1))

  3. #3
    Forum Expert oldchippy's Avatar
    Join Date
    02-14-2005
    Location
    Worcester, UK
    MS-Off Ver
    Excel 2007 (Home)
    Posts
    7,097

    Thumbs up

    Quote Originally Posted by martins
    I am trying to work out a formula which calculates the average of cells in the following scenario -

    Columns F3 to F5 contain formulas which calculate the "days delay" based on figues entered in cells A3/A5 & E3/E5; I would like to calculate the Average of F3 to F5 but only where figures are returned in cells F3/F5 e.g. if all 3 cells are populated you would divide by 3 but I need the formula to recognize that if figures are only present in 2 of the cells, it divides by 2 to get the average.

    Hope this makes sense
    Hi martins,

    Try this in F6

    =SUM(F3:F5)/COUNTIF(F3:F5,"<>0")

    this will exclude zero values

    oldchippy

+ 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