+ Reply to Thread
Results 1 to 6 of 6

Thread: Ignore values over an average.

  1. #1
    Registered User
    Join Date
    09-20-2008
    Location
    Silsden
    Posts
    3

    Ignore values over an average.

    Hey,

    I'm creating a spreadsheat to monitor my workouts and have hit a niggle I can't find the code for. I've searched all over.

    I have basically rows of infornmation from each workout covering time, distance, speed, heartrate and so on. I also have some boxes to the side that use the information from each field and show quick easy information for me such as my average speed over the period and so on.

    The problem is I am trying to make it show average speed and have a simple =AVERAGE(C2:C9999) sum in the box. This is all well BUT I have information from short power sessions and longer mileage rides and would like to make the average ignore the low value distances.

    Does anybody have an idea of a formular that would calculate an average using only the values over 50 for example? I've tried some stuff with the >50 and IF rules but can't hit one that works.

    I would just tell it to look at specific values but it updates so often it would be nice to get it on auto!

    Thanks in advance.
    Last edited by samuelhorton; 09-20-2008 at 03:41 PM. Reason: Error in typing.

  2. #2
    Forum Guru
    Join Date
    12-24-2004
    Location
    Sweden
    Posts
    1,102
    One option is to use this formula: =SUMPRODUCT((C2:C9999)*(D2:D9999>50))/SUMPRODUCT(--(D2:D9999>50))
    Another option is to use Autofilter for all values >50 and a formula that says =SUBTOTAL(1,C2:C9999)

    HTH
    Ola

  3. #3
    Registered User
    Join Date
    09-20-2008
    Location
    Silsden
    Posts
    3
    Firstly thankyou for the quick reply and the help.

    Sorry, I'm a little lost as to where the D comes in... should they be C too?!

    Also this gives me a value closer to the average of values over 50, but not actually it. It should be 77.29 and it's reading 59.25. Not sure what the seccond sugestion means to be honest.
    Last edited by samuelhorton; 09-20-2008 at 05:22 PM.

  4. #4
    Forum Guru martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    10,806
    try
    =SUMIF(C1:C9999,">50")/COUNTIF(C1:C9999,">50")

  5. #5
    Registered User
    Join Date
    09-20-2008
    Location
    Silsden
    Posts
    3
    I just get #NAME?

    Nevermind, I've simply created a seperate columb just for mileage over 50... simple but effective...

  6. #6
    Valued Forum Contributor
    Join Date
    08-26-2008
    Location
    singapore
    Posts
    618
    This will be working for you

    
    =SUMIF(C1:C9999,">50")/MAX(COUNTIF(C1:C9999,">50"),1)

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Average ignore #DIV/0! error
    By blackstar in forum Excel General
    Replies: 5
    Last Post: 10-26-2011, 05:45 AM
  2. How to Add Values in Average Formula
    By JK1234 in forum Excel Worksheet Functions
    Replies: 1
    Last Post: 07-30-2008, 01:49 PM
  3. average values if month equals?
    By joshepting in forum Excel Worksheet Functions
    Replies: 3
    Last Post: 02-17-2007, 01:16 PM
  4. Determining the average of the 50 largest values in a column
    By NondestructiveT in forum Excel Worksheet Functions
    Replies: 8
    Last Post: 01-01-2007, 09:28 AM
  5. Replies: 7
    Last Post: 11-17-2006, 07:02 AM

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