+ Reply to Thread
Results 1 to 5 of 5

Indirect with Sum / Index - Very Tough

  1. #1
    Registered User
    Join Date
    05-08-2012
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    31

    Indirect with Sum / Index - Very Tough

    Hi All,

    I'm trying to Indirectly reference a sheetname within a dropdown box along with using some index match information.

    My end goal is to be able to change the drop down list that has the indirect reference and the formula will work.

    I've attached a copy of what I'm working on! Any help would be AWESOME!!!

    The format needs to stay the same.

    Thank you in advance. Stay cool
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    06-08-2012
    Location
    Left the forum!
    MS-Off Ver
    Left the forum!
    Posts
    5,189

    Re: Indirect with Sum / Index - Very Tough

    Something like

    =SUM(OFFSET(INDIRECT(""&H1&"!D12"),,,1,MATCH('New Sales Ops Report'!K1,INDIRECT(""&H1&"!D1:O1"),0)-1))

  3. #3
    Registered User
    Join Date
    05-08-2012
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    31

    Re: Indirect with Sum / Index - Very Tough

    That works awesome, thanks so much. Why the offset function?

  4. #4
    Forum Expert
    Join Date
    06-08-2012
    Location
    Left the forum!
    MS-Off Ver
    Left the forum!
    Posts
    5,189

    Re: Indirect with Sum / Index - Very Tough

    You can define the size or the range with offset so it makes the formula easier to write, trying to pass the same range to index by using indirect would get very messy.

    Basic construction of it would be =sum(indirect(range):index(indirect(range),match(criteria,indirect(range),0))) that means at least one extra indirect function, and that might not even work, I haven't tested it to see.

    You could possibly omit the offset function by use of r1c1 reference style, but that i prone to error with changes to sheet layouts, but that goes for most indirect formulas.

    =SUM(INDIRECT(""&H1&"!R12C4:R12C"&MATCH('New Sales Ops Report'!K1,INDIRECT(""&H1&"!D1:O1"),0)+2,0))
    Last edited by jason.b75; 08-13-2012 at 02:34 PM.

  5. #5
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675

    Re: Indirect with Sum / Index - Very Tough

    Another way would be to use SUMIF, e.g.

    =SUMIF(INDIRECT("'"&H1&"'!D1:O1"),"<"&K1,INDIRECT("'"&H1&"'!D12:O12"))

    [Note that gives you zero if K1 is Jan 1st]
    Audere est facere

+ 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