+ Reply to Thread
Results 1 to 6 of 6

sumifs/sumproduct formula returns VALUE error

  1. #1
    Forum Contributor
    Join Date
    05-01-2018
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    117

    sumifs/sumproduct formula returns VALUE error

    Hello Everyone

    I get stuck with one particular issue ...

    I'm trying to SUMIFS (or SUMPRODUCT with criteria) however I get VALUE error


    I got spreadsheet with over 500 rows (material) and 21 columns (months) and I' trying to get a sum of the products in specific period of time - for instance 2016

    I have used below array formulas however excel returns VALUE error

    =SUMIFS($B$2:$U$576, $A$2:$A$576, A2, $B$1:$U$1, ">="&DATE(2016, 1,1), $B$1:$U$1, "<="&DATE(2016, 12, 31))

    =SUMPRODUCT(--($B$1:$U$1>=DATE(2016, 1, 1)), --($B$1:$U$1<=DATE(2016, 12, 31)), $B$2:$U$576, $A$2:$A$576)

    both returns VALUE error

    Where do I make a mistake :/

    Thanks in advance for your support
    Attached Files Attached Files

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,695

    Re: sumifs/sumproduct formula returns VALUE error

    I changed the SP formula in X2 to this:

    =SUMPRODUCT(($B$1:$U$1>=DATE(2016, 1, 1))*($B$1:$U$1<=DATE(2016, 12, 31))*($A$2:$A$576=A2), $B$2:$U$576)

    and it returned a number. You did not set a criteria for column A.

    Hope this helps.

    Pete

  3. #3
    Forum Expert
    Join Date
    10-10-2016
    Location
    Sheffield
    MS-Off Ver
    365 and rarely 2016
    Posts
    3,210

    Re: sumifs/sumproduct formula returns VALUE error

    what do you want to do, every value in column A is unique, is this representitive of your data?

    if it is
    your sumproduct could be
    =SUMPRODUCT(--($B$1:$U$1>=DATE(2016, 1, 1)), --($B$1:$U$1<=DATE(2016, 12, 31)), B2:U2)

  4. #4
    Forum Contributor
    Join Date
    05-01-2018
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    117

    Re: sumifs/sumproduct formula returns VALUE error

    Quote Originally Posted by Pete_UK View Post
    I changed the SP formula in X2 to this:

    =SUMPRODUCT(($B$1:$U$1>=DATE(2016, 1, 1))*($B$1:$U$1<=DATE(2016, 12, 31))*($A$2:$A$576=A2), $B$2:$U$576)

    and it returned a number. You did not set a criteria for column A.

    Hope this helps.

    Pete
    Hi Pete

    amazing ... works
    thanks!!!

    Just wondering why sumifs does not work thou

  5. #5
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,146

    Re: sumifs/sumproduct formula returns VALUE error

    There is an invalid value in R13

    Try

    =SUMPRODUCT(--(YEAR($B$1:F$1)=2016)*($B$2:F$576)*($A$2:$A$576=$A2))

    SUMIFS will not work as all ranges have be the same size.

  6. #6
    Forum Contributor
    Join Date
    05-01-2018
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    117

    Re: sumifs/sumproduct formula returns VALUE error

    Quote Originally Posted by JohnTopley View Post
    There is an invalid value in R13

    Try

    =SUMPRODUCT(--(YEAR($B$1:F$1)=2016)*($B$2:F$576)*($A$2:$A$576=$A2))

    SUMIFS will not work as all ranges have be the same size.
    Hi John
    thanks ...
    this works as well

    Thank you all for support

+ 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] SUMPRODUCT returns #N/A error
    By maym in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-14-2017, 01:51 AM
  2. [SOLVED] SUMIFS returns a #Value error when the external spreadsheet is closed.
    By adil.master in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 06-27-2017, 12:37 PM
  3. [SOLVED] sumifs formula returns error
    By kronikjb in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 02-08-2015, 12:51 PM
  4. Sumproduct formula returns #VALUE error
    By Freddobonanza in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 01-30-2012, 01:36 AM
  5. SumProduct formula returns #VALUE Error
    By Ra21V12eN in forum Excel General
    Replies: 7
    Last Post: 02-12-2009, 04:48 PM
  6. Sumproduct Returns Value Error
    By annie46 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 04-08-2008, 03:16 PM
  7. sumproduct function returns #value or #ref error
    By Leo Heuser in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 09-06-2005, 04: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