+ Reply to Thread
Results 1 to 4 of 4

Lesser of 2 values with a cap?

  1. #1
    Forum Contributor
    Join Date
    12-30-2009
    Location
    US
    MS-Off Ver
    Excel 2003, 2010, 2016, 2019, & Office 365
    Posts
    194

    Lesser of 2 values with a cap?

    Hi

    I am trying to make a formula that does the following in C1:

    Display the lesser value A1 or B1. But if the value is over 500,000 the vaule displayed is only 500,000.

    An example would be:

    A1: 579,000
    B1: 600,000
    C1 should show 500,000

    or

    A1: 650,000
    B1: 425,000
    C1 should show 425,000

  2. #2
    Valued Forum Contributor
    Join Date
    05-13-2010
    Location
    Belo Horizonte, Brazil
    MS-Off Ver
    Excel 2003; 2007
    Posts
    441

    Re: Lesser of 2 values with a cap?

    Try this: =IF(MIN(A1:B1)>500000,500000,MIN(A1:B1))
    ...If my answer helped you, Please, click on. * Add Reputation (at left)

    Best regards.
    Marc?lio Lob?o

  3. #3
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,946

    Re: Lesser of 2 values with a cap?

    or a slightly shorter version....
    =MIN(A1:B1,500000)
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  4. #4
    Valued Forum Contributor
    Join Date
    05-13-2010
    Location
    Belo Horizonte, Brazil
    MS-Off Ver
    Excel 2003; 2007
    Posts
    441

    Re: Lesser of 2 values with a cap?

    FDibbins option is a BETTER indication!

+ 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] Lesser of two formulas
    By akelic in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-15-2012, 10:46 AM
  2. Lesser of two cells
    By geagle in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-30-2007, 03:44 AM
  3. [SOLVED] specifying the lesser of two values
    By Leo Kerner in forum Excel General
    Replies: 8
    Last Post: 03-02-2006, 03:00 AM
  4. [SOLVED] if greater or lesser than
    By ditchy in forum Excel General
    Replies: 5
    Last Post: 08-04-2005, 12:05 AM
  5. lesser equal ?
    By -[::::Shamran::::]- in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-09-2005, 06:06 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