Results 1 to 7 of 7

AVERAGEIF: can't get around #DIV/0! error

Threaded View

  1. #1
    Registered User
    Join Date
    07-04-2012
    Location
    Galway, Ireland
    MS-Off Ver
    Excel 2003
    Posts
    4

    AVERAGEIF: can't get around #DIV/0! error

    Hi.

    Forum noob here. Please be gentle.

    I'm trying to get the arithmetic mean of a selection of numbers from a list of 100 values.

    It's a survey of free speeds (motor traffic) and the complete list of numbers comprises 100 speed readings in kilometres per hour.

    The speed limit on the road in question is 50 km/h, so I am trying to obtain (using AVERAGEIF) the mean speed of 'speeders'.

    In other words, I want to calculate the average of all the readings greater than 50.

    The data are in cells B24:B123, worksheet "Readings".

    The reference value (in this instance 50 km/h) is in the user defined variable "speedlimit".

    This is the formula I am using, and which gives the #DIV/0! error: =AVERAGEIF(Readings!B24:B123,">speedlimit")

    I've tried various tweaks, but I always get the same error.

    What am I doing wrong, and how can I fix it?

    Thanks in advance.




    EDIT: Incidentally, if I use =AVERAGEIF(Readings!B24:B123,">50") it works fine. However, I need to be able to have different values for the variable "speedlimit".
    Last edited by dadowai; 07-04-2012 at 03:05 PM.

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