+ Reply to Thread
Results 1 to 3 of 3

Indirect function not working with spaces

  1. #1
    Registered User
    Join Date
    02-19-2013
    Location
    Thailand
    MS-Off Ver
    Excel 2007
    Posts
    34

    Indirect function not working with spaces

    I'm using the formula
    Please Login or Register  to view this content.
    to give the sum of collumn C of the sheet specified in collum A (of this sheet).
    Works like a charm except when the name of the sheet has a space or - in it. It just gives the REF error.
    I have tried sticking brackets in but it's no use.
    Any advice would be greatly appreciated.
    Last edited by exarranum; 03-14-2013 at 12:31 AM.

  2. #2
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,147

    Re: Indirect function not working with spaces

    hi exarranum. a little confused with this; you want to return the SUM but use MAX? to deal with spaces, put in single quotes before & behind the sheet name:
    =MAX(INDIRECT("'"&A1&"'!c:c"))

    Thanks, if you have clicked on the * and added our rep.

    If you're satisfied with the answer, click Thread Tools above your first post, select "Mark your thread as Solved".

    "Contentment is not the fulfillment of what you want, but the realization of what you already have."


    Tips & Tutorials I Compiled | How to Get Quick & Good Answers

  3. #3
    Registered User
    Join Date
    02-19-2013
    Location
    Thailand
    MS-Off Ver
    Excel 2007
    Posts
    34

    Re: Indirect function not working with spaces

    Perfect,thanks! Sorry about the confusion. It was a typo as I'm using max AND sum for calculating a few different things (max for most recent date, sum for total stock etc).

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1