+ Reply to Thread
Results 1 to 5 of 5

Capping a number returned by a formula

  1. #1
    Registered User
    Join Date
    08-24-2017
    Location
    Tennessee, USA
    MS-Off Ver
    Office 2013
    Posts
    11

    Capping a number returned by a formula

    I have this formula:

    =IF(A1>1599,A1,0)

    It returns all the items that are above 1600, but I need to figure out how to cap it at 3200. If an item is between 1600 and 3200, I need to return that number, but if it's above 3200, I need the formula to return 3200. I hope that makes sense.
    Last edited by Jessica at Heritage; 04-25-2019 at 03:09 PM.

  2. #2
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,080

    Re: Capping a number returned by a formula

    How about
    =MIN(IF(A1>1599,A1,0),3200)

  3. #3
    Registered User
    Join Date
    08-24-2017
    Location
    Tennessee, USA
    MS-Off Ver
    Office 2013
    Posts
    11

    Re: Capping a number returned by a formula

    That works fantastic! I tweaked it a little so it would look at two cells instead of just the one and the numbers all came back what they should have. Thank you so much!

  4. #4
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,080

    Re: Capping a number returned by a formula

    You're welcome & thanks for the feedback

  5. #5
    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,933

    Re: Capping a number returned by 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. Thanks.
    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.

+ 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. Capping the formula
    By MJLG in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-01-2018, 06:48 AM
  2. Hlookup on a returned number
    By scorpain in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 03-29-2017, 04:56 AM
  3. Replies: 3
    Last Post: 06-14-2012, 09:18 AM
  4. capping amount in formula?
    By jivins in forum Excel General
    Replies: 2
    Last Post: 11-25-2008, 02:01 PM
  5. Capping a formula value?
    By Scot B in forum Excel General
    Replies: 2
    Last Post: 12-27-2005, 07:45 PM
  6. Negative number returned as zero
    By singlgl1 in forum Excel General
    Replies: 3
    Last Post: 11-13-2005, 09:29 PM
  7. [SOLVED] number of rows returned by autofilter?
    By mark in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 06-15-2005, 01: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