This seems rather fundamental, but after an extensive search I can't seem to find anything related to a problem I'm having.
I'm getting a "Identifier Expected" error when trying to evaluate a formula with the worksheet name in single quotes and containing spaces:
```
string test = "IF('Income & Expense'!H34 <> \"\", 'Income & Expense'!H34, IF('Income & Expense'!H35 <> \"\", 'Income & Expense'!H35, \"\"))";
var val = multiWorkbook.Evaluate(test);
```
I simplified this to:
```
string test = "'Income & Expense'!H34";
```
and get the same "Identifier Expected" error. Removing the single quotes I get "There isn't a worksheet named Expense".
Is there another way to specify spaces in worksheet names? Or is something else going on?
Comments: Thanks for the reply. Unfortunately, I don't have any control over the worksheet names, so not sure what a workaround is. Yes, the formula works in Excel.
I'm getting a "Identifier Expected" error when trying to evaluate a formula with the worksheet name in single quotes and containing spaces:
```
string test = "IF('Income & Expense'!H34 <> \"\", 'Income & Expense'!H34, IF('Income & Expense'!H35 <> \"\", 'Income & Expense'!H35, \"\"))";
var val = multiWorkbook.Evaluate(test);
```
I simplified this to:
```
string test = "'Income & Expense'!H34";
```
and get the same "Identifier Expected" error. Removing the single quotes I get "There isn't a worksheet named Expense".
Is there another way to specify spaces in worksheet names? Or is something else going on?
Comments: Thanks for the reply. Unfortunately, I don't have any control over the worksheet names, so not sure what a workaround is. Yes, the formula works in Excel.