+ Reply to Thread
Results 1 to 3 of 3

Nested IF Formula Evaluation Pls

  1. #1
    Registered User
    Join Date
    03-30-2006
    Posts
    3

    Wink Nested IF Formula Evaluation Pls

    Hi everyone,

    I may have discovered a way to solve my own question in a previous post (http://www.excelforum.com/showthread.php?t=528208). I'm attempting to use a nested IF formula as shown below:

    =IF(B9=shifts!A1:A17,"8",IF(B9=shifts!A19:A35,"6","OFF"))

    B9 is a dropmenu of listed shifts (not available shifts) from another worksheet within the same workbook, titled "shifts". From the "shifts" worksheet, cells A1 through A17 are 8 hour shifts, while A19 through A35 are 6 hour shifts. I'm attempting to create a formula in D9 (the hours column), which will automatically fill in 8, 6, or OFF, depending upon the selection from the dropdown menu in B9.

    I *almost* succeeded with a normal IF formula (where *8 was true & everything else false). Then I realized nesting would probably be better, since I didn't want any hours sitting in D during an employee's day off Any help would be VERY much appreciated. Thanx in advance...

    Big M

  2. #2
    Andrew Taylor
    Guest

    Re: Nested IF Formula Evaluation Pls

    I'm not sure I completely understand your requirement, but try

    =IF(OR(B9=shifts!A1:A17),"8",IF(OR(B9=shifts!A19:A35),"6","OFF"))

    entered as an Array Formula (Ctrl-Shift-Enter)

    hth
    Andrew



    Big M wrote:
    > Hi everyone,
    >
    > I may have discovered a way to solve my own question in a previous post
    > (http://www.excelforum.com/showthread.php?t=528208). I'm attempting to
    > use a nested IF formula as shown below:
    >
    > =IF(B9=shifts!A1:A17,"8",IF(B9=shifts!A19:A35,"6","OFF"))
    >
    > B9 is a dropmenu of listed shifts (not available shifts) from another
    > worksheet within the same workbook, titled "shifts". From the
    > "shifts" worksheet, cells A1 through A17 are 8 hour shifts, while A19
    > through A35 are 6 hour shifts. I'm attempting to create a formula in
    > D9 (the hours column), which will automatically fill in 8, 6, or OFF,
    > depending upon the selection from the dropdown menu in B9.
    >
    > I *almost* succeeded with a normal IF formula (where *8 was true &
    > everything else false). Then I realized nesting would probably be
    > better, since I didn't want any hours sitting in D during an employee's
    > day off Any help would be *VERY* much appreciated. Thanx in
    > advance...
    >
    > Big M
    >
    >
    > --
    > Big M
    > ------------------------------------------------------------------------
    > Big M's Profile: http://www.excelforum.com/member.php...o&userid=32994
    > View this thread: http://www.excelforum.com/showthread...hreadid=528401



  3. #3
    Registered User
    Join Date
    03-30-2006
    Posts
    3

    Wink Thank you for the reply...

    Hi Andrew, thanx for replying.

    For some reason, I'm not having much luck . I only thought of the nested IF idea after checking out examples elsewhere on the net. I've also taken a look at the vlookup idea, but I'm not certain if that may help or not. Although I'm not entirely unfamiliar with Excel, this area just seems to be eluding me... If you happen to have any other ideas which may work, I'm open to any suggestions...

    Again, thanx for the input, it's much appreciated

    Big M

+ 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