+ Reply to Thread
Results 1 to 2 of 2

Problem with OFFSET in the sum range of a SUMIF formula

  1. #1
    Registered User
    Join Date
    08-13-2017
    Location
    London, England
    MS-Off Ver
    15.33 for Mac
    Posts
    1

    Problem with OFFSET in the sum range of a SUMIF formula

    Hi

    This is my first post here - so sorry if I am doing anything wrong!

    I have been grappling with a SUMIF formula with an offset. I will try and explain the purpose of it:

    - We run a financial year from July to June
    - Each month I want to be able to check the actual performance in a month and the financial year to date performance
    - The data I am interrogating is exported out of oracle and then pasted in my tracking sheet
    - The issue with the export that is usable is that it always spits out the last 12 months - regardless of the financial year
    - To allow me to track correctly I am trying to use an offset value that is derived from a vlookup in a config page - where July is 1, August is 2, September is 3 and so on
    - Each month I change the month in one cell and then have the adjacent cell generate the offset
    - I am then referencing the numeric value created +1 from that as the the column offset for the sum range value in a SUMIF formula
    - I am then using the same reference cell for the column width in the offset
    - What I am trying to achieve is to have the sum range capture an extra month each time i increment the reporting month
    - The purpose of using a summit is that I have multiple cost centres, which have different cost lines (column A), so I am trying to cater for the variance by using a sumif to check for cost line in the Data sheet

    I'm sorry, but I couldn't get the screenshot working, so I have attached two files.

    'Data' is where my sum range is - in the sheet this is a tab called 'Actual - 22222'

    'Tracker' is the sheet I have the formula in

    The formula in 'Tracker' cell J8 is:

    =IFERROR(SUMIF('Actual - 22222'!A:A,'22222'!A9, (OFFSET('Actual - 22222'!N:N,0,-'1.Comparison to Budget'!$C$3+1,1,'1.Comparison to Budget'!$C$3))),"")

    For reference, the ''1.Comparison to Budget'!$C$3' is the cell with the numeric offset mentioned above. at the moment this value is '4' (I overtyped it for the sake of testing).

    What is actually happening with this formula is that it is picking up the data from column K in the data range.. rather than all 4 columns

    Any help greatly appreciated!

    Please let me know if i haven't provided enough information.

    Thanks!

    Sam
    Attached Images Attached Images

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Problem with OFFSET in the sum range of a SUMIF formula

    I haven't gotten into the nitty gritty of your question, but I have a general suggestion to greatly ease your life when dealing with fiscal years that start midyear.

    In a nutshell, add a column to your exported data to flag the pertinent data. Then ANY function you apply to the data table can work in its simplest form.

    1) I would have a PERIODS sheet with a two-column table for looking up FISCAL YEAR ID.
    Please Login or Register  to view this content.
    2) Then I'd add a simple VLOOKUP into the data in a new column, if the transaction date were in column A of the data sheet:
    =VLOOKUP(A2, Periods!$A:$B, 2, 1)

    Copy the formula own and you get the ID for each row of data. All the heavy lifting is now DONE.

    You can now do simple SUMIF using the new ID to collate the data. I would actually use a simple PIVOT TABLE.

    Instead of numerical IDs, it could even be descriptive text, any kind at all. Since the VLOOKUP brings in the values consistently the Pivot Table would offer that text as display values.

    Your life goes back to being simple in the reporting world.

    My 2 cents.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

+ 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] Sumif and offset formula that does not use arrays?
    By PaulG2015 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 11-01-2015, 03:55 PM
  2. Offset + Sumif, #REF! when using range A:A
    By TylerB2 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 04-07-2014, 07:00 PM
  3. .Offset, .Range and .Cells problem in VBA
    By newbi004 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-30-2013, 06:44 AM
  4. Autofilter range offset problem
    By Deutz in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 05-24-2012, 11:12 AM
  5. VBA Range Offset Problem
    By mhynson in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-08-2012, 07:18 AM
  6. Problem with Slow ReCalculation of Dynamic Range Using OFFSET
    By Kris_Wright_77 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-18-2005, 06:20 AM
  7. Replies: 2
    Last Post: 08-22-2005, 01:05 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