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
- Customer Resources
- 64.9K Get Help
- 441 Global Discussions
- 139 Industry Talk
- 471 Announcements
- 4.9K Ideas & Feature Requests
- 129 Brandfolder
- 148 Just for fun
- 68 Community Job Board
- 496 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 300 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!