+ Reply to Thread
Results 1 to 4 of 4

Dynamic Sumifs Formula

  1. #1
    Registered User
    Join Date
    02-23-2011
    Location
    London, England
    MS-Off Ver
    Excel 2003
    Posts
    6

    Dynamic Sumifs Formula

    Hi,

    Please see attached spreadsheet.

    I have a table with same layout (number of columns / position of columns) on each worksheet and each worksheet represents a different quarter.

    I'd like to extract comparative data for each quarter to different cells per Sheet 7 based on a set of predefined criteria.

    Currently I am able to use the Sumifs formulae but I have to keep changing the formula to look at different worksheet names.

    I'd like the Sumifs formula to know that inter alia in:
    * Cell B4 I want to extract the data from worksheet Q1 2009.
    * Cell C4 I want to extract the data from worksheet Q2 2009.
    * Cell B5 I want to extract the data from worksheet Q1 2010.

    Perhaps Sumifs formula is not the best answer.

    I hope that I have explained myself correctly and that the attached worksheet helps to explain what I'm looking for.

    Many thanks,
    Rob
    Attached Files Attached Files

  2. #2
    Registered User
    Join Date
    02-23-2011
    Location
    London, England
    MS-Off Ver
    Excel 2003
    Posts
    6

    Re: Dynamic Sumifs Formula

    Hi All,
    Does anyone have a solution?
    Many thanks,
    Rob

  3. #3
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    Microsoft 365
    Posts
    14,697

    Re: Dynamic Sumifs Formula

    Hello Rob, try this formula in B4 copied across and down

    =SUMIFS(INDIRECT("'Q"&MOD(B$3-1,4)+1&" "&$A4+INT((B$3-1)/4)&"'!E:E"),INDIRECT("'Q"&MOD(B$3-1,4)+1&" "&$A4+INT((B$3-1)/4)&"'!D:D"),$A4,INDIRECT("'Q"&MOD(B$3-1,4)+1&" "&$A4+INT((B$3-1)/4)&"'!C:C"),$A$2,INDIRECT("'Q"&MOD(B$3-1,4)+1&" "&$A4+INT((B$3-1)/4)&"'!F:F"),B$2)
    Audere est facere

  4. #4
    Registered User
    Join Date
    02-23-2011
    Location
    London, England
    MS-Off Ver
    Excel 2003
    Posts
    6

    Re: Dynamic Sumifs Formula

    Thank you so much, that has helped a quite a lot.
    Now let me see if I can amend the formula to add in even more criteria.
    Thanks again,
    Rob

+ 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