我可以在 SharePoint 中创建 COUNTIF 计算列吗?

编程入门 行业动态 更新时间:2024-10-23 05:34:31
本文介绍了我可以在 SharePoint 中创建 COUNTIF 计算列吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

有没有办法创建一个 SharePoint 计算列来返回列表中条目的数量?因此,如果我的列表中有 3 个客户,公司为Starbucks",我希望该字段返回3"

解决方案

(根据来自

Is there a way to create a SharePoint calculated column that returns a count of the number of entries in a list? So If I have 3 customers in my list with the company "Starbucks" I'd like the field to return "3"

解决方案

(Edited some wording for clarity per suggestion from dariom).

You may be able to get what you want with another list using a not-so-well-known variation of a lookup column.

Let's say you have a list called Companies with values in the title column like "Starbucks", "Peets", etc. Now you also have the Customers list you refer to, but the "Company" column is a lookup column pointing to the title column in the Companies list.

You can add a count very similar to what you described to your Companies list. Go to your Companies list, add a column of type "Lookup" referring to the Customers list and you'll notice that in the drop-down area where you define the lookup if you point back to the Customers list, you'll have a new option called "Count Related". This is here automatically because it recognizes that the Customers list has a lookup pointing back to this one. Select that Count Related option and now your Companies list will have a column counting how many customers are associated with that company.

No coding, Javascript hacks, or anything. Just hidden SharePoint auto-magic.

更多推荐

我可以在 SharePoint 中创建 COUNTIF 计算列吗?

本文发布于:2023-10-30 19:16:42,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1543748.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:SharePoint   COUNTIF

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!