Results 1 to 3 of 3
  1. #1
    3 Star Lounger
    Join Date
    May 2002
    Location
    Mpls, Minnesota, USA
    Posts
    271
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Indirect with spaces (2003 SP2)

    I have a workbook that is created by another program. There are multiple sheets created and they have spaces in the name. I am trying to create a summary sheet for fast reference. The data I want is always in the same location on each sheet (B134 135). The summary sheet has the sheet names in column A. I made a formula using INDIRECT but it fails because there are spaces int he sheet names. Looking for formula help or a macro that would rename all the sheets removing the spaces.
    Anyone got time? I attached a sample workbook (cut down).
    Thanks,
    Chuck
    Chuck Reimer
    I'm from the Government and I'm here to help...

  2. #2
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: Indirect with spaces (2003 SP2)

    You must put single quotes around a sheet name if it contains spaces:
    <code>
    =INDIRECT("'"&A4&"'!B134")
    </code>
    Note: the single quotes won't harm if the sheet name does NOT contain spaces, so it's a good idea to use them in all situations.

  3. #3
    3 Star Lounger
    Join Date
    May 2002
    Location
    Mpls, Minnesota, USA
    Posts
    271
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Indirect with spaces (2003 SP2)

    Hans,
    I think I tried every combination but the one you supplied! (thought I tried that too -but Obviously not).
    Thanks so much!
    Chuck
    Chuck Reimer
    I'm from the Government and I'm here to help...

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •