+ Reply to Thread
Results 1 to 4 of 4

Limiting a cell result to a minimum value

  1. #1
    Registered User
    Join Date
    03-17-2019
    Location
    Portugal
    MS-Off Ver
    Office 2008 for Mac
    Posts
    5

    Limiting a cell result to a minimum value

    I'm working on a price list for driving services.

    Providing the variables for each destination (mileage and cost of tolls) then factoring the fixed values of price per mile, then the cost of return trip to base, etc, then VAT Tax, then rounding the value to intervals of 5 €. So far, the following formula is working for me:

    =CEILING (((E3*$AG$2*$AD$2)+(F3*2))*$AF$2;5)

    But then, I encounter a problem: In short trips, the value is less than the minimum charge, which is, let's say, 50.

    So, how do I limit the value in each cell, so that if a result is 25 or 35 it gets the minimum result of 50; And any result of 50 and above is the actual result?

    It shouldn't use yet another column (otherwise I could find a solution). Can you help me with this one?

    I'm on EXCEL 2008 for Mac, btw.

    Thanks

  2. #2
    Forum Expert
    Join Date
    06-08-2012
    Location
    Left the forum!
    MS-Off Ver
    Left the forum!
    Posts
    5,189

    Re: Limiting a cell result to a minimum value

    Welcome to Excel Forum!

    Try this one

    =MAX(CEILING (((E3*$AG$2*$AD$2)+(F3*2))*$AF$2;5);50)

    You may need to combine that with IF as well if you don't want the result of 50 to show when other data has not been entered.

  3. #3
    Registered User
    Join Date
    03-17-2019
    Location
    Portugal
    MS-Off Ver
    Office 2008 for Mac
    Posts
    5

    Re: Limiting a cell result to a minimum value

    Awesome! It worked.
    Thank you. I was writing the syntax wrong.

  4. #4
    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
    79,369

    Re: Limiting a cell result to a minimum value

    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. [SOLVED] limiting a result to a maximum
    By Marvo in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-19-2018, 01:21 PM
  2. [SOLVED] Using an IF function to return a minimum result
    By RichardJSigKits in forum Excel General
    Replies: 3
    Last Post: 03-25-2017, 11:28 AM
  3. Specify minimum result on formula
    By amsgator in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-01-2016, 07:23 PM
  4. Vlookup with a minimum result
    By Danimal615 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-28-2014, 01:34 PM
  5. Replies: 7
    Last Post: 04-17-2013, 03:53 PM
  6. Replies: 1
    Last Post: 01-25-2013, 01:58 PM
  7. Replies: 1
    Last Post: 02-01-2006, 02:00 AM

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