excel公式教程:求字符串中的数字组成的数能够被指定数整除的数的个数( 六 )


3. 有了上述基础后,现在知道,公式中的部分:
MOD(INDEX(MID(A1,Arry1,IF(1+LEN(A1)-Arry1>=TRANSPOSE(Arry1),TRANSPOSE(Arry1))),N(IF(1,Arry3)),N(IF(1,Arry4))),{3,5,7})
为一个256列1行的数组与一个1行3列的数组求余,即:
MOD({“X”;”XX”;”XX3″;”XX30″;”XX30X”;”XX30X5″;”XX30X5X”;”XX30X5XX”;”XX30X5XXX”;”XX30X5XXX4″;”XX30X5XXX42″;”XX30X5XXX42X”;”XX30X5XXX42XX”;”XX30X5XXX42XX7″;”XX30X5XXX42XX77″;”XX30X5XXX42XX771″;”X”;”X3″;”X30″;”X30X”;”X30X5″;”X30X5X”;”X30X5XX”;”X30X5XXX”;”X30X5XXX4″;”X30X5XXX42″;”X30X5XXX42X”;”X30X5XXX42XX”;”X30X5XXX42XX7″;”X30X5XXX42XX77″;”X30X5XXX42XX771″;””;”3″;”30″;”30X”;”30X5″;”30X5X”;”30X5XX”;”30X5XXX”;”30X5XXX4″;”30X5XXX42″;”30X5XXX42X”;”30X5XXX42XX”;”30X5XXX42XX7″;”30X5XXX42XX77″;”30X5XXX42XX771″;””;””;”0″;”0X”;”0X5″;”0X5X”;”0X5XX”;”0X5XXX”;”0X5XXX4″;”0X5XXX42″;”0X5XXX42X”;”0X5XXX42XX”;”0X5XXX42XX7″;”0X5XXX42XX77″;”0X5XXX42XX771″;””;””;””;”X”;”X5″;”X5X”;”X5XX”;”X5XXX”;”X5XXX4″;”X5XXX42″;”X5XXX42X”;”X5XXX42XX”;”X5XXX42XX7″;”X5XXX42XX77″;”X5XXX42XX771″;””;””;””;””;”5″;”5X”;”5XX”;”5XXX”;”5XXX4″;”5XXX42″;”5XXX42X”;”5XXX42XX”;”5XXX42XX7″;”5XXX42XX77″;”5XXX42XX771″;””;””;””;””;””;”X”;”XX”;”XXX”;”XXX4″;”XXX42″;”XXX42X”;”XXX42XX”;”XXX42XX7″;”XXX42XX77″;”XXX42XX771″;””;””;””;””;””;””;”X”;”XX”;”XX4″;”XX42″;”XX42X”;”XX42XX”;”XX42XX7″;”XX42XX77″;”XX42XX771″;””;””;””;””;””;””;””;”X”;”X4″;”X42″;”X42X”;”X42XX”;”X42XX7″;”X42XX77″;”X42XX771″;””;””;””;””;””;””;””;””;”4″;”42″;”42X”;”42XX”;”42XX7″;”42XX77″;”42XX771″;””;””;””;””;””;””;””;””;””;”2″;”2X”;”2XX”;”2XX7″;”2XX77″;”2XX771″;””;””;””;””;””;””;””;””;””;””;”X”;”XX”;”XX7″;”XX77″;”XX771″;””;””;””;””;””;””;””;””;””;””;””;”X”;”X7″;”X77″;”X771″;””;””;””;””;””;””;””;””;””;””;””;””;”7″;”77″;”771″;””;””;””;””;””;””;””;””;””;””;””;””;””;”7″;”71″;””;””;””;””;””;””;””;””;””;””;””;””;””;””;”1″;””;””;””;””;””;””;””;””;””;””;””;””;””;””;””},{3,5,7})

推荐阅读