count a word twice if it appears in a cell twice
System
Employee
This discussion was created from comments split from: How to use a COUNTIF formula to determine how many times a word appears in a multi-select column?.
Answers
-
Does anyone know if it is possible to extend this to count a word twice if it appears in a cell twice?
For Example:
Column: Fruit
Cell 1: Apples, Pears Bananas
Cell 2: Apples, Pears, Apples
Cell 3: Apples, Oranges, Bananas
Summary:
Apples: 4
Pears: 2
Bananas: 2
Oranges: 1
-
The below is an example formula:
=COUNTIF(Fruits:Fruits, CONTAINS("Apples", @cell)) + COUNTIF(Fruits:Fruits, CONTAINS("SecondApples", SUBSTITUTE(@cell, "Apples", "SecondApples", 2)))
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
Want to practice working with formulas directly in Smartsheet?
Check out the Formula Handbook template!
Check out the Formula Handbook template!