+ Reply to Thread
Results 1 to 6 of 6

making Indirect array references dynamic

  1. #1
    Registered User
    Join Date
    08-18-2020
    Location
    England
    MS-Off Ver
    2007
    Posts
    64

    making Indirect array references dynamic

    Hi

    I had some help today creating an indirect formula. I'm now seeking tips on making this formula dynamic. At the moment, if I copy this formula one column to the right, it still references the F column, whereas I'd like it reference the G column. Here the formula (it's a little longer than what I originally posted, but hopefully it still makes sense).

    =IF(SUMIF(INDIRECT("'"&$A6&"'!$C$11:$C$500"),"Bank",INDIRECT("'"&$A6&"'!F$11:F$500"))>0,SUMIF(INDIRECT("'"&$A6&"'!$C$11:$C$500"),"Bank",INDIRECT("'"&$A6&"'!F$11:F$500")),"")

    Many thanks for your help.

  2. #2
    Registered User
    Join Date
    08-18-2020
    Location
    England
    MS-Off Ver
    2007
    Posts
    64

    Re: making Indirect array references dynamic

    I just realized that the IF in my formula could be done away with if I go to options and select not to show zeros. So here it is more simply.

    =SUMIF(INDIRECT("'"&$A6&"'!$C$11:$C$500"),"Bank",INDIRECT("'"&$A6&"'!F$11:F$500"))
    Last edited by neilsolaris; 07-11-2021 at 08:20 AM.

  3. #3
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: making Indirect array references dynamic

    Indeed... a waste of time...

    =IFERROR(1/(1/SUMIF(INDIRECT("'"&$A6&"'!C11:C500"),"Bank",INDIRECT("'"&$A6&"'!"&ADDRESS(11,COLUMNS($A:F),1)&":"&ADDRESS(500,COLUMNS($A:F),1)))),"")

    will hide zeros... or just

    =SUMIF(INDIRECT("'"&$A6&"'!C11:C500"),"Bank",INDIRECT("'"&$A6&"'!"&ADDRESS(11,COLUMNS($A:F),1)&":"&ADDRESS(500,COLUMNS($A:F),1)))
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU

  4. #4
    Registered User
    Join Date
    08-18-2020
    Location
    England
    MS-Off Ver
    2007
    Posts
    64

    Re: making Indirect array references dynamic

    Thanks a lot Glenn, that's brilliant! I'll go through the formula in a bit to see how it works.
    Last edited by neilsolaris; 07-11-2021 at 08:34 AM.

  5. #5
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: making Indirect array references dynamic

    You're welcome.



    It would be very nice if you were to just click the Add Reputation button at the foot of any of the posts of members who helped you reach a solution.

    Finally, if that takes care of your original question, please select "Thread Tools" from the menu link above and mark this thread as SOLVED.

  6. #6
    Registered User
    Join Date
    08-18-2020
    Location
    England
    MS-Off Ver
    2007
    Posts
    64

    Re: making Indirect array references dynamic

    Done (on both counts)!

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Alternative to using INDIRECT for dynamic references to other sheets
    By jrtaylor in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 06-11-2021, 11:45 AM
  2. [SOLVED] Alternative to INDIRECT for dynamic worksheet references
    By Joe26 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 05-23-2019, 09:42 PM
  3. VBA to change indirect references to direct references within array formulas
    By acj06 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-20-2017, 12:16 AM
  4. Dynamic References Based on Two Criteria (INDIRECT OR VLOOKUP?)
    By hotelguy in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-08-2015, 09:52 PM
  5. [SOLVED] Using Indirect() to get dynamic references in an array formula
    By jlb333333 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-18-2015, 10:37 AM
  6. Indirect references in Array formulae
    By ninsine in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 05-30-2013, 09:16 AM
  7. Replies: 1
    Last Post: 02-18-2012, 10:31 AM

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