计算列公式语法 [英] Calculated Column Formula Syntax

查看:80
本文介绍了计算列公式语法的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好b
$ b我正在寻找https://docs.microsoft.com/en-us/previous-versions/office/developer/ sharepoint-2010 / bb862071(v = office.14)有关如何使用正确的公式语法计算列的指导,但我得到的范围或错误包括"抱歉,某些事情
出错了。该公式包含语法错误或不受支持。让我相信我不在SharePoint网站上,但我有点茫然和困惑。


我希望有人能指出我正确的方向!


我想创建一个列/字段,将预先输入的许多其他字段合并为一个。


这是我正在使用的公式...


= [Field1]& [Field2]& [Field3]& [Field4]


此公式的结果如下所示......


BluePinkYellowGreen


然而,这就是我所追求的......


评论1:蓝色

评论2:粉红色

评论3:黄色

评论4:绿色


所以我想要添加一些自定义文本(在这种情况下,返回的实际字段前面的txt"注释1"。我还想添加一些回车,以便每个字段都在它自己的行上。


只需使用一个字段来测试添加自定义txt前缀,这是我根据Microsoft的r创建的公式我之前分享的资源不起作用......


="评论1:"& TEXT([field1])


什么上面的代码有问题,有人可以帮忙吗?

解决方案


试试这个



= CONCATENATE(" Comment 1:",[Field1])



Hi

I'm looking on https://docs.microsoft.com/en-us/previous-versions/office/developer/sharepoint-2010/bb862071(v=office.14) for guidance on how to use the correct formula syntax to calculate a column but I'm getting a range or errors including "Sorry, something went wrong. The formula contains a syntax error or is not supported." Leading me to believe I'm not on a SharePoint site but I am so left a little dazed and confused.

I hope someone can point me in the right direction!

I want to create a column/field that will conglomerate numerous other fields entered beforehand into one.

This is the formula I have which is working...

=[Field1]&[Field2]&[Field3]&[Field4]

The result of this formula looks like this...

BluePinkYellowGreen

However, this is what I'm after...

Comment 1: Blue
Comment 2: Pink
Comment 3: Yellow
Comment 4: Green

So I want to add some custom text (in this case the txt "Comment 1" in front of the actual field that was returned. I also want to add some carriage returns so that each field lives on its own line.

Just working with one field to test adding a custom txt prefix, this is the formula I created based on Microsoft's resource I shared earlier which is not working...

="Comment 1: "&TEXT([field1])

What is wrong with the code above, can someone help?

解决方案

hi ,

try this

=CONCATENATE("Comment 1:",[Field1])


这篇关于计算列公式语法的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆