Please enable JavaScript to view the comments powered by Disqus.


SUMPRODUCT(...(...MOD(...ROW(...INDIRECT(..."A"&B1&":A"&B2)),ARRAY(...ARRAYROW(...2,3,5)))=0)*1)

Find numbers between 100 and 200 that are exactly divisible by 2, 3 and 5.

The formula used MOD to find if the division has remainder of zero, that is only condition for being perfectly divisble. If the condition is meet, the number is multiplied with 1 and then summed up with SUMPRODUCT to give the final count. 


Used Functions

Category: Math and trigonometry

Returns the sum of the products of corresponding array components

Syntax

SUMPRODUCT(array1, [array2], [array3], ...)

Category: Math and trigonometry

Returns the remainder from division

Syntax

MOD(number, divisor)

Category: Lookup and reference

Returns the row number of a reference

Syntax

ROW([reference])

Category: Lookup and reference

Returns a reference indicated by a text value

Syntax

INDIRECT(ref_text, [a1])

Lets chat on this