+ Reply to Thread
Results 1 to 5 of 5

when using IF function, what formula returns a value no greater than a set target?

  1. #1
    Registered User
    Join Date
    08-07-2013
    Location
    Manchester, England
    MS-Off Ver
    Excel 2013
    Posts
    4

    when using IF function, what formula returns a value no greater than a set target?

    I'm using an IF formula to increase a set quantity by 30% if the selected cell is less than 0, as per the example below.

    =IF($AN4<0,MROUND(Z4*1.3,1),0)

    What I need in addition to this formula is that the resulting value, once increased by 30%, should not exceed 50. I don't know how to extend this formula can anyone please help?

  2. #2
    Forum Expert daffodil11's Avatar
    Join Date
    07-11-2013
    Location
    Phoenixville, PA
    MS-Off Ver
    MS Office 2016
    Posts
    4,468

    Re: when using IF function, what formula returns a value no greater than a set target?

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

  3. #3
    Forum Expert ConneXionLost's Avatar
    Join Date
    03-11-2009
    Location
    Victoria, Canada
    MS-Off Ver
    2010
    Posts
    2,952

    Re: when using IF function, what formula returns a value no greater than a set target?

    How about:

    Please Login or Register  to view this content.
    Would you like to say thanks? Please click the: " Add Reputation" button, on the grey bar below the post.

  4. #4
    Registered User
    Join Date
    07-17-2013
    Location
    Richmond, VA USA
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: when using IF function, what formula returns a value no greater than a set target?

    =min(if($an4<0,mround(z4*1.3,1),0),50)

  5. #5
    Registered User
    Join Date
    08-07-2013
    Location
    Manchester, England
    MS-Off Ver
    Excel 2013
    Posts
    4

    Re: when using IF function, what formula returns a value no greater than a set target?

    Great thanks for your posts, they have really helped.

+ 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. Highlight if Greater/Less then Target Cell
    By CanadianFrodo in forum Excel General
    Replies: 11
    Last Post: 05-20-2012, 02:07 AM
  2. WorksheetFunction.Sum returns 0 for array of elements whose sum is greater than 0
    By RowanB in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 01-12-2012, 06:15 AM
  3. Worksheet_CHange (ByVal Target as Range) when target is formula cell
    By coasterman in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-09-2012, 07:00 PM
  4. Change the formula of a target cell in a self-defined worksheet function
    By mxcaocao in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-29-2008, 02:50 PM
  5. Remove Carriage Returns From Target Cell
    By JoJo in forum Excel General
    Replies: 1
    Last Post: 03-22-2007, 05:23 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