+ Reply to Thread
Results 1 to 3 of 3

Issues with using the SUMPRODUCT function

Hybrid View

Bones97698 Issues with using the... 05-11-2009, 09:20 AM
NBVC Re: Issues with using the... 05-11-2009, 09:37 AM
Bones97698 Re: Issues with using the... 05-11-2009, 09:47 AM
  1. #1
    Registered User
    Join Date
    05-11-2009
    Location
    Michigan
    MS-Off Ver
    Excel 2003
    Posts
    2

    Issues with using the SUMPRODUCT function

    Hello,

    I am having a pretty large issue with using the SUMPRODUCT function in regards to counting values in a column that are greater than 0. I have to use the following formula due to setting up autofilters on the sheet, so the use of a function that corresponds with this is necessary. I am using the following function to count values that are greater than 0:

    =SUMPRODUCT(SUBTOTAL(3,OFFSET(Z12:Z7566,ROW(Z12:Z7566)-ROW(Z12),0,1)),--(Z12:Z7566>0))
    It's pretty nasty, but the odd thing about this formula is that when I generate my sheet it comes up with a #VALUE! error...but when I double click and press enter it calculates just fine. It's extremely odd and frustrating.

    I've tried recalculating the sheet after the formulas have been set and this does not solve the issue (both in excel and also setting it in java). I think that the issue may center around the data that is being counted by the above function are also SUM functions. Could the issue potentially be the fact that the SUMPRODUCT function calculates cells that haven't been calculated yet by the SUM function? Or am I missing something else or should I be using a different formula completely? Suggestions are appreciated! Thanks.

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Issues with using the SUMPRODUCT function

    What do you mean by "when I generate my sheet"?

    Are you copying new data over old data?

    Can you supply a workbook sample showing this happening?
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Registered User
    Join Date
    05-11-2009
    Location
    Michigan
    MS-Off Ver
    Excel 2003
    Posts
    2

    Re: Issues with using the SUMPRODUCT function

    The sheet is being generated in a java application. It is coded and written to do a multitude of things. That being said, my question may not be able to be answered because of that, but here is an example of what i'm working with. Thanks for your help.
    Attached Files Attached Files

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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