My Assistant
![]()
Custom Search
|
![]() ![]() |
![]() |
![]() Post#1 | |
![]() UtterAccess VIP Posts: 13,488 Joined: 6-June 05 From: Dunbar,Scotland ![]() | Hi Everyone In the attached spreadsheet on the Leave Planner Sheet - Angelina Howe has an Entitlement of 26 Days She has taken 25 days Leave (V) Plus 2 Half Days (H1 & H2) Her remaining leave should be 0 but it shows .5 ? Anyone have any idea why this would be happening? Any help appreciated ![]() -------------------- Hope this helps? Mike Get happiness out of your work or you may never know what happiness is. |
![]() Post#2 | |
![]() Posts: 1,040 Joined: 26-January 14 From: London, UK ![]() | Some people might be worried that the attachment contains personal information. For the record, it might be a good idea for you to state that the names are not real and any identifiable personal information is removed. Just a thought. This post has been edited by nvogel: Dec 4 2019, 09:29 AM |
![]() Post#3 | |
![]() UtterAccess Moderator Posts: 11,908 Joined: 6-December 03 From: Telegraph Hill ![]() | Hi Mike, It's because that's what the formula in cell NW12 (and also all the other NW column formulae) specifies! CODE =IF(NJ12=NO12,"0",IF(NJ12>NO12,(NJ12-NO12)-0.5,FALSE)) NJ12 = 26 NO12 = 25 leads to: CODE =IF(26=25,"0",IF(26>25,(26-25)-0.5,FALSE)) So, you go to the False part of the first IF: IF(26>25,(26-25)-0.5,FALSE) Since 26>25 you go to the True part and return the value: (26-25)-0.5 Result = 0.5 I reckon the formula needs some adjusting! -------------------- Regards, David Marten |
![]() Post#4 | |
![]() UtterAccess Moderator Posts: 11,908 Joined: 6-December 03 From: Telegraph Hill ![]() | Have you checked Peter Hibbs' Holiday Planner db in the Code Archive? -------------------- Regards, David Marten |
![]() Post#5 | |
![]() UtterAccess VIP Posts: 13,488 Joined: 6-June 05 From: Dunbar,Scotland ![]() | Hi David I just don't understand why it is not working for just this one employee? How would I modify the formula? -------------------- Hope this helps? Mike Get happiness out of your work or you may never know what happiness is. |
![]() Post#6 | |
![]() UtterAccess Moderator Posts: 11,908 Joined: 6-December 03 From: Telegraph Hill ![]() | It's the literal 0.5 that is causing it. Change the formula in NW7 to: CODE =IF(NJ7 = NO7, "0", IF(NJ7 > NO7, (NJ7 - NO7) - (0.5*(NU7 + NT7)), FALSE)) and drag down. You have your sheet set to not display zeroes. IF you want to see zeroes, then instead use: CODE =IF(NJ7 = NO7, "0", IF(NJ7 > NO7, IF((NJ7 - NO7) - (0.5*(NU7 + NT7)) = 0, "0", (NJ7 - NO7) - (0.5*(NU7 + NT7))), FALSE)) hth, d -------------------- Regards, David Marten |
![]() Post#7 | |
![]() UtterAccess VIP Posts: 13,488 Joined: 6-June 05 From: Dunbar,Scotland ![]() | Hi David As usual works a treat Many thanks yet again ![]() -------------------- Hope this helps? Mike Get happiness out of your work or you may never know what happiness is. |
![]() Post#8 | |
![]() UtterAccess Moderator Posts: 11,908 Joined: 6-December 03 From: Telegraph Hill ![]() | ![]() -------------------- Regards, David Marten |
![]()
Custom Search
|
![]() | Search Top Lo-Fi | 11th December 2019 - 10:03 AM |