+ Reply to Thread
Results 1 to 6 of 6

Averages with formulas in the empty cell

  1. #1
    Registered User
    Join Date
    07-21-2010
    Location
    Portsmouth England
    MS-Off Ver
    Excel 2000
    Posts
    3

    Averages with formulas in the empty cell

    Hi Everyone, Can use some help here

    using Excel 2000

    =AVERAGE(L7:L18) doesnt work if an empty cell has formulas in

    Calculating an average from 12 cells that contain a total from each month, each cell is Jan , Feb ect, and has a formula in eg =SUM(L7)/4 Feb’s is =SUM(L8)/4 March’s is =SUM(L9)/5 and so on through the rest of the year the /4 or /5 is the number of weeks in that month to give a average for that month.

    This gives me a results in column L7 through to L18

    In options I have unchecked the Zero value's. but because there is a formula in each of the empty cells the AVERAGE formula calculates all 12 cells not just the populated ones.I need a formula that ignors any hidden formulas.

    e.g. Jan’s average total is 15, Feb’s is 14.4, March is 18 but the calculation returns a figure of 3.95 not 15.8. for a running average. can anyone help?
    Last edited by tannedman; 07-21-2010 at 04:07 PM.

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

    Re: Averages with formulas in the empty cell

    Maybe

    =SUMIF(L7:L18,"<>0")/COUNTIF(L7:L18,"<>0")

    or

    =AVERAGE(IF(L7:L18<>0,L7:L18)) confirmed with CTRL+SHIFT+ENTER not just ENTER
    Last edited by NBVC; 07-21-2010 at 03:57 PM. Reason: incorrect cell reference
    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.

  3. #3
    Registered User
    Join Date
    07-21-2010
    Location
    Portsmouth England
    MS-Off Ver
    Excel 2000
    Posts
    3

    Re: Averages with formulas in the empty cell

    Bingo, the second formula did the Trick,
    Which part did the existing formula ommission?

    ....many thanks NBVC.
    Great Forum.

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

    Re: Averages with formulas in the empty cell

    Which part did the existing formula ommission?
    sorry? What's the question again?

  5. #5
    Registered User
    Join Date
    07-21-2010
    Location
    Portsmouth England
    MS-Off Ver
    Excel 2000
    Posts
    3

    Re: Averages with formulas in the empty cell

    I can see the entry to ignor the zero but which part of your formula ignors anything else in the cell like the existing hidden formula?

    Cheers anyway, i just like to know why and how things do what they do, or why not.

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

    Re: Averages with formulas in the empty cell

    All the formula does is omit 0's (and results of formulas that equal 0).... It doesn't ignore the actual formulas....

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

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