Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

VLOOKUP definition is:

=IF(ISNA(VLOOKUP(RC[-7],'[\\sqlc\Curr table & Checklist\Currency table - foreign.xlsx]Sheet1'!R2C1:R9999C2,2,FALSE))=FALSE,VLOOKUP(RC[-7],'[\\sqlc\Curr table & Checklist\Currency table - foreign.xlsx]Sheet1'!R2C1:R9999C2,2,FALSE),""No a/c"")

Excel is throwing an error due to the space between 'Curr' and 'table' in the path name (and would also get upset about the following spaces in the path name as well).

Q: Where do I insert speech marks (") to overcome the problem. Have tried several options but no luck so far.

share|improve this question
add comment

1 Answer 1

up vote 1 down vote accepted

You put quotes (") around the entire path.

In this case, your code should look like this:

=IF(ISNA(VLOOKUP(RC[-7],'["\sqlc\Curr table & Checklist\Currency table - foreign.xlsx"]Sheet1'!R2C1:R9999C2,2,FALSE))=FALSE,VLOOKUP(RC[-7],'[\sqlc\Curr table & Checklist\Currency table - foreign.xlsx]Sheet1'!R2C1:R9999C2,2,FALSE),""No a/c"")
share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.