Share via

AVERAGEIFS function won’t work with cell references

Anonymous
2011-05-26T16:53:31+00:00

I have values in a range of cells, C9 thru G9, that I am using for an AVERAGEIFS function.  I also have MAX & MIN values, J9 & K9, which cells are populated by the formulas =VALUE(MAX(C9:G9)) and =VALUE(MIN(C9:G9)).

The AVERAGEIFS function I tried to use is: =AVERAGEIFS($C9:$G9,$C9:$G9,"<J9",$C9:$G9,">K9"), but I get a # DIV/0! error message.  I can get the formula to work if I type the actual values of J9 & K9 into the formula, in this case =AVERAGEIFS($C9:$G9,$C9:$G9,"<32.83",$C9:$G9,">32.55"), but typing the values into each formula on each line is a pain.  HELP!

Microsoft 365 and Office | Excel | For home | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

Answer accepted by question author

HansV 462.6K Reputation points
2011-05-26T17:13:51+00:00

Instead of "<J9" and ">K9", use "<"&J9 and ">"&K9 respectively.

Was this answer helpful?

9 people found this answer helpful.
0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Anonymous
    2011-05-26T17:46:47+00:00

    Thanks!  That worked perfectly!

    Was this answer helpful?

    0 comments No comments