Average of multiple numbers

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • trish logan
    New Member
    • Jun 2011
    • 2

    Average of multiple numbers

    I am trying to establish an error pattern for a comparison. I want to ask Access to look at my database and if there is an error then I need it to calculate an average of four rates so that I can take that figure to a further calculation. Here is my needed end result: The average of the four rate types times the units equals a total that is compared to another total. I am very new and coming from a business area needing to do IT related work that I am at a loss with.
    Here is the formula:
    Code:
    County Auth Cost: (IIf(([Units Authorized]="1"), Avg(([Auth FT Rate 1)+([Auth FT Rate 2])+([Auth FT Rate 3])+([Auth FT Rate 4])),Null))
    Last edited by NeoPa; Jun 13 '11, 10:59 PM. Reason: Trish: One part was invalid because requesting calculation that was already complete. NeoPa: Added mandatory CODE tags
  • Rabbit
    Recognized Expert MVP
    • Jan 2007
    • 12517

    #2
    I don't understand; you seem to already have the formula.

    Comment

    • trish logan
      New Member
      • Jun 2011
      • 2

      #3
      The formula is not working it says I have invalid arguments.

      Comment

      • Rabbit
        Recognized Expert MVP
        • Jan 2007
        • 12517

        #4
        Did you remember to group by Units Authorized?

        Comment

        • NeoPa
          Recognized Expert Moderator MVP
          • Oct 2006
          • 32634

          #5
          The Avg() function works across a domain of a single field or formula reference across multiple records. It appears you are trying to get the average of four Auth FT Rate fields within a single record. For this there is no function, yet it's a simple formula :- Simply add the values together and divide by four.

          Comment

          Working...