+ Reply to Thread
Results 1 to 6 of 6

Sumproduct - Avoiding blanks

  1. #1
    Forum Contributor
    Join Date
    06-03-2008
    MS-Off Ver
    Excel 2007 (also have access to Excel 2000/2003)
    Posts
    368

    Sumproduct - Avoiding blanks

    Hi,

    I have the following formula:

    Please Login or Register  to view this content.
    This bascially checks how many occurances a youth (based on name and dob) has been reported this momnth (Month). The only problem is with this is it calculates blank entries. I have copied down the formula to 500 rows so it shows 500 occurances of the blanks.

    So is there any way to hide blank entries to prevent them showing as a total?

    Thank you in advance,

    JP

  2. #2
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582
    Without seeing your spreadsheet, it's hard to be sure but if you add an expression which checks for blanks, it should work. For example
    Please Login or Register  to view this content.
    Does that work for you?

    ChemistB

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

    =SUMPRODUCT((name=C4)*(dob=E4)*(MONTH(month)=MONTH(B4))*(month<>""))
    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.

  4. #4
    Forum Contributor
    Join Date
    06-03-2008
    MS-Off Ver
    Excel 2007 (also have access to Excel 2000/2003)
    Posts
    368
    Thank you both, NBVC I went with yours. I have a similar formula:

    Please Login or Register  to view this content.
    Which is also filled down 500 rows, once again it calculates blank entries how can I omit blanks?

    hank you in advance,

    JP

  5. #5
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898
    That one I would think would count the blanks if E4 were empty...

    Perhaps this might clean it up a bit?

    =SUMPRODUCT((name=C4)*(dob=E4)*(dob<>""))

  6. #6
    Forum Contributor
    Join Date
    06-03-2008
    MS-Off Ver
    Excel 2007 (also have access to Excel 2000/2003)
    Posts
    368
    Thanks that worked great.

    Really appreciated,

    JP

+ 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