Error: Argument size mismatch

Created by Harry Lewis, Modified on Mon, 24 Feb at 1:32 PM by Harry Lewis


TABLE OF CONTENTS


Overview


Creating a Velixo function which refers to more than one Excel array (using the # syntax) results in a #VALUE! error with the following message:


 


Text of Message

 

Argument size mismatch: all arguments containing more than one value are expected to be of the same size 

 

Cause

When using multiple array references within a single function...



... Excel requires that each array be of the EXACT same size.


If the arrays are not of the same size, this Excel generates this error.


In the above example, there are 149 account codes but only 4 branch codes.

 

 

Workaround

When using arrays as cell references, it is usually necessary to only use one array reference within a function.


For example, here we are using a reference to the array of account codes in column C (but only to the individual branch code in row 6):



 



Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article