+ Reply to Thread
Results 1 to 9 of 9

IF function using WORKDAYS and a Bank Holiday list - trying to add new holiday dates

  1. #1
    Registered User
    Join Date
    07-04-2013
    Location
    UK
    MS-Off Ver
    Excel 2010
    Posts
    4

    IF function using WORKDAYS and a Bank Holiday list - trying to add new holiday dates

    Hi,
    Hoping someone can help.
    I have 'inherited' a spreadsheet from a colleague that has left the company and I am trying to update a function.
    Basically, we have columns for
    Start Date - Which is set for staff to enter a date
    Automatic calculation of due date - (IF formula to calculate 10 working days from the 'Start Date', so excluding weekends and bank holidays.)

    Now the bank holiday list that we have embedded in a separate sheet only went up to the start of 2013. So I am attempting to change the formula to look at a longer list of bank holidays.
    I am pulling out my hair trying to get the formula to accept the new data set. I have tried manually changing the new cell it goes down to in the fx bar (i.e. A3 - A38) but it keeps reverting back.

    I can't remember how to 'set' the Bank Holiday list with regard to working days function.
    Any suggestions?

    TIA
    Last edited by jowarks; 07-05-2013 at 07:14 AM.

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,302

    Re: IF function using WORKDAYS and a Bank Holiday list - trying to add new holiday dates

    Hello and welcome to the forum.

    You may get more input if you share the formula and, ideally, a sample workbook.


    Regards, TMS
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Forum Expert
    Join Date
    09-20-2011
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    2,278

    Re: IF function using WORKDAYS and a Bank Holiday list - trying to add new holiday dates

    Hello
    You just need to reference the range that the holiday list is in, for example:

    Please Login or Register  to view this content.
    But better still I think is to create a dynamic named range to hold your holiday list which you can then add to or subtract. Below is a link to a video that shows a method using the Excel Table feature:

    http://www.youtube.com/watch?v=2O3fvlBHLzE

    Hope this helps.
    DBY

  4. #4
    Registered User
    Join Date
    07-04-2013
    Location
    UK
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: IF function using WORKDAYS and a Bank Holiday list - trying to add new holiday dates

    Thanks for the suggestions. I can change individual cells to cover the range but it won't change the whole column for me (500 rows) it seems to want me to change them all individually which can't be right!

    That video is great, and I will definitely do that in the future with spreadsheets I create. I am struggling to work it into this one that I didn't 'own' because some of the formulas she has used are ones which I am not familiar with, so I am just trying to do alterations rather than set up the formula again (because I'm not sure I'd know how!)

    I'm going to try and extrapolate into a separate spreadsheet so I can provide sample workbook without it having any confidential information in it.

  5. #5
    Registered User
    Join Date
    07-04-2013
    Location
    UK
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: IF function using WORKDAYS and a Bank Holiday list - trying to add new holiday dates

    PS, TMS, here is the formula
    I need it to read $A3:$A$45 and whilst I can edit this in individual cells, it's not letting me do it in bulk to the whole column

    =IF(L7="","",WORKDAY(L7,10,Sheet3!$A$3:$A$13))

  6. #6
    Forum Expert
    Join Date
    09-20-2011
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    2,278

    Re: IF function using WORKDAYS and a Bank Holiday list - trying to add new holiday dates

    Hello
    TMS appears to be offline at the moment but if I can make a suggestion, you don't need to select each individual formula. Select the whole range of formulas, then click in the Formula Bar to edit the formula, then enter the changes with CTRL + ENTER. This should edit the whole range.

    DBY

  7. #7
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,302

    Re: IF function using WORKDAYS and a Bank Holiday list - trying to add new holiday dates

    DBY's approach should address your problem for propagating the formula.

    However, the formula entered must relate to the first row selected.

    So, if, for example, that formula relates to row 7, we're OK, and you can select the cell in row 7 down to the cell in the last row of data, and, in the formula bar type:

    =IF(L7="","",WORKDAY(L7,10,Sheet3!$A$3:$A$45))

    and press Ctrl-Enter.

    The other option is to key the formula into row 7 and then, either copy it and paste it into the rest of the column, or use the autofill handle in the bottom right hand corner of the cell.

    Regards, TMS

  8. #8
    Registered User
    Join Date
    07-04-2013
    Location
    UK
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: IF function using WORKDAYS and a Bank Holiday list - trying to add new holiday dates

    THANK YOU both so much. A combo of using Ctrl Enter and then using the autofill handle in the bottom right corner of the cell seems to have done the trick.
    You have both saved me a lot of time wasting and cursing my ex colleague!

  9. #9
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,302

    Re: IF function using WORKDAYS and a Bank Holiday list - trying to add new holiday dates

    You're welcome. Thanks for the rep.


    If you are satisfied with the solution(s) provided, please mark your thread as Solved.


    New quick method:
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

    Or you can use this way:

    How to mark a thread Solved
    Go to the first post
    Click edit
    Click Go Advanced
    Just below the word Title you will see a dropdown with the word No prefix.
    Change to Solved
    Click Save


    You may also want to consider thanking those people who helped you by clicking on the little star at the bottom left of their reply to your question.

+ 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