+ Reply to Thread
Results 1 to 5 of 5

IF Sumproduct function in excel to exclude blank rows

  1. #1
    Forum Contributor
    Join Date
    08-08-2012
    Location
    USA, CA
    MS-Off Ver
    Excel 2007
    Posts
    131

    IF Sumproduct function in excel to exclude blank rows

    I have a if sum product function that will work only if all the cells are filled in. How do I add in a formula to exclude any blank cells from the list within this function.

    Please Login or Register  to view this content.
    I was thinking ERROR, but not sure if that will really work. Again not all rows are filled in and the function will not work until it has all been filled in. Any help would be much appreciated.

    Thank you,
    Newb

  2. #2
    Forum Expert NeedForExcel's Avatar
    Join Date
    03-16-2013
    Location
    Pune, India
    MS-Off Ver
    Excel 2016:2019, MS 365
    Posts
    3,873

    Re: IF Sumproduct function in excel to exclude blank rows

    So basically if no item in columns O & I match with O2 & I2 respectively, you want New to be displayed.. Is that so?
    Cheers!
    Deep Dave

  3. #3
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,939

    Re: IF Sumproduct function in excel to exclude blank rows

    Hard to say without seeing what that relates to, but have you considered using sumifs instead?

    Suggest you upload a small (clean) sample workbook (not a pic) of what you are working with, and what your expected outcome would look like.
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  4. #4
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: IF Sumproduct function in excel to exclude blank rows

    It is a normal formula so no need of Array type of keyboard input


    =IF(SUMPRODUCT(($O$2:$O$8818=O2)*ISNUMBER($I$2:$I$8818)*($I$2:$I$8818>I2))=0,"New","Old")


    If your problem is solved, then please mark the thread as SOLVED>>Above your first post>>Thread Tools>>
    Mark your thread as Solved


    If the suggestion helps you, then Click *below to Add Reputation

  5. #5
    Forum Contributor
    Join Date
    08-08-2012
    Location
    USA, CA
    MS-Off Ver
    Excel 2007
    Posts
    131

    Re: IF Sumproduct function in excel to exclude blank rows

    **Thank you ALL!!** ISNUMBER worked perfectly...I must remember that function and use it more often. -Newb

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Saving an Excel worksheet to PDF but exclude "SOME" blank rows in a range.
    By Westrich in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-02-2012, 02:09 AM
  2. Exclude blank rows from CSV file
    By mcinnes01 in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 01-05-2011, 10:52 AM
  3. Set Print Area Macro - Exclude Blank Rows
    By shudder in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-27-2009, 10:31 PM
  4. Sort Macro to Exclude Blank Rows?
    By ScottPcola in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-05-2006, 03:15 PM
  5. Copy rows, but exclude blank rows
    By Mary in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-01-2005, 04:05 AM

Tags for this Thread

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