شنبه یازدهم مرداد ۱۳۹۹ - 14:34 - حسين حسين پور -
In the last method, you have used the SUM and COUNTIF method. But, you can also use SUMPRODUCT instead of SUM.
And, when you use SUMPRODUCT, you don’t need to enter a formula as an array.
The formula you need to enter is,
=SUMPRODUCT(1/COUNTIF(A2:A17,A2:A17))
When you enter this formula as an array it will look something like this.
{=SUMPRODUCT(1/COUNTIF(A2:A17,A2:A17))}
How it works
This formula exactly works in the same way as you have learned in the above method, the difference is just that you have used SUMPRODUCT instead of SUM.
And SUMPRODUCT can take an array without using Ctrl + Shift + Enter.