使用SUMPRODUCT忽略文本 [英] Ignore text with SUMPRODUCT
本文介绍了使用SUMPRODUCT忽略文本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在使用 SUMPRODUCT()
来计算p = 3的数据的p均值:
I'm using SUMPRODUCT()
to calculate the p-mean of data where p=3:
=(SUMPRODUCT(E2:E99^3)/COUNT(E2:E99))^(1/3)
数据中混入了-
.我该如何忽略它们,以免出现值错误并仍然得到正确的答案(就像-
不在那里一样)?
There are -
's mixed into the data. How can I ignore them so as not to get a value error and still get the correct answer (as if the -
's weren't there)?
推荐答案
要处理范围内的非数字,请使用以下数组公式:
To deal with non numbers in the range use this array formula:
=(SUM(IF(ISNUMBER(E2:E99),E2:E99^3))/COUNT(E2:E99))^(1/3)
作为数组公式,退出编辑模式时必须使用Ctrl-Shift-Enter而不是Enter进行确认.
Being an array formula it must be confirmed with Ctrl-Shift-Enter instead of Enter when exiting edit mode.
这篇关于使用SUMPRODUCT忽略文本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文