2014-06-18 218 views
0

我有9列設置與從0-4代表不同的數字範圍代表不同的狀態。爲了讓我的計算列等於「完成」,我需要確保所有9列等於0,3,4或空白,沒有別的。SharePoint計算列公式公式問題

這裏就是我想出來的,但它註冊爲無效:

=IF(AND(OR([TF Task Status]=3,[TF Task Status]=4,[TF Task Status]=0,[TF Task Status]="")),AND(OR([TH Task Status]=3,[TH Task Status]=4,[TH Task Status]=0,[TH Task Status]="")),AND(OR([SUP Task Status]=3,[SUP Task Status]=0,[SUP Task Status]="")),AND(OR([EHSD Task Status]=3,[EHSD Task Status]=0,[EHSD Task Status]="")),AND(OR([EHSRV Task Status]=3,[EHSRV Task Status]=0,[EHSRV Task Status]="")),AND(OR([SM Task Status]=3,[SM Task Status]=0,[SM Task Status]="")),AND(OR([TL Task Status]=3,[TL Task Status]=0,[TL Task Status]="")),AND(OR([VP Task Status]=3,[VP Task Status]=0,[VP Task Status]=""))),"Completed","") 

是否有這樣做的一個簡單的方法?一種不太麻煩的方式?

回答

0

您使用AND運營商公式裏面是不正確的 - 你應該簡單地鏈OR條件爲以逗號分隔的條件一個AND運營商內部,因爲這樣的:

=IF(AND(OR([TF Task Status]=3,[TF Task Status]=4,[TF Task Status]=0,[TF Task Status]=""),OR([TH Task Status]=3,[TH Task Status]=4,[TH Task Status]=0,[TH Task Status]=""),OR([SUP Task Status]=3,[SUP Task Status]=0,[SUP Task Status]=""),OR([EHSD Task Status]=3,[EHSD Task Status]=0,[EHSD Task Status]=""),OR([EHSRV Task Status]=3,[EHSRV Task Status]=0,[EHSRV Task Status]=""),OR([SM Task Status]=3,[SM Task Status]=0,[SM Task Status]=""),OR([TL Task Status]=3,[TL Task Status]=0,[TL Task Status]=""),OR([VP Task Status]=3,[VP Task Status]=0,[VP Task Status]="")),"Completed","") 

測試&證實自定義內list in SharePoint 2010.