+ Reply to Thread
Results 1 to 2 of 2

averageif with critera being a reference cell that contains a formula returns div/o error

  1. #1
    Registered User
    Join Date
    06-03-2019
    Location
    Hudson, WI
    MS-Off Ver
    Office 365
    Posts
    1

    averageif with critera being a reference cell that contains a formula returns div/o error

    It works if I type the value of the cell in like this:
    =AVERAGEIF(H2:H21,"<37.62")
    but if I pick the cell as the criteria like this:
    =AVERAGEIF(H2:H21,"<H26")
    then it returns #DIV/0!
    This is what is in cell H26:
    =H25*1.2
    Help please and thanks!

  2. #2
    Forum Expert Roel Jongman's Avatar
    Join Date
    03-28-2015
    Location
    Netherlands
    MS-Off Ver
    Office 365
    Posts
    1,483

    Re: averageif with critera being a reference cell that contains a formula returns div/o er

    That happens because you are dividing by a text "<H26" which cannot be done. a small change will solve your problem
    you have to concatenate the mathematical characters (< > =) and the actual cell holding the value to for the criterium.. that is done with the & sign..

    so try:
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    This way excel regcognizes H26 as a cellreference and not as a text.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. formula always returns #VALUE! when reference cell is blank
    By delboy007 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-21-2018, 03:54 AM
  2. [SOLVED] Formula that returns address of a cell reference
    By mansfin in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-18-2016, 12:21 PM
  3. [SOLVED] formula returns value even when reference cell is blank
    By opusarlo in forum Excel General
    Replies: 7
    Last Post: 04-24-2015, 06:55 AM
  4. [SOLVED] Cell Reference returns error
    By wiwchar in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 02-23-2015, 05:28 PM
  5. need to show reference cell blank if formula returns a $0.00 value
    By AWITCHER in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 11-21-2014, 10:48 AM
  6. [SOLVED] formula returns a #VALUE! error if no value in reference cell???
    By ciapul12 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-12-2014, 05:39 PM
  7. formula cell reference updates when query returns more rows
    By reillyBoston in forum Excel General
    Replies: 3
    Last Post: 08-18-2009, 11:20 AM

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