Looking to count the number of times a string of specific text occurs in a column
I want to use a count formula to determine the number of times a SKU occurs in an open text column.
Below is the formula for the highlighted cell:
=COUNTIF(SKU:SKU, CONTAINS("SKU2", @cell))
The value I am looking for is 3 because SKU2 appears 2 times in the 3rd row and once in the 2nd row.
Any insights on how to count this?
Many thanks,
Answers
-
Hi @riouxs
I think the issue here is that you have several data points in your third row. The formula is counting whether it is present or not - not how many times per cell.
The formula would work better if you made sure each cell/ row contained one data set.
The above would work if you had one data set per cell and used : =COUNTIF(SKU1:SKU9, "SKU2")
Although there might be a more clever way of doing it - I have attempted using multiple select dropdown columns but it still only counts one per cell.
Alex
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 64K Get Help
- 410 Global Discussions
- 220 Industry Talk
- 459 Announcements
- 4.8K Ideas & Feature Requests
- 143 Brandfolder
- 138 Just for fun
- 57 Community Job Board
- 459 Show & Tell
- 31 Member Spotlight
- 1 SmartStories
- 298 Events
- 37 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!