+ Reply to Thread
Results 1 to 5 of 5

SUMIF Error

Hybrid View

lesoies SUMIF Error 01-22-2013, 11:45 PM
dilipandey Re: SUMIF Error 01-23-2013, 12:49 AM
Teethless mama Re: SUMIF Error 01-23-2013, 12:50 AM
lesoies Re: SUMIF Error 01-23-2013, 01:44 AM
Teethless mama Re: SUMIF Error 01-23-2013, 02:25 AM
  1. #1
    Forum Contributor
    Join Date
    07-17-2012
    Location
    N/A
    MS-Off Ver
    Excel 2010
    Posts
    218

    SUMIF Error

    Can anyone tell me why the following SUMIF formula doesn't work? I get a "the formula you typed contains an error" message when I ctrl+shift+enter:
    =SUMIF(N(OFFSET(Stats!$B$4,D64:D81,))/MMULT(N(OFFSET(Stats!$B$4,D64:S81,)),TRANSPOSE(COLUMN(D64:S81)^0)),">0")/18

    I find this odd because the same formula works with SUM:
    =SUM(N(OFFSET(Stats!$B$4,D64:D81,))/MMULT(N(OFFSET(Stats!$B$4,D64:S81,)),TRANSPOSE(COLUMN(D64:S81)^0)))/18

    Essentially, I am attempting to avoid DIV/0! errors using this method. I have seen other methods but it makes the code harder to follow and I'm trying to keep it as clean as possible. Can anyone help! I could use some wizardry!

  2. #2
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: SUMIF Error

    Hi lesoies,

    It appears that both the formulas are not same.. In SumIf you are considering ">0" but In SUM, there is no such consideration.

    Regards,
    DILIPandey
    <click on below * if this helps>
    DILIPandey, Excel rMVP
    +919810929744 (India), +971528225509 (Dubai), dilipandey@gmail.com

  3. #3
    Banned User!
    Join Date
    10-14-2006
    Posts
    1,211

    Re: SUMIF Error

    You can not manipulate with SUMIF(). Try SUMPRODUCT() instead

  4. #4
    Forum Contributor
    Join Date
    07-17-2012
    Location
    N/A
    MS-Off Ver
    Excel 2010
    Posts
    218

    Re: SUMIF Error

    SUMIF looks like it should work which is the frustrating part - do you know why it doesn't? i was hoping that i just had some kind of weird syntax error.

  5. #5
    Banned User!
    Join Date
    10-14-2006
    Posts
    1,211

    Re: SUMIF Error

    Quote Originally Posted by lesoies View Post
    SUMIF looks like it should work which is the frustrating part - do you know why it doesn't? i was hoping that i just had some kind of weird syntax error.
    Nope! Like I said in post #3. SUMIF only work "straight comparison"

    Example: SUMIF(A:A,"apple",B:B)

+ 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