+ Reply to Thread
Results 1 to 9 of 9

Min and Max of a Value Based from the result of a Formula

  1. #1
    Registered User
    Join Date
    02-26-2015
    Location
    Philippines
    MS-Off Ver
    2010
    Posts
    11

    Min and Max of a Value Based from the result of a Formula

    Hi guys,

    I just need some help what will be the best formula to put.. I tried my best but no luck.. Here's what I want to achieve.


    A1 = Has the Given Data
    B2 = to perform the formula and return the condition below
    If the result is equal of less than 150, the result should stay at 150 as minimum.
    If the result is equal or higher than 900, the result should stay at 900 as maximum.

    Formula
    (A1*3%)/2

    Exceed Max
    65,000 * 3% = 1,950 / 2 = 975 (should be replaced by 900 per the condition created)

    Below Min
    7,000 * 3% = 210 / 2 = 105 (should be replaced by 150 per the condition created)

    Else
    If the condition aren't meet, the value should return based on the formula
    18,000 * 3% = 540 / 2 = 270 (GOOD)


    Thanks in Advance!

  2. #2
    Forum Expert
    Join Date
    09-07-2014
    Location
    Israel
    MS-Off Ver
    office 365 for MAC
    Posts
    3,105

    Re: Min and Max of a Value Based from the result of a Formula

    Fast answers need clear examples. Post a small Excel sheet (not a picture) showing realistic & representative sample data WITHOUT confidential information (10-20 rows, not thousands...) and some manually calculated results. Just before posting, scroll down to GO ADVANCED, click, and then scroll down to MANAGE ATTACHMENTS and click again. Now follow the instructions at the top of that screen.

  3. #3
    Forum Expert PaulM100's Avatar
    Join Date
    10-09-2017
    Location
    UK
    MS-Off Ver
    Office 365
    Posts
    2,108

    Re: Min and Max of a Value Based from the result of a Formula

    Most likely =if(((A1*3%)/2)<=150,150,if(((A1*3%)/2)>=900,900,(A1*3%)/2))
    Click the * to say thanks.

  4. #4
    Registered User
    Join Date
    02-26-2015
    Location
    Philippines
    MS-Off Ver
    2010
    Posts
    11
    Quote Originally Posted by PaulM100 View Post
    Most likely =if(((A1*3%)/2)<=150,150,if(((A1*3%)/2)>=900,900,(A1*3%)/2))
    Thanks Paul will try that.

  5. #5
    Registered User
    Join Date
    02-26-2015
    Location
    Philippines
    MS-Off Ver
    2010
    Posts
    11
    Quote Originally Posted by belinda200 View Post
    Fast answers need clear examples. Post a small Excel sheet (not a picture) showing realistic & representative sample data WITHOUT confidential information (10-20 rows, not thousands...) and some manually calculated results. Just before posting, scroll down to GO ADVANCED, click, and then scroll down to MANAGE ATTACHMENTS and click again. Now follow the instructions at the top of that screen.
    Thanks for the advice..

  6. #6
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,466

    Re: Min and Max of a Value Based from the result of a Formula

    B2:

    =max(min(a1*3%/2,900),150)
    Quang PT

  7. #7
    Registered User
    Join Date
    02-26-2015
    Location
    Philippines
    MS-Off Ver
    2010
    Posts
    11

    Re: Min and Max of a Value Based from the result of a Formula

    Hi Paul and Bebo..

    Both are working. BIG thanks!

  8. #8
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,891

    Re: Min and Max of a Value Based from the result of a Formula

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

    Also, you may not be aware that you can thank those who have helped you by clicking the small star icon located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of those who helped.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  9. #9
    Registered User
    Join Date
    02-26-2015
    Location
    Philippines
    MS-Off Ver
    2010
    Posts
    11

    Re: Min and Max of a Value Based from the result of a Formula

    Thanks AliGW. Will do

+ 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 add recommendations based on formula result
    By excelnerd95 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-17-2020, 07:55 PM
  2. [SOLVED] Linking 1 tab to another based on a cell result, picks a column based on result formula
    By MattExcelLearner in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 10-23-2018, 11:08 AM
  3. Replies: 7
    Last Post: 11-27-2015, 11:12 AM
  4. Replies: 1
    Last Post: 01-27-2013, 11:05 AM
  5. Excel 2007 : Calculate Value based on formula result
    By okinawaman in forum Excel General
    Replies: 2
    Last Post: 05-10-2011, 04:12 PM
  6. Text result based on IF Formula
    By martins in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 06-25-2008, 02:38 PM
  7. Average based on formula result
    By atr in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-29-2007, 12:17 AM

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