+ Reply to Thread
Results 1 to 6 of 6

How to add a default value (if less than function) to a calculation

  1. #1
    Registered User
    Join Date
    09-23-2009
    Location
    washington dc
    MS-Off Ver
    Excel 2003
    Posts
    3

    Question How to add a default value (if less than function) to a calculation

    Might be the eastest thing in the world but I'm missing it

    I can't seem to figure out how to do this in excel? FoxPro no problems, Excel and I have problems? Go figure.

    Currently I'm dealing with this

    =IF(C4="",0,IF(C4>=1,(B4+D4+E4+F4+H4)))

    My problem is I want to add a minimum default value to this calculation.

    If my return from this string is less than $25 I want to return the value of $25 otherwise if it is greater than $25 I want to return the calculation of this string?

    Any help would be greatly appreciated. Thanks!
    Last edited by dbaseguy; 09-23-2009 at 11:04 AM.

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Might be the eastest thing in the world but I'm missing it

    Welcome to the forum.

    Please take a few minutes to read the forum rules, and then amend your thread title accordingly.

    Thanks.
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Registered User
    Join Date
    09-23-2009
    Location
    washington dc
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: Might be the eastest thing in the world but I'm missing it

    It might even be the Easiest thing in the world too!

  4. #4
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: How to add a default value (if less than function) to a calculation

    Thanks.

    =IF(C4="", 0, IF(C4>=1, MAX(25, B4+D4+E4+F4+H4) ) )

  5. #5
    Registered User
    Join Date
    09-23-2009
    Location
    washington dc
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: How to add a default value (if less than function) to a calculation

    Hey,

    Thanks for the help.

  6. #6
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: How to add a default value (if less than function) to a calculation

    Hey, you're welcome. Would you please mark the thread as Solved?

+ 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