+ Reply to Thread
Results 1 to 4 of 4

SUMIF criteria across dynamic range

  1. #1
    Forum Contributor
    Join Date
    03-05-2013
    Location
    Sydney
    MS-Off Ver
    Excel 2010
    Posts
    301

    SUMIF criteria across dynamic range

    Hi all,

    I'm looking for a way to write this:

    Please Login or Register  to view this content.
    as this:
    Please Login or Register  to view this content.
    Where the criteria runs across a range (G to BG) that can sometimes have columns deleted, but the range must remain fixed.

    Cheers

  2. #2
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: SUMIF criteria across dynamic range

    Like this...

    =SUMIF(INDIRECT("Sheet1!G4:BG4"),Sheet2!$D6,INDIRECT("Sheet1!G306:BG306"))

    That formula will always refer to Sheet1!G4:BG4 and Sheet1!G306:BG306.
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  3. #3
    Forum Contributor
    Join Date
    03-05-2013
    Location
    Sydney
    MS-Off Ver
    Excel 2010
    Posts
    301

    Re: SUMIF criteria across dynamic range

    Thanks Tony.

    I didn't think about indirect in this way, but seems to work just fine. Just to clarify, it shouldn't update the function if I delete columns?

    Cheers and take a rep for quick response.

  4. #4
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: SUMIF criteria across dynamic range

    Quote Originally Posted by Journeyman3000 View Post
    Just to clarify, it shouldn't update the function if I delete columns?
    Nope. The formula will ALWAYS refer to Sheet1!G4:BG4 and Sheet1!G306:BG306.

    Cheers and take a rep for quick response.
    Thanks!


    If your question has been solved please mark the thread as being solved.

    In the menu bar above the very first post select Thread Tools, then select Mark this thread as solved.

+ 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. Dynamic Criteria for SUMIF, multiple selections
    By alhimyaa in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 11-18-2013, 01:30 AM
  2. Dynamic sumif ranges based on Hlookup criteria
    By Dial1 in forum Excel General
    Replies: 2
    Last Post: 10-24-2011, 01:21 AM
  3. SUMIF with Dynamic Criteria
    By nofzinger in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-11-2010, 06:17 PM
  4. SUMIF with dynamic criteria
    By inky in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 01-08-2008, 08:59 AM
  5. Sumif using dynamic date criteria
    By bkube01 in forum Excel General
    Replies: 3
    Last Post: 08-25-2006, 11:11 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