+ Reply to Thread
Results 1 to 7 of 7

How to set IF function inside SUM?

  1. #1
    Forum Contributor
    Join Date
    02-02-2008
    Location
    EU
    MS-Off Ver
    MS Excel 2007 Professional version
    Posts
    214

    How to set IF function inside SUM?

    I have function like:
    =SUMPRODUCT((MONTH('MyTab'!D3:D102)=1)*('MyTab'!U3:U102))

    How to set IF function as empty or 0 value inside D3:D102 should not SUM any cells.

  2. #2
    Forum Contributor
    Join Date
    01-04-2013
    Location
    Melbourne
    MS-Off Ver
    Excel 2010
    Posts
    179

    Re: How to set IF function inside SUM?

    Hi toplisek, could you be a bit clearer as to what you want the IF to check for? Do you mean if SUMPRODUCT((MONTH('MyTab'!D3:D102)=1)*('MyTab'!U3:U102)) is equal to zero, don't sum?

  3. #3
    Forum Contributor
    Join Date
    08-23-2012
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    163

    Re: How to set IF function inside SUM?

    May be something like this....

    =SUMPRODUCT((MONTH(MyTab!D3:D102)=1)*(MyTab!D3:D102<>0)*(MyTab!U3:U102))

  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: How to set IF function inside SUM?

    Something like this...

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    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 Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: How to set IF function inside SUM?

    As i understand the question.

    =IF(SUMPRODUCT((D3:D102="")*(D3:D102=0))>0,"",SUMPRODUCT((MONTH(D3:D102)=1)*(U3:U102)))
    Regards

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

    Advanced Excel Techniques: http://excelxor.com/

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

  6. #6
    Forum Contributor
    Join Date
    01-04-2013
    Location
    Melbourne
    MS-Off Ver
    Excel 2010
    Posts
    179

    Re: How to set IF function inside SUM?

    Quote Originally Posted by Fotis1991 View Post
    As i understand the question.

    =IF(SUMPRODUCT((D3:D102="")*(D3:D102=0))>0,"",SUMPRODUCT((MONTH(D3:D102)=1)*(U3:U102)))
    After reading your answer, the question makes sense

  7. #7
    Forum Contributor
    Join Date
    02-02-2008
    Location
    EU
    MS-Off Ver
    MS Excel 2007 Professional version
    Posts
    214

    Re: How to set IF function inside SUM?

    It worsk. Thanks. What will do <>0

+ 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