+ Reply to Thread
Results 1 to 5 of 5

Round to the nearest set range

  1. #1
    Registered User
    Join Date
    01-19-2009
    Location
    England
    MS-Off Ver
    Excel 365
    Posts
    66

    Round to the nearest set range

    Hi

    Hope you can help me, i am trying to solve an issue with my current work project. I need to determine how much holiday someone would get. This would depend on the amount of months they have been at the company (blue), i need to match it to the set range (Green). I have put the answers in orange.

    How would i do this automatically?
    Attached Files Attached Files
    Last edited by sput_sput; 08-20-2010 at 01:12 PM.

  2. #2
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Round to the nearest set range

    You can use:

    Q3: =DATEDIF(O3,TODAY(),"m")
    copied down

    R3: =IF($Q3<MIN($F$4:$K$4),0,LOOKUP($Q3,$F$4:$K$4,INDEX($F$5:$K$7,MATCH($P3,$E$5:$E$7,0),0)))
    copied down

    edit: modified per post #3
    Last edited by DonkeyOte; 08-20-2010 at 01:10 PM.

  3. #3
    Registered User
    Join Date
    01-19-2009
    Location
    England
    MS-Off Ver
    Excel 365
    Posts
    66

    Re: Round to the nearest set range

    Hi

    When i put the formula in it mentions a circular reference. However still works for Q3 but R3 brings up a value of 0!!!

  4. #4
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Round to the nearest set range

    Sorry - typo - the $R3 in the LOOKUP should be $Q3 - corrected above

  5. #5
    Registered User
    Join Date
    01-19-2009
    Location
    England
    MS-Off Ver
    Excel 365
    Posts
    66

    Re: Round to the nearest set range

    Oh thanks by the way for getting back quickly

+ 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