IF(AND) can't seem to sort out the order

Options
Carl
Carl ✭✭
edited 12/09/19 in Smartsheet Basics

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

Β 

Β 

Comments