# Count of values in a column

**URL:** <https://forum.seatable.com/t/count-of-values-in-a-column/2756>\
**Category:** Formulas\
**Created:** [September 21, 2023, 5:36pm UTC](https://forum.seatable.com/t/count-of-values-in-a-column/2756 "2023-09-21T17:36:58Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![ThBunte-B-TK](https://forum.seatable.com/user_avatar/forum.seatable.com/thbunte-b-tk/32/3249_2.png) [@ThBunte-B-TK](https://forum.seatable.com/u/ThBunte-B-TK)\
**Post date:** [September 21, 2023, 5:36pm UTC](https://forum.seatable.com/t/count-of-values-in-a-column/2756/1 "2023-09-21T17:36:58Z")

</div>

We are looking for a formula to count the occurrences of certain text strings in a column.  
Example  
Column {Title} = value “Adobe Photoshop” = count 1  
How is that possible.

---

<div class="post-metadata">

**Author:** ![rdb](https://forum.seatable.com/user_avatar/forum.seatable.com/rdb/32/1869_2.png) [@rdb](https://forum.seatable.com/u/rdb)\
**Post date:** [September 21, 2023, 6:59pm UTC](https://forum.seatable.com/t/count-of-values-in-a-column/2756/2 "2023-09-21T18:59:59Z")

</div>

SeaTable supports quite some formulas ([Formelreferenz - SeaTable](https://seatable.io/docs/formeln/formelreferenz/)), but there is no ready-to-use formula for your use.

I’m write a little Python script and run that by an automation everytime the source column is updated. In Python, counting strings in strings is trivial: [Python String count()](https://www.programiz.com/python-programming/methods/string/count)

---

<div class="post-metadata">

**Author:** ![cdb](https://forum.seatable.com/user_avatar/forum.seatable.com/cdb/32/7_2.png) [@cdb](https://forum.seatable.com/u/cdb)\
**Post date:** [September 21, 2023, 9:14pm UTC](https://forum.seatable.com/t/count-of-values-in-a-column/2756/3 "2023-09-21T21:14:55Z")

</div>

This might probably help you:  
If this is your base:  
 ![image](https://forum.seatable.io/uploads/default/original/2X/c/c1bdc0748db5b091bea872961f2adb196cadcfb5.png)

The following formula counts if **Adobe Photoshop** is found.

```auto
if(find("Adobe Photoshop", {Title}, 1)>0; 1, 0)

```

Is that what you mean?

To summarize, you have the _SUM_ at the end of the page or you use _data processing_ to sum up. Here is an explanation about this:  
[Data processing: Calculate cumulated values - SeaTable](https://seatable.io/docs/datenverarbeitung/datenverarbeitung-kumulierte-werte-berechnen/?lang=auto).

---

<div class="post-metadata">

**Author:** ![ThBunte-B-TK](https://forum.seatable.com/user_avatar/forum.seatable.com/thbunte-b-tk/32/3249_2.png) [@ThBunte-B-TK](https://forum.seatable.com/u/ThBunte-B-TK)\
**Post date:** [September 22, 2023, 5:49am UTC](https://forum.seatable.com/t/count-of-values-in-a-column/2756/4 "2023-09-22T05:49:55Z")

</div>

Hi,  
first thank for the quick responses and help! It’s good to see that there was a good community for seatable.

The formula goes in the right direction - but my problem was to count in a list of leads all rows with the identic title - to generate a clear ID of trainings.  
We have an bunch of trainings with equal Title an SKU and generate a unique trainings-ID with combination of {Year}-{SKU}-Number. And for generating these number we search for the count of titles in these Year +1.  
Actual these was done by an Excel formula, but we will change all these lists and Elements to seatable 😉

---

<div class="post-metadata">

**Author:** ![system](https://forum.seatable.com/uploads/default/original/1X/04603423fe81a46c321283663086c475429e8ccb.png) [@system](https://forum.seatable.com/u/system)\
**Post date:** [September 28, 2023, 10:07am UTC](https://forum.seatable.com/t/count-of-values-in-a-column/2756/5 "2023-09-28T10:07:42Z")

</div>

Closed on September 28, 2023, 10:07am UTC

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.
