INDIRECT worksheet with a space in the name

B

Bruce

I am using the following to reference worksheets which works fine except for
when the worksheet name contains a space.

=INDIRECT($A8&"!AI$8")

I dont want to remove the space from the worksheet name because it will
cause all other sorts of issues. How can I get this to work? Im guess it
involves enclosing the the W/S in ' ' but I've had no sucess

Bruce
 
D

Don Guillett

Pay CLOSE ATTENTION to the ' placement in the formula
=INDIRECT("'"&A1&"'!C1")
=INDIRECT("'"&A1&"'!C1")
 
J

Jason Morin

Yes, you'll have to enclose the ws name in single quotes.
Try:

=INDIRECT("'"&$A8&"'!AI8")

HTH
Jason
Atlanta, GA
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top