+ Reply to Thread
Results 1 to 3 of 3

using AVERAGEIF with AND function

  1. #1
    Registered User
    Join Date
    08-20-2007
    Posts
    10

    using AVERAGEIF with AND function

    Hi,

    I have a lot of data that I am trying to graph and I would like to compartmentalize them into groups within certain size ranges, i.e. every 10 units. (I am trying to achieve a sort of smoothing effect/cleanup for the graphs.) I made a separate column (column GP) where I sequentially listed the values I would like to use for the criteria, but I keep getting the #DIV/0! error when I enter the formulas. Here's what I need to do:

    -data are between 50-1200
    -I want to average the units into a single value for every 10 units, i.e. >=50 but <60, >=60 but <70, etc., all the way to 1200. I want to reference the values in the criteria column (50, 60, 70,...,1200) so I can fill down instead of having to manually enter every increment of 10.
    -My formula: =AVERAGEIF(G3:GL487,AND(">=GP3","<GP4"))

    I am stumped as to why this isn't working. Any help would be immensely appreciated.

    Thanks in advance!

    Jenny

  2. #2
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    Microsoft 365
    Posts
    14,800

    Re: using AVERAGEIF with AND function

    Hello Jenny,

    For multiple conditions you need AVERAGEIFS function, (with an S) and you need to specify the range for each criteria so it sounds like you want this

    =AVERAGEIFS(G$3:GL$487,G$3:GL$487,">="&GP3,G$3:GL$487,"<="&GP4)
    Audere est facere

  3. #3
    Registered User
    Join Date
    08-20-2007
    Posts
    10

    Re: using AVERAGEIF with AND function

    This formula works perfectly. Thank you!

+ 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