Excel Link | ![]() ![]() |
Excel Cell Error Messages
Excel may display one of these error messages in a worksheet cell.
Excel Cell Error Message |
Meaning |
Solution |
#COMMAND! |
MATLAB does not recognize the command in an MLEvalString function. The command may be misspelled. |
Check the spelling of the MATLAB command. Correct typing errors. |
#DIMENSION! |
You used MLAppendMatrix and the dimensions of the appended data do not match the dimensions of the matrix you want to append. |
Check the matrix dimensions and the appended data dimensions, and correct the argument. See MLAppendMatrix in the Function Reference chapter. |
#INVALIDNAME! |
You entered an illegal variable name. |
Make sure to use legal MATLAB variable names. MATLAB variable names must start with a letter followed by up to 30 letters, digits, or underscores. |
#MATLAB? |
You used an Excel Link function and MATLAB is not running. |
Start Excel Link and MATLAB. See the Starting Excel Link Manually section. |
#NAME? |
Excel doesn't recognize the function name. The EXCLLINK.XLA add-in is not loaded, or the function name may be misspelled. |
Be sure the EXCLLINK.XLA add-in is loaded. See the Configuring Excel to Work with Excel Link section. Check the spelling of the function name. Correct typing errors. |
Excel Cell Error Message |
Meaning |
Solution |
#NONEXIST! |
You referenced a nonexistent matrix in an MLGetMatrix or MLDeleteMatrix function. The matrix name may be misspelled. |
Check the spelling of the MATLAB matrix. Use the MATLAB whos command to display existing matrices. Correct typing errors. |
#SYNTAX? |
You entered an Excel Link function with incorrect syntax; for example, the double quotes (") may be missing, or you used single quotes (') instead of double quotes. |
Check and correct the function syntax. See the Function Reference chapter for function syntax. |
#VALUE! |
An argument is missing from a function, or a function argument is the wrong type. |
Supply the correct number of function arguments, of the correct type. |
A macro subroutine uses MLGetMatrix followed by MatlabRequest , which is correct standard usage. A macro function calls that subroutine, and you execute that function from a worksheet cell. The function works correctly, but this message appears in the cell. |
Since the function works correctly, you may ignore the message. Or, in this special case, remove MatlabRequest from the subroutine. |
Excel Error Message Boxes
Excel may display one of these error message boxes.
Audible Error Signals
Audible error signals while passing data to MATLAB with MLPutMatrix
or MLAppendMatrix
usually mean you have insufficient computer memory to carry out the operation. Close other applications or clear unnecessary variables from the MATLAB workspace and try again. If the error signal reoccurs, you probably have insufficient physical memory in your computer for this operation.
Data Errors
Data in the MATLAB or Excel workspaces may exhibit these undesired characteristics.
![]() | MLPutVar | Installed Files | ![]() |