Forum Discussion
Greg Heath
Oct 14, 2017Copper Contributor
Using a cell ref. with AVERAGEIF & INDIRECT in this example.
Please help to fix my Excel expression. The following works and returns the average value in the range, as long as values are <0.35.
=AVERAGEIF(INDIRECT(($AE$5&":"&$AG$5)),"<0.35")
When I replace <0.35 with a cell reference, the expression no longer works, eg:-
=AVERAGEIF(INDIRECT(($AE$5&":"&$AG$5)),"<'Calcs!R2'")
Is there a correct way to replace the value 0.35 with its cell reference?
Thank you!
2 Replies
Sort By
- Haytham AmairahSilver Contributor
Hi,
Use this syntax in the criteria argument:
"<"&Calc!R2
Regards
- Greg HeathCopper Contributor
Thank you for your speedy response Haytham. That fix worked like a charm! I appreciate it...