+ Reply to Thread
Results 1 to 5 of 5

trying to set a floor and a ceiling for value calculation but failing

  1. #1
    Registered User
    Join Date
    12-11-2009
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    60

    trying to set a floor and a ceiling for value calculation but failing

    I am creating a spreadsheet that is pulling employee data from another sheet. Currently, our method for making salary recommendations is somewhat arbitrary and not consistent in application. I am attempting to create a spreadsheet that pulls from our employee data and recommends increases based on a number of criteria, and eventually recommends a total increase recommendation.

    However, the recommendations need to fall within the range of our positions. I need to create a statement that takes the base salary and multiplies it by the percent increase that is determined from other criteria - BUT - if the overall recommendation falls short of the range, I need it to recommend the minimum - AND - if it is above the maximum, I need it to cut the increase off at the maximum.

    For example:

    John Smith makes $100,000 but is being recommended for a 20% increase, to $120,000, however the max allowed is $110,000 - therefore the recommendation needs to be $110.

    Bobby Peterson makes $60,000 but is being recommended for a 20% increase, to $72,000, however the minimum allowed is $80,000 - therefore the recommendation needs to be $80.

    What formula would accomplish ensuring the minimum and maximum are considered? This is being used, but I have to use 2 cells and don't like that.

    =IF(ROUND((1+basesalary)*%increase,-2)<minimumsalary,minimum salary,(ROUND((1+basesalary)*% increase,-2)))

    Does this make sense?

  2. #2
    Forum Contributor
    Join Date
    05-16-2010
    Location
    UK
    MS-Off Ver
    2003 and 2007
    Posts
    252

    Re: trying to set a floor and a ceiling for value calculation but failing

    Could you send an example of your current workbook?

  3. #3
    Registered User
    Join Date
    12-11-2009
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    60

    Re: trying to set a floor and a ceiling for value calculation but failing

    Quote Originally Posted by pb71 View Post
    Could you send an example of your current workbook?
    here you go. thanks.
    Attached Files Attached Files

  4. #4
    Forum Contributor
    Join Date
    08-11-2009
    Location
    USA
    MS-Off Ver
    Excel 2003
    Posts
    149

    Re: trying to set a floor and a ceiling for value calculation but failing

    You need a nested MIN and MAX

    =MAX( MIN( salary * (1+recommended%) , 110000 ) , 80000 )

    In words, the larger of either a) the lesser of either i) the new salary or ii) the top limit or b) the bottom limit.

    In terms of your sample spreadsheet, it would be: =MAX( MIN( B5*(1+B20), B16 ), B14 )
    Last edited by masteff; 05-21-2010 at 05:36 PM.

  5. #5
    Registered User
    Join Date
    12-11-2009
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    60

    Re: trying to set a floor and a ceiling for value calculation but failing

    Quote Originally Posted by masteff View Post
    You need a nested MIN and MAX

    =MAX( MIN( salary * (1+recommended%) , 110000 ) , 80000 )

    In words, the larger of either a) the lesser of either i) the new salary or ii) the top limit or b) the bottom limit.

    In terms of your sample spreadsheet, it would be: =MAX( MIN( B5*(1+B20), B16 ), B14 )
    You're the man! thanks.

+ 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