+ Reply to Thread
Results 1 to 5 of 5

Formula for Minimum and Maximum amounts

  1. #1
    Registered User
    Join Date
    04-29-2013
    Location
    London
    MS-Off Ver
    Excel 2007
    Posts
    2

    Formula for Minimum and Maximum amounts

    Hello.

    Apologies if this is not the right area as I am new to this forum milarky!!

    I have to produce an excel spreadsheet and one part on it need the following:

    All staff receive a higher cost allowance which is 20% of their salary. This bit I can do, but there is a minimum and maximum amount that they can receive.

    Can this be done using one formula so that the cell reflects either the minimum, maximam or the actual figure between this.

    Sorry if this is a really simple thing to do and I have just made myself sound really dumb

    Thanks
    Karen

  2. #2
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Formula for Minimum and Maximum amounts

    =MIN(500, MAX(100, A1*0.2))
    Definitely not a dumb question.
    Does that make sense to you?
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  3. #3
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Formula for Minimum and Maximum amounts

    Try

    =MIN(MAX(A2*B2,D2),E2)

    A2 = Salary
    B2 = 20%
    D2 = Minimum Amount
    E2 = Maximum Amount

  4. #4
    Registered User
    Join Date
    04-29-2013
    Location
    London
    MS-Off Ver
    Excel 2007
    Posts
    2

    Re: Formula for Minimum and Maximum amounts

    Thanks all. Wow. That was really quick with the replies. Glad that I did not sound stupid ... or you are letting me believe that I do not!!

    Thanks again

  5. #5
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Formula for Minimum and Maximum amounts

    Glad to help, thanks for the feedback.

    Wise man say "The only stupid question is the one you do not ask"

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

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