+ Reply to Thread
Results 1 to 4 of 4

Excel 2007 : Sumproduct is including blanks

  1. #1
    Registered User
    Join Date
    12-06-2009
    Location
    egypt
    MS-Off Ver
    Excel 2007
    Posts
    18

    Sumproduct is including blanks

    Hello
    I am facing a prob with Sumproduct as it's including the blank cells in the calculation .



    N.B
    the blank cell in including if statement.

    thank you in advance



    Kindly find the attachement
    Attached Files Attached Files
    Last edited by ahmedmido; 11-16-2010 at 03:14 PM.

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,510

    Re: Sumproduct is including blanks

    Try this:

    =SUMPRODUCT(($A$1:$A$5>=I6)*($A$1:$A$5<=I10)*($B$1:$B$5>1)*($B$1:$B$5<>""))

    Regards
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Sumproduct is including blanks

    If you're only interested in numbers:
    -- replace the >1 test with an ISNUMBER test.

    If you need to test that the value is both numeric and >1 (ie <1 numbers are to be excluded)
    -- keep the >1 test and add as ISNUMBER test

    Alternatively given use of XL2007 avoid SUMPRODUCT altogether:

    Please Login or Register  to view this content.

  4. #4
    Registered User
    Join Date
    12-06-2009
    Location
    egypt
    MS-Off Ver
    Excel 2007
    Posts
    18

    Re: Sumproduct is including blanks

    Both formulas are working successfully :-)

    I really appreciate your usual support

    Many Many thanks
    Best Regards

+ 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