+ Reply to Thread
Results 1 to 4 of 4

SUMIFS with a dynamic, offset criteria range

  1. #1
    Registered User
    Join Date
    02-23-2012
    Location
    London, England
    MS-Off Ver
    Excel 2010
    Posts
    34

    SUMIFS with a dynamic, offset criteria range

    Hi everyone,

    This one has me stumped. I need to sum numbers in one column that correspond to variable ranges in another column. I've considered using SUMIFS with an OFFSET and MATCH but I'm not having much luck.

    On the attached worksheet:

    In the 'Summary Sheet' tab, I need to sum the following in the 'Data Sheet' tab:

    Sum the "Local Amount", in Column G, that corresponds to the currency e.g. British Pounds (in Column A), on Date 21/07/2014 (also in Column A), with 'Purchase' in Column D. The report in the 'Data Sheet' tab is an automated report and the rows in Column A change each time the report is run, depending on how many currencies there are and how many trades there are. Currencies are always separated in Column A by first the currency name (e.g. British Pounds) and then the currency name total (e.g. British Pounds Total).

    Very grateful if anyone can help!

    Thanks,
    Attached Files Attached Files

  2. #2
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,914

    Re: SUMIFS with a dynamic, offset criteria range

    =SUMIF(OFFSET('Data Sheet'!$A$1,MATCH(SUBSTITUTE($B$4," Total",""),'Data Sheet'!$A:$A,0)-1,3,MATCH($B$4,'Data Sheet'!$A:$A,0)-MATCH(SUBSTITUTE($B$4," Total",""),'Data Sheet'!$A:$A,0)+1,1),C$3,OFFSET('Data Sheet'!$A$1,MATCH(SUBSTITUTE($B$4," Total",""),'Data Sheet'!$A:$A,0)-1,6,MATCH($B$4,'Data Sheet'!$A:$A,0)-MATCH(SUBSTITUTE($B$4," Total",""),'Data Sheet'!$A:$A,0)+1,1))
    Try this formula in C4 and copy to D4
    One more thing in your Data Sheet unnecessary space was found with purchases pls remove it
    Samba

    Say thanks to those who have helped you by clicking Add Reputation star.

  3. #3
    Registered User
    Join Date
    02-23-2012
    Location
    London, England
    MS-Off Ver
    Excel 2010
    Posts
    34

    Re: SUMIFS with a dynamic, offset criteria range

    This works perfectly. Thank you sir!

  4. #4
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,914

    Re: SUMIFS with a dynamic, offset criteria range

    you are welcome and thanks for feedback

    If your question is resolved, mark it SOLVED using the thread tools and add reputation if you think some-1 helped you

+ 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 Sumifs for ALL criteria
    By mikeTRON in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 12-23-2013, 01:01 PM
  2. Dynamic Sumifs for ALL criteria
    By mikeTRON in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 12-16-2013, 12:46 AM
  3. Replies: 5
    Last Post: 06-06-2013, 05:12 PM
  4. [SOLVED] Dynamic range in SUMIFS
    By chungliwen in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 02-14-2013, 03:28 AM
  5. [SOLVED] SUMIFS based on dynamic criteria
    By AaronB in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-15-2012, 08:19 PM

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