+ Reply to Thread
Results 1 to 5 of 5

How to cap formula result ??

  1. #1
    Registered User
    Join Date
    07-20-2014
    Location
    Wales
    MS-Off Ver
    Office 2007
    Posts
    8

    How to cap formula result ??

    Hi,

    I'm new to all things Excel but have managed to get the correct result from my formula, However I need to cap the output between the range -7 and +7 e.g if the result is <-7 then change it to -7, If it's >7 change it to 7, Otherwise no change.

    Thanks in advance for any help....

  2. #2
    Forum Expert
    Join Date
    05-01-2014
    Location
    California, US
    MS-Off Ver
    Excel 2010
    Posts
    1,795

    Re: How to cap formula result ??

    Quote Originally Posted by 404 View Post
    I'm new to all things Excel but have managed to get the correct result from my formula, However I need to cap the output between the range -7 and +7 e.g if the result is <-7 then change it to -7, If it's >7 change it to 7, Otherwise no change.
    Being new, keep in mind for future reference that it is always a good idea to provide concrete examples. An example formula, in this case.

    Try the following:

    =MIN(7,MAX(-7,A1*A2))
    Last edited by joeu2004; 07-20-2014 at 03:10 PM. Reason: cosmetic

  3. #3
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,429

    Re: How to cap formula result ??

    Formula: copy to clipboard
    Please Login or Register  to view this content.



    Regards, TMS
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  4. #4
    Registered User
    Join Date
    07-20-2014
    Location
    Wales
    MS-Off Ver
    Office 2007
    Posts
    8

    Re: How to cap formula result ??

    Both methods worked perfectly,

    Thanks very much for the help.....

  5. #5
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,429

    Re: How to cap formula result ??

    You're welcome.



    If you are satisfied with the solution(s) provided, please mark your thread as Solved.


    New quick method:
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

    Or you can use this way:

    How to mark a thread Solved
    Go to the first post
    Click edit
    Click Go Advanced
    Just below the word Title you will see a dropdown with the word No prefix.
    Change to Solved
    Click Save


    You may also want to consider thanking those people who helped you by clicking on the little star at the bottom left of their reply to your question.

+ 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. [SOLVED] Need help about rounding result from formula result.
    By calvinle in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-14-2014, 03:06 PM
  2. Formula Result showing Formula not result
    By petevang in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-24-2013, 12:33 AM
  3. isblank & vlookup formula returns #n/a result and incorrect result
    By helpmeplease333 in forum Excel General
    Replies: 5
    Last Post: 05-06-2012, 11:41 PM
  4. [SOLVED] Advanced formula - Return result & Show Cell Reference of result
    By Irv in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 05-05-2006, 10:40 PM
  5. Median result used in formula gives incorrect result
    By vlatham in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 09-21-2005, 12:05 PM

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