+ Reply to Thread
Results 1 to 5 of 5

If statement required for a cell range

Hybrid View

  1. #1
    Registered User
    Join Date
    10-20-2009
    Location
    England
    MS-Off Ver
    Excel 2003
    Posts
    58

    If statement required for a cell range

    What I want to say is:

    If C36, C37, C38 or C39 contain a 0 then put 0 if not continue with the the formulae

    I have this but I know its not right as this is a sum:

    =IF(C36:C39=0,0,ROUNDUP((C36/C37)+(C38/C39),0))

    Anyone help?? thanks in advance.
    Last edited by scottb; 12-04-2009 at 08:51 AM.

  2. #2
    Forum Expert darkyam's Avatar
    Join Date
    03-05-2008
    Location
    Houston, TX
    MS-Off Ver
    2013
    Posts
    2,191

    Re: Cannot work out this formulae

    Hi, Scott. Please take a minute to read the forum rules and amend your title in accordance with rule 1. Thanks.

  3. #3
    Registered User
    Join Date
    10-20-2009
    Location
    England
    MS-Off Ver
    Excel 2003
    Posts
    58

    Re: If statement required for a cell range

    Apologies. I hope this worded correctly.

    Thanks

  4. #4
    Forum Expert darkyam's Avatar
    Join Date
    03-05-2008
    Location
    Houston, TX
    MS-Off Ver
    2013
    Posts
    2,191

    Re: If statement required for a cell range

    =if(countif(c36:c39,"=0"),0,roundup((c36/c37)+(c38/c39),0))

  5. #5
    Forum Contributor
    Join Date
    12-02-2009
    Location
    Akron, Ohio
    MS-Off Ver
    Excel 2010
    Posts
    208

    Re: If statement required for a cell range

    Another way to do it:

    =if(c36=0,0,if(c37=0,0,if(c38=0,0,if(c39=0,0,roundup((c36/c37)+(c38/c39),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