+ Reply to Thread
Results 1 to 6 of 6

Return a value within specific parameters

  1. #1
    Registered User
    Join Date
    11-24-2008
    Location
    North Carolina
    Posts
    41

    Return a value within specific parameters

    Hello--

    I am looking for help with a formula for the following desired result: I have a cell with a simple formula in it. I would like to modify the contents of the cell so that if the formula itself returns a value greater than x, then the cell returns only x, and if the same formula returns a value less than 0, then the cell returns only 0. Otherwise, the cell would return whatever value the formula gives between 0 and x.

    I hope that makes sense. Thanks for any help you can provide.
    Last edited by ezdizzy; 09-22-2009 at 04:32 PM.

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Help with a formula

    Your post does not comply with Rule 1 of our Forum RULES. Your post title should accurately and concisely describe your problem, not your anticipated solution. Use terms appropriate to a Google search. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will be addressed according to the OP's experience in the forum: If you have less than 10 posts, expect (and respond to) a request to change your thread title. If you have 10 or more posts, expect your post to be locked, so you can start a new thread with an appropriate title.
    To change a Title on your post, click EDIT then Go Advanced and change your title, if 2 days have passed ask a moderator to do it for you.
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Return a value within specific parimeters

    Thanks for taking the time to read and comply with the rule .

    Now can you please provide your current formula.. and what is a sample of what x would be?

  4. #4
    Forum Expert
    Join Date
    03-23-2004
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    7,064

    Re: Return a value within specific parimeters

    Try

    Please Login or Register  to view this content.
    Regards
    Special-K

    Ensure you describe your problem clearly, I have little time available to solve these problems and do not appreciate numerous changes to them.

  5. #5
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Return a value within specific parimeters

    try
    =MAX(0,MIN(A1,B1)) where a1=X and b1 your formula
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  6. #6
    Registered User
    Join Date
    11-24-2008
    Location
    North Carolina
    Posts
    41

    Re: Return a value within specific parimeters

    Sorry for the late reply.

    Thank you both for your suggested solutions. Both formulas appear to be working just how I was wanting. Thanks again very much!!!!

+ 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