Changing the iterator
Hi There ,
I have two functions are exactly the same but in two different sheet in the first sheet . it works perfectly and I’m getting the expected answers for f2

In the second sheet it doesn't work and I suspect the reason is M has different arrays . How can I fix this function : the error says : This array index is invalid. The index must be an integer, not less than ORIGIN, and not greater than the last element."

I can’t attached simplified sheet even in zip file. I hope you can help
Thanks in advance ,
Yusra

