+ Reply to Thread
Results 1 to 4 of 4

Nested if in Array

  1. #1
    Registered User
    Join Date
    06-01-2004
    Posts
    36

    Nested if in Array

    Good day,

    I have attached my speadsheet to simpfly my describtion of my troubles. On the Team1 tab I have a formula entered in cell C4 that should work but it doesn't. What I am trying to do is lookup the Employee's ID and Day of the Week on the Time Off tab, and if it finds both for that pictular day of the week then return and "A" for absent and null string if it finds nothing. My current formula is working for the first cell but it isn't for the ones below.
    Any help would be great.

    Chris
    Attached Files Attached Files

  2. #2
    Ardus Petus
    Guest

    Re: Nested if in Array

    Can a given empid appear several times on different rows of sheet Time_Off?

    Regards,
    --
    AP

    "TheLeafs" <[email protected]> a écrit
    dans le message de
    news:[email protected]...
    >
    > Good day,
    >
    > I have attached my speadsheet to simpfly my describtion of my troubles.
    > On the Team1 tab I have a formula entered in cell C4 that should work
    > but it doesn't. What I am trying to do is lookup the Employee's ID and
    > Day of the Week on the Time Off tab, and if it finds both for that
    > pictular day of the week then return and "A" for absent and null string
    > if it finds nothing. My current formula is working for the first cell
    > but it isn't for the ones below.
    > Any help would be great.
    >
    > Chris
    >
    >
    > +-------------------------------------------------------------------+
    > |Filename: Array.zip |
    > |Download: http://www.excelforum.com/attachment.php?postid=4531 |
    > +-------------------------------------------------------------------+
    >
    > --
    > TheLeafs
    > ------------------------------------------------------------------------
    > TheLeafs's Profile:

    http://www.excelforum.com/member.php...o&userid=10131
    > View this thread: http://www.excelforum.com/showthread...hreadid=526784
    >




  3. #3
    Registered User
    Join Date
    06-01-2004
    Posts
    36
    Hey Ardus,

    EmpID can appear more then once, but not of the same day of the week.

    Thanks

  4. #4
    Forum Contributor
    Join Date
    03-12-2004
    Posts
    329
    Something seems odd, I literally tried the exact same formula on 2 different sheets, results came out different. (Although the formula doesn't make much sense without array input) See attachment.

    Try this instead

    C4 = IF(SUMPRODUCT(--(Time_Off!$A$2:$A$1152=Team1!$A4),--(Time_Off!$F$2:$F$1152=Team1!C$1))>0,"A","")

    Copy across and down.
    Attached Files Attached Files

+ 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