+ Reply to Thread
Results 1 to 6 of 6

Sumproduct: how to ignore blank variables

  1. #1
    Registered User
    Join Date
    05-04-2006
    Posts
    56

    Sumproduct: how to ignore blank variables

    Hello,
    I've got a data table various things to lookup.
    I use a list of variables to build the sumproduct from.
    The issue I have is that while some variable fields are blank, it seems the sumproduct is returning a result on the "blank value" of the cell instead of ignoring it.
    How do I get it to ignore blank cells in the variables?????

    I've been using these two
    =SUMPRODUCT((Channel=B25)*(Licensee=B26)*(State=B27)*(SalesRep=B28)*(SalesData))
    =SUMPRODUCT(--(Channel=B25),--(Licensee=B26),--(State=B27),(Sales Data))

  2. #2
    Forum Moderator vlady's Avatar
    Join Date
    09-22-2011
    Location
    Philippines - OLSHCO -Guimba-Nueva Ecija
    MS-Off Ver
    2021
    Posts
    4,361

    Re: Sumproduct: how to ignore blank variables

    you can try to use isnumber(STATE=B27)

    or add another --(STATE<>"")

    depends on where to check
    I think people forget the word "THANK YOU!!!!" Do you still know it???

    There is a little star ( ADD REPUTATION ) below those person who helped you. Click it to say your "PRIVATE APPRECIATION TO THEIR EFFORT ON THEIR CONTRIBUTIONS "

    Regards,
    Vladimir

  3. #3
    Registered User
    Join Date
    05-04-2006
    Posts
    56

    Re: Sumproduct: how to ignore blank variables

    Hi Vladdy,
    I've tried that, and adding an
    *OR(State=$B$27,State<>"")*OR(SalesRep.....
    or
    OR(State=$B$27,State="")

    Essentially we have four variables. And we want one formula that return the result on all 4 variables. If one variable is blank, then don't count it. i.e only sum for the cells that contain a value

  4. #4
    Forum Moderator vlady's Avatar
    Join Date
    09-22-2011
    Location
    Philippines - OLSHCO -Guimba-Nueva Ecija
    MS-Off Ver
    2021
    Posts
    4,361

    Re: Sumproduct: how to ignore blank variables

    maybe like this??
    =SUMPRODUCT(--(Channel=B25),--(Channel<>""),--(Licensee=B26),--(license<>""),--(State=B27),--(state<>""),(Sales Data))

  5. #5
    Registered User
    Join Date
    05-04-2006
    Posts
    56

    Re: Sumproduct: how to ignore blank variables

    still no joy, now i've tried using ISNUMBER:
    Please Login or Register  to view this content.

  6. #6
    Forum Guru
    Join Date
    05-24-2011
    Location
    India
    MS-Off Ver
    Office 2021
    Posts
    2,237

    Re: Sumproduct: how to ignore blank variables

    Hello robotlust,

    Not sure I am following you correctly.

    IF(B25="", then look Channel <>"", otherwise Channel = B25)
    IF(B26="", then look Licensee<>"", otherwise Licensee = B26)
    IF(B27="", then look State <>"", otherwise State = B27)

    Is this your requirement, try with SEARCH.

    Please Login or Register  to view this content.
    Assume Channel , Licensee & State fields are text entries NOT numbers.
    Regards,
    Haseeb Avarakkan

    __________________________________
    "Feedback is the breakfast of champions"

+ 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