如何计算人员字段中某个字符的数量? [英] How to count number of a certain character in a Person Field?

查看:114
本文介绍了如何计算人员字段中某个字符的数量?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我真正想做的是计算人员"字段中的人数,但是我认为如果我从该列中计算分号的数量也可以.

What I really want to do is count the number of people in a People field, but I think it would also work if I counted the number of semi-colons from the column.

我有一个人"字段,我想计算其中的人数.我想在第二个计算字段中

I have a People field that I want to count the number of people in it. I have a second, calculated field where I want to

FIND(;" ,, [ThePeople])

FIND(";",[ThePeople])

并计算分号的数量(大概它将返回该字段中的人数).

and count the number of semicolons (presumably it will return the number of people in the field).

感谢您的帮助!

推荐答案

您好Benhennyd,

Hi Benhennyd,

在SharePoint 2010中,无法在计算所得"列中计算人员字段.这是设计使然.

In SharePoint 2010, the people field cannot be calculated in the calculated column. It is by design.

要在计算的公式中使用人员列,您可以按工作流将人员字段的值复制到一行文本列中.然后在计算出的列公式中使用单行文本列.

To use the people column in the calculated formula, you could copy the value of the people field to a single line of text column by workflow. Then use the single line of text column in the calculated column formula.

要计算人员列中的人数,不能使用OOB方法实现.我们可以添加一些自定义代码来实现它.

To count the number of people in the people column, it cannot be achieved by OOB method. We can add some custom code to achieve it.

有一个类似的帖子:

最诚挚的问候,

萨拉范


这篇关于如何计算人员字段中某个字符的数量?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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