+ Reply to Thread
Results 1 to 6 of 6

Using 'max' formula

  1. #1
    Registered User
    Join Date
    12-27-2013
    Location
    ND, United States
    MS-Off Ver
    Excel 2010
    Posts
    3

    Using 'max' formula

    How would I add the "MAX" formula to limit the result of the calculation if my existing formula is:
    =IF(C15="-","-",A15+B15-C15)

    Thanks!

  2. #2
    Forum Expert Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2013, 2016, O365
    Posts
    6,996

    Re: Using 'max' formula

    Can you describe what limit you want to place on the calculation?
    Ron
    Former Microsoft MVP - Excel (2006 - 2015)
    Click here to see the Forum Rules

  3. #3
    Registered User
    Join Date
    12-27-2013
    Location
    ND, United States
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: Using 'max' formula

    I need to make sure the calculation does not exceed 100.

    Is that the kind of description you are looking for?

  4. #4
    Forum Expert Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2013, 2016, O365
    Posts
    6,996

    Re: Using 'max' formula

    Yes...Try this regular formula:
    =IF(C15="-","-",MIN(A15+B15-C15,100))

    Dos that help?

  5. #5
    Registered User
    Join Date
    12-27-2013
    Location
    ND, United States
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: Using 'max' formula

    Perfect! Thank you!

  6. #6
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: Using 'max' formula

    Based on your last post in this thread, its apparent that you are satisfied with the solution(s) you've received and have solved your question, but you haven't marked your thread as "SOLVED". I will do it for you this time.

    In future, to mark your thread as Solved, you can do the following -
    Select Thread Tools-> Mark thread as Solved.

    Incase your issue is not solved, you can undo it as follows -
    Select Thread Tools-> Mark thread as Unsolved.

    Also, since you are relatively new to the forum, i would like to inform you that you can thank those who have helped you by clicking the small star icon located in the lower left corner of the post which helped you. This adds to the reputation of the person who has taken the time to help you.
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. how to hide formula in formula box, view lookup result in formula box?
    By vengatvj in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-14-2013, 04:06 PM

Tags for this Thread

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