+ Reply to Thread
Results 1 to 7 of 7

Another Average or AverageIf Issue

  1. #1
    Registered User
    Join Date
    07-10-2008
    Location
    West Palm Beach
    MS-Off Ver
    2007
    Posts
    41

    Another Average or AverageIf Issue

    I've got a spreadsheet that shows the averages of riders per revenue hour. First, I don't like averaging a row of averages, but you gotta do what you gotta do. But there are some routes that we've eliminated or changed and so won't have any more entries. Because of history, I've got to leave them on the sheet. When I average the column, it counts the blanks or zeros. Apparently, I'm doing something wrong, because I can't get the averageif to work here. Can you help? For example, row 44 should be the average of rows 6-42. But of course, without the blank cells. Thanks Excel 2007

    Scarames
    Attached Files Attached Files
    Last edited by NBVC; 08-18-2009 at 11:42 AM.

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

    Re: Another Average or AverageIf Issue

    Does this work for you?

    =AVERAGEIF(B6:B42,">0")
    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
    Forum Moderator daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,676

    Re: Another Average or AverageIf Issue

    Your existing formula seems OK to me. AVERAGE function ignores blank cells anyway, you'd only need AVERAGEIF if you have zeroes in there, which you don't

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

    Re: Another Average or AverageIf Issue

    I assumed based on this:

    it counts the blanks or zeros
    that there may be zeroes... so safeway...

    Also, the grey cells in column K are hidden 0's..

  5. #5
    Registered User
    Join Date
    07-10-2008
    Location
    West Palm Beach
    MS-Off Ver
    2007
    Posts
    41

    Re: Another Average or AverageIf Issue

    DaddyLongLegsUnfortunately it didn't work tho, the average of 18.06 was incorrect. When I manually took out the empty cells I would get a different answer. That's why I wanted the correct formula.

  6. #6
    Registered User
    Join Date
    07-10-2008
    Location
    West Palm Beach
    MS-Off Ver
    2007
    Posts
    41

    Re: Another Average or AverageIf Issue

    Quote Originally Posted by NBVC View Post
    Does this work for you?

    =AVERAGEIF(B6:B42,">0")

    This works with the same answer I'd get if I manually took out the blanks or zeros. Thanks so much, I must have just been missing an argument somewhere.

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

    Re: Another Average or AverageIf Issue

    If you are satisfied with the solution(s) provided, please mark your thread as Solved.

    How to mark a thread Solved
    Go to the first post
    Click edit
    Click Go Advanced
    Just below the word Title you will see a dropdown with the word No prefix.
    Change to Solved
    Click Save

+ 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