+ Reply to Thread
Results 1 to 8 of 8

SUMPRODUCT Writing Error

  1. #1
    Forum Contributor
    Join Date
    04-30-2013
    Location
    D.C.
    MS-Off Ver
    Excel 2010
    Posts
    192

    SUMPRODUCT Writing Error

    I am wondering what I am writing inaccurately here:

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    This returns as #VALUE!.

    D:D needs to equal 1.
    H:H needs to be equal or between 4000 and 4999.

    Help, please. =D

  2. #2
    Forum Expert Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: SUMPRODUCT Writing Error

    Try

    =SUMPRODUCT('GDetail FY13'!$I:$I*('GDetail FY13'!$D:$D=1)*('GDetail FY13'!H:H>=4000)*('GDetail FY13'!H:H<=4999))
    or
    =SUMIFS('GDetail FY13'!$I:$I,'GDetail FY13'!$D:$D,1,'GDetail FY13'!H:H,">="&4000,'GDetail FY13'!H:H,"<="&4999)
    Life's a spreadsheet, Excel!
    Say thanks, Click *

  3. #3
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: SUMPRODUCT Writing Error

    between 4000 and 4999 needs to be written as 2 seperate criteria..
    >= 4000
    and
    <=4999

    =SUMPRODUCT(('GDetail FY13'!$I:$I)*('GDetail FY13'!$D:$D=1)*('GDetail FY13'!H:H>=4000)*('GDetail FY13'!H:H<=4999)*-1)

    However, even though XL2007+ allows it, I highly recommend NOT using entire column refs like H:H.
    Restrict it to your actual used range H1:H10000

  4. #4
    Forum Contributor
    Join Date
    04-30-2013
    Location
    D.C.
    MS-Off Ver
    Excel 2010
    Posts
    192

    Re: SUMPRODUCT Writing Error

    Thank for the help.. However the formulas given by Ace_XL and Jonmo1 does not work.

    Here is the updated formula after considering the given formulas above. Still does not work. Still returns as #VALUE!.
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  5. #5
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: SUMPRODUCT Writing Error

    If there are any TEXT values in colum I, it will result in #Value!
    This is often caused because row 1 is headers.
    Try making all the ranges begin in row 2 instead of 1.

  6. #6
    Forum Contributor
    Join Date
    04-30-2013
    Location
    D.C.
    MS-Off Ver
    Excel 2010
    Posts
    192

    Re: SUMPRODUCT Writing Error

    Ahh.. Yes, this got rid of the #VALUE! error. But it still returns nothing, just an zero (or a dash in this case).

    Current formula in C7:N7 in GReport. that needs to be edited.
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Attached is the sample of what I am working on.

    SampleHelp.xlsx

  7. #7
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: SUMPRODUCT Writing Error

    Columne H are not really numbers, they are "Numbers Stored As Text"

    Indicated by the little green triangles at top left corner of each cell...

    Copy a blank cell
    Highlight Column H
    Right click - Paste Special - Values - Add

  8. #8
    Forum Contributor
    Join Date
    04-30-2013
    Location
    D.C.
    MS-Off Ver
    Excel 2010
    Posts
    192

    Re: SUMPRODUCT Writing Error

    Thanks! It was indeed Numbers Stored As Text. Used Text to Column method to address this issue.

    Marking this as SOLVED.

  9. #9
    Forum Contributor
    Join Date
    04-30-2013
    Location
    D.C.
    MS-Off Ver
    Excel 2010
    Posts
    192

    Re: SUMPRODUCT Writing Error

    Thanks! It was indeed Numbers Stored As Text. Used Text to Column method to address this issue.

    Marking this as SOLVED.

  10. #10
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: SUMPRODUCT Writing Error

    You're welcome. Thanks for the feedback.

+ 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. Smarter Way of Writing This Sumproduct Formula
    By Excel-Access in forum Excel General
    Replies: 3
    Last Post: 07-04-2012, 06:32 AM
  2. Error in writing or statement
    By Excel-Access in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 06-23-2012, 10:33 PM
  3. Error when Writing code by macro
    By bagullo in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-11-2012, 08:03 AM
  4. Replies: 16
    Last Post: 11-07-2011, 02:28 PM
  5. [SOLVED] Error writing value to cell
    By Steven M (remove wax and invalid to reply) in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 04-10-2006, 09:30 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