Skip to main content

How can i count this? [solved]

  • March 14, 2021
  • 3 replies
  • 36 views

Forum|alt.badge.img

I have a lookup field giving me three different states: “act”, “belong” and “commit”
How can I count how many times “act” is in this lookup field?

If I use COUNTALL, I just get the total sum of states in this field. How can I just count just “act”?

Regards,
Tor Martin

3 replies

Kamille_Parks11
Forum|alt.badge.img+27

Do something to the effect of the following:

(
   LEN(SUBSTITUTE({type (from Completed task}, ", ", "")) - 
   LEN(SUBSTITUTE(SUBSTITUTE({type (from Completed task}, ", ", ""), "act", ""))
) / 3

Kamille_Parks11
Forum|alt.badge.img+27

Do something to the effect of the following:

(
   LEN(SUBSTITUTE({type (from Completed task}, ", ", "")) - 
   LEN(SUBSTITUTE(SUBSTITUTE({type (from Completed task}, ", ", ""), "act", ""))
) / 3

Or you could just do a Count field with a condition set to “where type = ‘act’”


Forum|alt.badge.img
  • Author
  • Participating Frequently
  • March 14, 2021

Or you could just do a Count field with a condition set to “where type = ‘act’”


Yes, that worked perfectly. Thank you :slightly_smiling_face: