How To Return Number Of Tags In Notion Formula

Screen Shot 2020-02-26 at 3.25.58 PM.png

๐Ÿš€ Count Multi-Select Tags

This Notion formula showcases the ability to count number of tags inside a multi-select property. I'm also going to show you how to identify tags that return a particular word. In order to execute this I use the following formula functions: length, replaceAll, contains and add.

Number of Tags Formula

if(length(prop("Tags")) > 0, length(replaceAll(prop("Tags"), "[^,]", "")) + 1, 0)

Formula Explanation

โ†’ if length of Tags property as a whole is greater than 0

โ†’ then find the length of(replace all "," with "" inside the Tags property)

โ†’ then add 1

โ†’ If not able to return, show 0.

Tags With Particular Word Formula

contains(prop("Tags"), "Chores")

ezgif.com-video-to-gif (9).gif