+ 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
    swindon, england
    MS-Off Ver
    Excel 2019 / Windows 10
    Posts
    4,204

    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
    Ipswich, England
    MS-Off Ver
    Excel 2016 (Win 10 - Work) & 365 Subscription (Win 10 - Home)
    Posts
    23,627

    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!

    STOP PRESS: Forum Rules Updated September 2018! Please read them here.
    Are you new to Power Query and don't know what to do with the code you've been given? Have a look here.
    Don't forget to say "thank you" to those who have helped you in your thread. If you wish, you can also reward them by clicking on their reputation star bottom left.

+ 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