Account for loading of only one variable when loading Excel-file

Closes #654

(cherry picked from commit 9f793d10696e6bc4604e04f8532344c08624e3b4)