How do I count each selected option of checkbox?
Asked by Peter Liu:

A supervisor in my Division asked me Is there an easy way to determine which courses got the most votes? I've tried to follow the example on [edge://newtab (atlassian.com)](https://community.atlassian.com/t5/Confluence-questions/Counting-checkboxes-in-Confluence-Table/qaq-p/1015198?lightbox-message-images-1016779=46723iE5CEB53BA7EAC2D4). But I still struggled. My results are in the attached screenshot. Any help to proceed would be appreciated.

![Checkbox Options .jpg](https://community.atlassian.com/t5/image/serverpage/image-id/178410i7BDE3AC83E0D9DF2/image-size/large?v=v2&px=999 "Checkbox Options .jpg")![Pivot Table Attempt.jpg](https://community.atlassian.com/t5/image/serverpage/image-id/178411iBA4470A6DBBAAEF7/image-size/large?v=v2&px=999 "Pivot Table Attempt.jpg")![table1.jpg](https://community.atlassian.com/t5/image/serverpage/image-id/178412i179EC9F09818739C/image-size/large?v=v2&px=999 "table1.jpg")


Answers:
author: Katerina Kovriga {Stiltsoft}
body: Hi [@Peter Liu](/t5/user/viewprofilepage/user-id/4713556) ,

The [Table Filter and Charts for Confluence](https://marketplace.atlassian.com/apps/27447/table-filter-and-charts-for-confluence?tab=overview&hosting=server) app is our add-on. The example that you are referring to allows you to count empty/checked checkboxes inside the table cells. And in your example I see that you use some 3rd party app that collects votes (screenshot 1) and gives you a summary report (screenshot 3).

In this report you don't have any checkboxes at all - as I understand, the chosen courses are represented as text labels. And the combinations are also different.

So, if you need to count popular courses (not the voting combinations!), then you may use the [Table Filter](https://docs.stiltsoft.com/display/public/TFAC/How+to+use+Table+Filter+macro) macro and its [Free Text](https://docs.stiltsoft.com/display/public/TFAC/Table+filtration#Tablefiltration-Filtertypesavailable) filter (type in the name of every course from your list, hover your mouse above the filter icon and see the number of entries with this course).

If you need to aggregate the voting combinations, then you are on the right way with the Pivot Table macro.

By the way, which hosting type do you use? If you are on Cloud, we can suggest using our [Poll Maker for Confluence](https://marketplace.atlassian.com/apps/1224994/poll-maker-for-confluence?hosting=cloud&tab=overview): it's a free app that supports multivote and shows the result in a very user-friendly way.


author: Katerina Kovriga {Stiltsoft}
body: Hi there,

As this thread mentions our [Table Filter and Charts for Confluence](https://marketplace.atlassian.com/apps/27447/table-filter-and-charts-for-confluence?tab=overview&hosting=cloud&utm_source=atl_community) add-on, we are happy to introduce its new macro -- [Table Spreadsheet](https://docs.stiltsoft.com/display/public/TFAC/How+to+use+Table+Spreadsheet+macro?utm_source=atl_community).

Our new macro allows you to work with fully functional Excel spreadsheets right in Confluence.

You'll be able to use cells' formulas, filters, conditional formatting, etc., create pivot tables and charts from the page view and edit mode.

The Table Spreadsheet macro is available for Cloud and Server/Data Center.

![](https://docs.stiltsoft.com/download/attachments/83100938/Conditional%20formatting.png?version=1&modificationDate=1641987630000&api=v2&effects=border-simple,shadow-kn)