+ Reply to Thread
Results 1 to 5 of 5

Problem with Indirect Formula

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    11-25-2011
    Location
    US
    MS-Off Ver
    Excel 2010
    Posts
    107

    Problem with Indirect Formula

    I have a formula
    =sum(indirect($q$1&"!P7"))

    When I pull the formula down to other cells P7 doesn't change.
    I need it to change to reference other cells when I pull it down.

    Thanks,

  2. #2
    Forum Expert
    Join Date
    09-20-2011
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    2,278

    Re: Problem with Indirect Formula

    Hello
    Try the following amendment to you formula.

    =SUM(INDIRECT($Q$1&"!P"&ROW(A7)))

    Note the sum is not needed if you're just returning the cell value which is what this does.

    Hope this helps.
    Last edited by DBY; 03-21-2012 at 01:14 PM. Reason: amended reply

  3. #3
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2504
    Posts
    13,620

    Re: Problem with Indirect Formula

    Or simply change the quotes
    =sum(indirect("$Q$1!"&P7))

  4. #4
    Registered User
    Join Date
    03-23-2012
    Location
    Texas
    MS-Off Ver
    Excel 2007
    Posts
    11

    Re: Problem with Indirect Formula

    Hi I used your suggestion, because I want it to do the same thing where the P7 cell woudl change to P8 and P9 and so on. So i need to go down the column. However when i use your formula it returns a 0

    =INDIRECT("'"&TEXT(A38,"mmm yy")&"'"!D"&COLUMN(C7)

  5. #5
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    25,422

    Re: Problem with Indirect Formula

    Well if you are going down a column it is the row number that changes, so you need ROW rather than COLUMN in your formula.

    Hope this helps.

    Pete

+ 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