# Calculate number of specific item in Single select column

**URL:** <https://forum.seatable.com/t/calculate-number-of-specific-item-in-single-select-column/4931>\
**Category:** Formulas\
**Created:** [July 18, 2024, 3:34pm UTC](https://forum.seatable.com/t/calculate-number-of-specific-item-in-single-select-column/4931 "2024-07-18T15:34:52Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![ivan07](https://forum.seatable.com/letter_avatar_proxy/v4/letter/i/ce73a5/32.png) [@ivan07](https://forum.seatable.com/u/ivan07)\
**Post date:** [July 18, 2024, 3:34pm UTC](https://forum.seatable.com/t/calculate-number-of-specific-item-in-single-select-column/4931/1 "2024-07-18T15:34:52Z")

</div>

Hi  
I have a Single select column1, with options A, B, C  
and would like to calculate how many A-s, B-s, C-s are there, but cannot find out how to do it with formula.  
Any help would be appreciated.

Setup

- SeaTable Self-hosted, enterprise
- SeaTable Version 4.4.9:

---

<div class="post-metadata">

**Author:** ![bha](https://forum.seatable.com/user_avatar/forum.seatable.com/bha/32/4702_2.png) [@bha](https://forum.seatable.com/u/bha)\
**Post date:** [July 18, 2024, 3:57pm UTC](https://forum.seatable.com/t/calculate-number-of-specific-item-in-single-select-column/4931/2 "2024-07-18T15:57:04Z")

</div>

Hi @ivan07 ,  
I’m afraid it’s not directly possible, but it really depends on what you need to do with this value:

- if you just need to check it, you can create a view grouped by column1, and each group will show you the count  
 ![counts](https://forum.seatable.io/uploads/default/original/2X/3/382b39b982779c246a047d477c0199042b4c009b.png)
- if you need to use this value in further calculations, you can:
  - create one column by option with a simple if formula (for example `if({ABC}="A",1,"")` for A, and the create another column, use Data processing / Calculate accumulated value and check for the bigger value
  - use a script to fill a special column (compared to the solution above, it will allow you to store every count in the same column and you’ll be able to check the count on every row and not only on the last one)
  - replace your single select column by a link to other record column and create a table with three records : your three options. This way, you can simply create a Link formula / countlink column in this table to get this information

Probably not as simple as you wished, bu it’s the best I can think of for now… Hope this helps you anyway

Bests,  
Benjamin

---

<div class="post-metadata">

**Author:** ![ivan07](https://forum.seatable.com/letter_avatar_proxy/v4/letter/i/ce73a5/32.png) [@ivan07](https://forum.seatable.com/u/ivan07)\
**Post date:** [July 18, 2024, 4:10pm UTC](https://forum.seatable.com/t/calculate-number-of-specific-item-in-single-select-column/4931/3 "2024-07-18T16:10:15Z")

</div>

Actually I would like to make a statistics how many A answers, B answers and C answers. Answ  
ers are in Column1 and Column2. All are A, B, C, but from different type of people - thats why I have two different columns, because from the same company 2 different people can answer.

---

<div class="post-metadata">

**Author:** ![bha](https://forum.seatable.com/user_avatar/forum.seatable.com/bha/32/4702_2.png) [@bha](https://forum.seatable.com/u/bha)\
**Post date:** [July 18, 2024, 4:33pm UTC](https://forum.seatable.com/t/calculate-number-of-specific-item-in-single-select-column/4931/4 "2024-07-18T16:33:52Z")

</div>

Then the last method sounds easier to me : Column1 and Column2 will both be Link columns, and in your options table, you’ll have to create two Link formula / countlinks columns (one for Column1 and one for Column2), and then a last formula column being the sum of the two previous columns (see bellow).

 ![abcs](https://forum.seatable.io/uploads/default/original/2X/0/0c5515e7c9aa441391ba0485d535ad68208b31b5.png)  
Doing so, you’ll be able to create for example a pie chart with the percent of every option  
 ![pie](https://forum.seatable.io/uploads/default/original/2X/1/169e297adb93f5eb9f026202a9c05e478bed277b.png)

---

<div class="post-metadata">

**Author:** ![ivan07](https://forum.seatable.com/letter_avatar_proxy/v4/letter/i/ce73a5/32.png) [@ivan07](https://forum.seatable.com/u/ivan07)\
**Post date:** [July 18, 2024, 5:06pm UTC](https://forum.seatable.com/t/calculate-number-of-specific-item-in-single-select-column/4931/5 "2024-07-18T17:06:16Z")

</div>

That works great,  
thanks

---

<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:** [July 20, 2024, 5:06pm UTC](https://forum.seatable.com/t/calculate-number-of-specific-item-in-single-select-column/4931/6 "2024-07-20T17:06:58Z")

</div>

Closed on July 20, 2024, 5:06pm UTC

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