+ Reply to Thread
Results 1 to 6 of 6

Nested IF function with rounding values

  1. #1
    Registered User
    Join Date
    11-08-2017
    Location
    San Jose, CA
    MS-Off Ver
    2016
    Posts
    10

    Nested IF function with rounding values

    I am working on a annual salary increment file and I am having trouble with implementing an IF function at the beginning of the formula.

    This overall formula should do three things:
    1. Check if "Increase Recommended" is blank or 0. If true, then just return their original salary (without rounding it)
    2. Prorate any value in "Increase Recommended" based on their start date and add it to their existing salary to form their new base salary
    3. If receiving any increase, round their revised salary up to the closest hundred dollar

    I believe I have the formula working correctly for the proration and rounding but I am struggling to for it to recognize if the "Increase Recommended" column is blank or 0. In this case it is rounding the value which is not correct.

    Please feel free to improve my existing formula for proration and rounding as well, I greatly appreciate learning more efficient functions. Thanks!
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor
    Join Date
    01-07-2013
    Location
    Michigan
    MS-Off Ver
    O365
    Posts
    601

    Re: Nested IF function with rounding values

    You could just wrap your current formula in another IF statement:
    Please Login or Register  to view this content.
    Does that give you the results you're looking for?
    If someone helped achieve your solution, consider clicking "* Add Reputation" on their post.

    If your question has been answered, mark the thread as [SOLVED] using the Thread Tools menu at the top of the thread.

  3. #3
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: Nested IF function with rounding values

    Here's an alternative based on the small sample that you shared:

    =IF(D2=0,C2,CEILING(C2+(1-(B2-I$2)/365)*D2,100))

  4. #4
    Registered User
    Join Date
    11-08-2017
    Location
    San Jose, CA
    MS-Off Ver
    2016
    Posts
    10

    Re: Nested IF function with rounding values

    Yup, that did. Much appreciated, I have been looking at it for far too long!

    Thanks Melvosh!

  5. #5
    Registered User
    Join Date
    11-08-2017
    Location
    San Jose, CA
    MS-Off Ver
    2016
    Posts
    10

    Re: Nested IF function with rounding values

    I will look through this as well to test it out. I figured there was a quicker way to get to where I was going. Thank you!

  6. #6
    Forum Expert
    Join Date
    10-15-2018
    Location
    MA, USA
    MS-Off Ver
    2010, 2019
    Posts
    1,616

    Re: Nested IF function with rounding values

    I hesitate to post this attempt as the formula is so much longer than the previously posted solutions, but I think it's the only one that deals correctly with an employs whose start date is either before or is after the fiscal year in question.
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    If you have no employee start dates after 31-Mar-19 in your data then this has no advantage over Melvosh's more concise solution.

+ 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. Replies: 2
    Last Post: 01-05-2019, 03:33 AM
  2. [SOLVED] How to stop the MAX function rounding values
    By Br0ther_bruce in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 07-04-2014, 02:07 AM
  3. [SOLVED] Nested IF Function - The 'Condition' is based on two values within a Cell
    By Sinalk in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-12-2014, 11:27 AM
  4. Rounding or nested if statements, which to use
    By Ironman in forum Excel General
    Replies: 2
    Last Post: 01-11-2012, 07:11 PM
  5. Rounding values to specific range or increased nested if statements??
    By 311guy in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 08-23-2011, 12:58 PM
  6. reporting values using IF function; nested arrays
    By rippa in forum Excel General
    Replies: 7
    Last Post: 03-07-2011, 04:50 AM
  7. Rounding criteria within a nested vlookup and hlookup
    By Jay Z in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-23-2005, 07: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