I have a range: B2:B700 with both positive and negative values.
How can I calculate the basic AVERAGE, MIN, MAX, and SUM while "excluding" all negative values within the range?
Thanks!![]()
I have a range: B2:B700 with both positive and negative values.
How can I calculate the basic AVERAGE, MIN, MAX, and SUM while "excluding" all negative values within the range?
Thanks!![]()
=AVERAGE(IF(B2:B700>0,B2:B700))
Confirm with CTRL+SHIFt+ENTER, not just enter
Subsitute MIN/MAx for average when necessary
Thanks. That worked great.
2nd part. In addition to the above. I also want to exlcude all values greater than 1095. Will this be a nested IF statement?
Avg IF X: 0 < X < 1095
Try this and let me know:
=AVERAGE(IF((B2:B700>0)*(B2:B700<1095),B2:B700))
Again thanks. That worked too.![]()
Glad I could help.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks