I am writing a UDF that accepts several ranges as parameters. I enter the UDF as an array formula across 14 cells (e.g., C10:P10) and when I first enter it, it seems it gets called 4 times? If I change a cell value that would trigger the UDF to execute, it sometimes gets called once, and sometimes more than once.
At any rate, the thing I am struggling with most right now is just figuring out why it is not behaving as expected. E.g., the first parameter that is passed in is the fixed range $C$1:$P$1, whose value is the simple concatenation of the values in rows 2 and 3. E.g., C2 = "The", C3="Word", so C1 = "TheWord".
When I debug the formula, though, as noted, it is called more than once. On top of that, the first time it gets called, the range $C$1:$P$1 has values, and then on the next iterative call, it has no values...they all show as Empty when I view the range parameter in the Watch window.
Needless to say, I have no idea what is happening or causing this behavior. I hope this made sense, and if not, perhaps I can create a simple example from scratch to demonstrate the issue.
At any rate, the thing I am struggling with most right now is just figuring out why it is not behaving as expected. E.g., the first parameter that is passed in is the fixed range $C$1:$P$1, whose value is the simple concatenation of the values in rows 2 and 3. E.g., C2 = "The", C3="Word", so C1 = "TheWord".
When I debug the formula, though, as noted, it is called more than once. On top of that, the first time it gets called, the range $C$1:$P$1 has values, and then on the next iterative call, it has no values...they all show as Empty when I view the range parameter in the Watch window.
Needless to say, I have no idea what is happening or causing this behavior. I hope this made sense, and if not, perhaps I can create a simple example from scratch to demonstrate the issue.