+ Reply to Thread
Results 1 to 3 of 3

AVERAGEIFS using a cell reference in the criteria

  1. #1
    Registered User
    Join Date
    01-09-2012
    Location
    Modesto, CA
    MS-Off Ver
    Excel 2007
    Posts
    9

    AVERAGEIFS using a cell reference in the criteria

    Using the formula =AVERAGEIFS(WORKSHEET!V5:V35,WORKSHEET!B5:B35,">=A43",WORKSHEET!B5:B35,"<=C43") returns a #DIV0! error. I need to average the numbers in column V that fall into the date range between cells A43 and c43. The problem appears to be with using ">=A43" and "<=C43" because if i substitute numbers for the cell reference it works.
    Last edited by John007; 01-10-2012 at 06:28 PM.

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,447

    Re: AVERAGEIFS using a cell reference in the criteria

    Use ">="&A43, etc


    Regards, TMS
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Forum Guru
    Join Date
    05-24-2011
    Location
    India
    MS-Off Ver
    Office 2021
    Posts
    2,237

    Re: AVERAGEIFS using a cell reference in the criteria

    Hello John,

    you are almoste there. Just change the formula to,

    =AVERAGEIFS(WORKSHEET!V5:V35,WORKSHEET!B5:B35,">="&A43,WORKSHEET!B5:B35,"<="&C43)

    If you use cell references inside the quotes, this will consider as text NOT cell references.
    Regards,
    Haseeb Avarakkan

    __________________________________
    "Feedback is the breakfast of champions"

+ 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