+ Reply to Thread
Results 1 to 4 of 4

Ignoring cells with zero value or blank

  1. #1
    Registered User
    Join Date
    04-13-2009
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2003
    Posts
    15

    Ignoring cells with zero value or blank

    I have the following formula in a spread sheet, when the destination is blank it adds the related cell.

    Can I amend the formula to ignore zero's or blank cells?

    {((=SUM(IF(Tracking!$F$4:$F$65536=C15,Tracking!$N$4:$N$65536,0))}

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

    Re: Ignoring cells with zero value or blank

    Per my other note on your other thread ... avoid arrays where possible, certainly avoid using arrays with large ranges (& generally accepted it's better to use Sumproduct than SUM(IF CSE as it's more robust)

    Re: your formula, there's no need to use an Array, a standard SUMIF would suffice (single condition):

    =SUMIF(Tracking!$F$4:$F$65536,C15,Tracking!$N$4:$N$65536)

    Limiting the range here is still a good practice to get into but not as important as when dealing with Arrays.

  3. #3
    Registered User
    Join Date
    04-13-2009
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2003
    Posts
    15

    Re: Ignoring cells with zero value or blank

    Quote Originally Posted by DonkeyOte View Post
    Per my other note on your other thread ... avoid arrays where possible, certainly avoid using arrays with large ranges (& generally accepted it's better to use Sumproduct than SUM(IF CSE as it's more robust)

    Re: your formula, there's no need to use an Array, a standard SUMIF would suffice (single condition):

    =SUMIF(Tracking!$F$4:$F$65536,C15,Tracking!$N$4:$N$65536)

    Limiting the range here is still a good practice to get into but not as important as when dealing with Arrays.
    Hey DonkeyOte, (sweet name btw)

    I've tried your formula without success so far, I'm not sure that it should or I might be misunderstanding the use/difference between the sumif & array formula...

    If you look at my other post, I have attached a dummy sample of a spead sheet I've built...

    http://www.excelforum.com/excel-work...ml#post2082016

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

    Re: Ignoring cells with zero value or blank

    I have uploaded an attachment to your other thread re: poor performance... as discussed Arrays are your issue (they always are I'm afraid).

+ 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