+ Reply to Thread
Results 1 to 7 of 7

sumifs + offset formula issue

  1. #1
    Forum Contributor
    Join Date
    11-26-2010
    Location
    usa
    MS-Off Ver
    Office 365
    Posts
    1,224

    sumifs + offset formula issue

    hey all

    having some trouble with sumifs + offset formula. i have my data where it shows quantity by 2015, 2014, 2013.

    Through a drop down in "sheet1" cell C17, i want to be able to show the quantity by month for states/provinces.

    in "sheet1", cell D21 this is my formula:

    Please Login or Register  to view this content.
    it is giving me #value error...can someone pls help?

    thank you - attached is the sample file.
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    09-11-2014
    Location
    Washington, DC
    MS-Off Ver
    2016
    Posts
    1,907

    Re: sumifs + offset formula issue

    Your sum range and your criteria ranges don't match. What is the OFFSET() sum range doing in your formula?
    Spread the love, add to the Rep

    "None of us are as smart as all of us."

  3. #3
    Forum Expert
    Join Date
    09-11-2014
    Location
    Washington, DC
    MS-Off Ver
    2016
    Posts
    1,907

    Re: sumifs + offset formula issue

    In any case, try this formula instead. The results look accurate, but I'll let you be the judge. Paste into D21 as an array formula and confirm with CTRL+SHIFT+ENTER. Drag across and down to fill:

    Please Login or Register  to view this content.

  4. #4
    Forum Contributor
    Join Date
    11-26-2010
    Location
    usa
    MS-Off Ver
    Office 365
    Posts
    1,224

    Re: sumifs + offset formula issue

    with the offset, i am trying to make it go down 3 rows and then use match formula to "sum" the range i.e. 2014 column or 2015 column...

    basically, in C17, if i select "Year 2015", i want it go the respective range in the "data" sheet ie. column K and sum it, based on the state name and month.

    pls help!

  5. #5
    Forum Contributor
    Join Date
    11-26-2010
    Location
    usa
    MS-Off Ver
    Office 365
    Posts
    1,224

    Re: sumifs + offset formula issue

    Quote Originally Posted by mcmahobt View Post
    In any case, try this formula instead. The results look accurate, but I'll let you be the judge. Paste into D21 as an array formula and confirm with CTRL+SHIFT+ENTER. Drag across and down to fill:

    Please Login or Register  to view this content.
    Hello

    i tried this formula...however i do not think it is capturing the correct answer.

    for example,
    If i select "Year PY 2014" in cell C17 and for "alberta" for January, the formula shows 4295.52 (that is incorrect as it should be a whole number, so i assume it is looking at a wrong column).

    if i manual filter in the "Data" sheet, based on the above criteria, the answer should be 24,179.

    thank you

  6. #6
    Forum Contributor
    Join Date
    11-26-2010
    Location
    usa
    MS-Off Ver
    Office 365
    Posts
    1,224

    Re: sumifs + offset formula issue

    Quote Originally Posted by jw01 View Post
    Hello

    i tried this formula...however i do not think it is capturing the correct answer.

    for example,
    If i select "Year PY 2014" in cell C17 and for "alberta" for January, the formula shows 4295.52 (that is incorrect as it should be a whole number, so i assume it is looking at a wrong column).

    if i manual filter in the "Data" sheet, based on the above criteria, the answer should be 24,179.

    thank you
    I figured out what the issue was with your formula:

    the "match" range should have been this:
    MATCH($C$17&$C$18,Data!$K$61:$V$61,0)))

    so formula should be in D21
    =SUMPRODUCT(--(($C21=Data!$D$62:$D$7225)*(D$19=Data!$B$62:$B$7225)),INDEX(Data!$K$62:$V$7225,,MATCH($C$17&$C$18,Data!$K$61:$V$61,0)))

    It gives me the answer i need w/o using array, so i am not sure if i need array?

  7. #7
    Forum Expert
    Join Date
    09-11-2014
    Location
    Washington, DC
    MS-Off Ver
    2016
    Posts
    1,907

    Re: sumifs + offset formula issue

    Ah, my previous formula actually does work, I just forgot a small piece:

    Please Login or Register  to view this content.
    Still entered with CTRL+SHIFT+ENTER.

    If you want to use the method you provided in your previous post that alters my formula, that will work as well. The reason you won't need an array is because you are referencing one column for the MATCH portion of the formula (from K61:V61). However, if you go with the formula provided in this post, you won't need to referenced the concatenated cells from K59:V60 within K61:V61 at all.

    Either way, both methods will work.

+ 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. Dragging SUMIFS but need ranges to offset
    By LK0001 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 11-06-2014, 09:57 AM
  2. [SOLVED] SUMIFS with a dynamic, offset criteria range
    By adelcap in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-22-2014, 05:35 AM
  3. SUMIFS Formula Issue
    By keithd203 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-18-2013, 04:15 PM
  4. Help with OFFSET/MATCH/SUMIFS formula
    By brianjluke in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-22-2013, 10:02 AM
  5. User Defined Function using Sumifs, Offset, Match and CountA
    By PeterW2020 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-29-2011, 02:29 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