Closed Thread
Results 1 to 3 of 3

Excel formula to do a calculation if a cell has a value greater than zero

  1. #1
    Registered User
    Join Date
    01-17-2012
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    6

    Excel formula to do a calculation if a cell has a value greater than zero

    Hello everyone,

    I am having issues with a formula which I am hoping someone will be able to help me with.

    I have amounts in cells F1:F14 and a figure in D24. What I am trying to do is (in F15) calculate D24 minus F1:F14 divided by 14 **but only if D24 is greater than zero**. If D24 is a minus figure i need F15 to show as zero.

    If you could help that would be great.

  2. #2
    Forum Expert Bob Phillips's Avatar
    Join Date
    09-03-2005
    Location
    Wessex
    MS-Off Ver
    Office 2003, 2010, 2013, 2016, 365
    Posts
    3,284

    Re: Excel formula to do a calculation if a cell has a value greater than zero

    As before

    =IF(D24<0,0,(D24-SUM(F1:F14))/14)

  3. #3
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: Excel formula to do a calculation if a cell has a value greater than zero

    How many times do you intend asking this question?
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

Closed 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