+ Reply to Thread
Results 1 to 6 of 6

Sumproduct - four variables

  1. #1
    Registered User
    Join Date
    01-30-2006
    Posts
    39

    Question Sumproduct - four variables

    I am trying to sort through some data with four variables. I thought a sumproduct would work, but it doesn't seem to be working. Here is the formula. Any suggestions?

    SUMPRODUCT(--($L$9:$L$3038="Permanent"),--($E$9:$E$3038="No"),--($G$9:$G$3038="No"),--($C$9:$C$3038=R1),$H$9:$H$3038)

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

    what isn't working...wrong result or error message (which one?).
    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
    01-30-2006
    Posts
    39
    The response is not an error. It is producing the result of zero. Any idea why?

  4. #4
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898
    That probably means exact matches are not being found....

    make sure spelling is accurate and that some cells don't have extra spaces etc. I am not sure what is in R1, but also make sure that numbers are not stored as text, etc...

    if you want to post a sample zipped file... I can look at it for you.

  5. #5
    Forum Contributor
    Join Date
    10-27-2006
    Location
    United Kingdom
    MS-Off Ver
    EXCEL 2003 (2007 at home)
    Posts
    517

    Perhaps it's not the formula...

    Quote Originally Posted by jcastellano
    I am trying to sort through some data with four variables. I thought a sumproduct would work, but it doesn't seem to be working. Here is the formula. Any suggestions?

    SUMPRODUCT(--($L$9:$L$3038="Permanent"),--($E$9:$E$3038="No"),--($G$9:$G$3038="No"),--($C$9:$C$3038=R1),$H$9:$H$3038)
    I would suggest that there are NO rows where ALL the critera are SIMULTANEOUSLY met.

    Have you spelt "Permanent" correctly in every case?
    Is the TYPE of the variables in column C compatible with the TYPE of variable in R1? [--("1"=1) gives zero].
    Have you got any trailing or leading blanks or other "non-printing" characters in the data?

    Mark.

  6. #6
    Forum Contributor
    Join Date
    10-27-2006
    Location
    United Kingdom
    MS-Off Ver
    EXCEL 2003 (2007 at home)
    Posts
    517

    Smile

    Great minds think alike,
    but some can type more quickly!

+ 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