+ Reply to Thread
Results 1 to 2 of 2

Complex IF OR AND

Hybrid View

  1. #1
    Registered User
    Join Date
    11-01-2011
    Location
    USA
    MS-Off Ver
    Excel 2004 for Mac
    Posts
    41

    Complex IF OR AND

    Really stumped. How would this write:

    If Substrate = Paper or Plastic or Glass
    and Day Of The Week = 2 or 3 or 4
    and the Time is 10PM
    then Due Date = Date + 2


    This is how I wrote out the following code, I just can't seem to understand the OR of the Day of the Week:

    If Substrate = Paper or Plastic or Glass
    and Day Of The Week = 6
    and the Time is 10PM
    then Due Date is Date + 4

    =IF(AND(OR(G9="Paper",G9="Plastic",G9="Glass"),C9=6,F9="10pm"),E9+4,E9)
    Last edited by firehousetk; 11-03-2011 at 05:04 PM.

  2. #2
    Forum Expert Whizbang's Avatar
    Join Date
    08-05-2009
    Location
    Greenville, NH
    MS-Off Ver
    2010
    Posts
    1,395

    Re: Complex IF OR AND

    =IF(AND(OR(G9="Paper",G9="Plastic",G9="Glass"),OR(WEEKDAY(C9)=2, WEEKDAY(C9)=3, WEEKDAY(C9)=4),F9="10pm"),E9+4,E9)

+ 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