【问题标题】:Formulae for SharePoint List not workingSharePoint 列表的公式不起作用
【发布时间】:2012-02-02 11:20:35
【问题描述】:

=IF([结束日期]=''" , "TBC",IF[结束日期]

SharePoint 列表中计算字段的此公式不起作用。结束日期是一列,今天我认为它是 sharepoint 中今天日期的函数。

错误是语法错误?

【问题讨论】:

  • , IF[End Date]
  • 您是在 Excel 还是 SharePoint 中执行此操作?为什么是 Excel 标签?

标签: excel sharepoint


【解决方案1】:

假设您是在 SharePoint 计算列而不是 Excel 中执行此操作(从您的问题和标签中不清楚),那么 Steve 的语法是正确的,但还有一个更大的问题。

You can't use Today in SharePoint calculated column formula - it does not work.

您会发现很多文章都在谈论伪造的 Today 列技巧,但它不起作用,因为公式仅在您更新记录时更新。明天再看,你仍然会看到今天的结果——它不会更新。

【讨论】:

    【解决方案2】:

    我认为你的第一个 IF 中有一个额外的报价。

    而不是这个:

    =IF([End Date]=''" , "TBC",IF([End Date]< (Today -14), "Archived" , IF([End Date]<Today,"Inactive", "Active" ))
    

    试试这个:

    =IF([End Date]="" , "TBC",IF([End Date]< (Today -14), "Archived" , IF([End Date]<Today,"Inactive", "Active" ))
    

    【讨论】:

    • 如果只有 Excel 有语法突出显示它的方式!
    猜你喜欢
    • 1970-01-01
    • 2018-05-08
    • 2018-01-30
    • 2014-06-24
    • 2019-10-28
    • 2018-06-05
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多