+ Reply to Thread
Results 1 to 4 of 4

Need help with SUMIF

  1. #1
    Forum Contributor
    Join Date
    02-14-2004
    Posts
    131

    Need help with SUMIF

    I want the sum of 3 numbers if all of the 3 cells contain numbers if not the value of the cell should be blank

    =SUMIF(L2:N2,,L2:N2)
    Range L2:N2 = {274.165," ", 35.057}
    Criteria ???????
    Sum_Range L2:N2

    What would be the criteria to use to return a value or 0 or blank if L2:N2 is blank

  2. #2
    Dave Peterson
    Guest

    Re: Need help with SUMIF

    =if(count(l2:n2)<>3,"",sum(l2:n2))

    Not really a =sumif() function.

    nander wrote:
    >
    > I want the sum of 3 numbers if all of the 3 cells contain numbers if not
    > the value of the cell should be blank
    >
    > =SUMIF(L2:N2,,L2:N2)
    > Range L2:N2 = {274.165," ", 35.057}
    > Criteria ???????
    > Sum_Range L2:N2
    >
    > What would be the criteria to use to return a value or 0 or blank if
    > L2:N2 is blank
    >
    > --
    > nander
    > ------------------------------------------------------------------------
    > nander's Profile: http://www.excelforum.com/member.php...fo&userid=6156
    > View this thread: http://www.excelforum.com/showthread...hreadid=515991


    --

    Dave Peterson

  3. #3
    L. Howard Kittle
    Guest

    Re: Need help with SUMIF

    Try this.

    =IF(COUNTA(L2:N2)<>3,0,SUM(L2:N2))

    HTH
    Regards,
    Howard

    "nander" <[email protected]> wrote in
    message news:[email protected]...
    >
    > I want the sum of 3 numbers if all of the 3 cells contain numbers if not
    > the value of the cell should be blank
    >
    > =SUMIF(L2:N2,,L2:N2)
    > Range L2:N2 = {274.165," ", 35.057}
    > Criteria ???????
    > Sum_Range L2:N2
    >
    > What would be the criteria to use to return a value or 0 or blank if
    > L2:N2 is blank
    >
    >
    > --
    > nander
    > ------------------------------------------------------------------------
    > nander's Profile:
    > http://www.excelforum.com/member.php...fo&userid=6156
    > View this thread: http://www.excelforum.com/showthread...hreadid=515991
    >




  4. #4
    Forum Contributor
    Join Date
    02-14-2004
    Posts
    131
    thanks, it works!!

+ 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