LoneScrunger
New Member
- Joined
- Feb 14, 2013
- Messages
- 4
Hello!
I'm trying to return the average, min and max values of a range that will have errors, be blank or have zeros. I have already found an array formula that works getting rid of the errors but the zeros are now a problem.
{=AVERAGE(IF(NOT(ISERROR(D27:G27)),D27:G27))}
I was thinking that an OR might be needed but for the life of me can't figure out where it belongs. I will also be using this formula with both MIN and MAX in the adjacent cells so it would be great if all I have to do is swap those in for AVERAGE. I'm not keen on how array formulas work, just found an example similar to this on the interwebs, and I'm curious why if the array brackets are removed the value returned is 0 and not an error.
Workbook is proprietary so VB is locked and not an option (not sure if it was but wanted to be clear).
Thanks!
I'm trying to return the average, min and max values of a range that will have errors, be blank or have zeros. I have already found an array formula that works getting rid of the errors but the zeros are now a problem.
{=AVERAGE(IF(NOT(ISERROR(D27:G27)),D27:G27))}
I was thinking that an OR might be needed but for the life of me can't figure out where it belongs. I will also be using this formula with both MIN and MAX in the adjacent cells so it would be great if all I have to do is swap those in for AVERAGE. I'm not keen on how array formulas work, just found an example similar to this on the interwebs, and I'm curious why if the array brackets are removed the value returned is 0 and not an error.
Workbook is proprietary so VB is locked and not an option (not sure if it was but wanted to be clear).
Thanks!