+ Reply to Thread
Results 1 to 5 of 5

Nested IF Function with WORKDAY function

  1. #1
    Registered User
    Join Date
    09-03-2013
    Location
    Belfast, Ireland
    MS-Off Ver
    Excel 2010
    Posts
    18

    Nested IF Function with WORKDAY function

    Hello,

    Basically I have used this function to account for a date
    =WORKDAY(B20,2,Holidays!$A$48:$A$101)

    I have three different people taking different holiday times. So If I have three separate holiday lists
    Is there a way of saying
    If A1=Peter, WORKDAY(B20,2,Peter's holiday list) If A1=Mike, WORKDAY(B20,2,Mike's holiday list), IF A1=Ian, WORKDAY(B20,2,Ian's holiday list)

    Easy?

    Thank you
    Marie-Louise

  2. #2
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Nested IF Function with WORKDAY function

    create a named range for each and use that in conjunction with indirect

    =WORKDAY(B20,20,INDIRECT(A1))
    see attached
    alternatively use index with the attached workbook
    =WORKDAY($B$20,20,INDEX($K$2:$M$19,,MATCH(A1,$K$1:$M$1,0)))
    Attached Files Attached Files
    Last edited by martindwilson; 01-30-2014 at 08:01 AM.
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  3. #3
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: Nested IF Function with WORKDAY function

    What is the output?

    if text separate your three if statements with & if data with +
    Please Login or Register  to view this content.
    or

    Please Login or Register  to view this content.
    You will need to create the three named ranges. PeterLisr, MikeList, IanList

  4. #4
    Registered User
    Join Date
    09-03-2013
    Location
    Belfast, Ireland
    MS-Off Ver
    Excel 2010
    Posts
    18

    Re: Nested IF Function with WORKDAY function

    Spending all day at this spreadsheet but you've definitely helped crack it.
    I went for the formula below as the output was a date.
    If(A1="Peter", WORKDAY(B20,2,PeterList,0) ) + If(A1="Mike", WORKDAY(B20,2,MikeList), 0) + IF(A1="Ian", WORKDAY(B20,2,IanLst),0)

    Thanks!

  5. #5
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Nested IF Function with WORKDAY function

    Seems. Convoluted way to me but if it works

+ 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. Workday.INTL or Workday function issue
    By junoon in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-17-2013, 03:14 PM
  2. [SOLVED] workday function
    By shaknark in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-02-2012, 11:41 PM
  3. Workday function
    By jah72773 in forum Excel General
    Replies: 3
    Last Post: 10-15-2007, 07:08 PM
  4. [SOLVED] Using WORKDAY function
    By MT in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-05-2006, 02:55 PM
  5. [SOLVED] Excel Workday Function with another function
    By Monique in forum Excel General
    Replies: 2
    Last Post: 04-27-2006, 08:15 AM

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