+ Reply to Thread
Results 1 to 3 of 3

IF AND Function

  1. #1
    Registered User
    Join Date
    05-05-2012
    Location
    Athens, Greece
    MS-Off Ver
    Excel 2010
    Posts
    33

    IF AND Function

    Hello

    I am trying to find a function that will limits in some rates

    e.g
    In colum A I have the rates.
    I want in colum B to have
    If < -20% to return -20%
    if from -20% to 50% to retun the current value
    and if > 50% to return 50%

    Is this possible to have this in one function?

  2. #2
    Forum Expert Jakobshavn's Avatar
    Join Date
    08-17-2012
    Location
    Lakehurst, NJ, USA
    MS-Off Ver
    Excel 2007
    Posts
    1,970

    Re: IF AND Function

    =if(a1<-0.2,-0.2,if(a1>0.5,0.5,a1))
    Gary's Student

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

    Re: IF AND Function

    =min(max(-20%,a1),50%)
    "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

+ 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