I've read, reread and reread again a number of posts/articles about IF(AND) expressions but for some reason it's just not getting through my thick head and I think my mysql expressions aren't letting me mentally work this out.
This is the specific expression I've been trying to sort out - this is unparsable
=IF(AND(Department2 < >"Ship", "ERROR, "") [End Date]6 < [End Date]7), "ERROR", "")
What I'm trying to do is have the worksheet flag any changes I've made in a schedule in calendar view that violate the date range ie. I have 5 sequential steps but I don't want to use dependencies for reasons too detailed to explain here.
I have it arranged in "backwards" order ie. last step above next last or a,b,c,d,e - step a = ship and then it goes to the next order.
So row 7 = last step in the process or "Ship", row 6 would be the first step in a new order or "Receive" and so on.
1) Logic - If the End Date for step a) is sooner than step b) display the word "Error", if not then blank
2) Logic - If the Department is not equal to "Ship" and condition 1 is true then display "Error", otherwise display a blank.
The reason for 2) is that it will always be < because it's reading a new order so rather than get warned about false positives I need the second condition.
Any assistance with this would be greatly appreciated.
Carl