+ Reply to Thread
Results 1 to 3 of 3

Thread: 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 05:28 PM.

  2. #2
    Forum Guru TMShucks's Avatar
    Join Date
    07-15-2010
    Location
    Manchester, England
    MS-Off Ver
    MSO 2003 & 2007
    Posts
    6,223

    Re: AVERAGEIFS using a cell reference in the criteria

    Use ">="&A43, etc


    Regards, TMS

  3. #3
    Valued Forum Contributor Haseeb A's Avatar
    Join Date
    05-24-2011
    Location
    India | Kwt
    MS-Off Ver
    2007
    Posts
    1,453

    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.
    HTH; Haseeb

    If your problem is solved, please say so clearly, and mark your thread as Solved:
    Forum Rules & How to Mark a thread as SOLVED

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