Countif & Contains
From what I can tell this formula should work, but it's returning a 1 when it should be returning a 2 =countif([Bakery - Emp Health, hygiene, supervision, knowled]@row,contains("C -",@cell)
Help?
Best Answer
-
Hey @Bija
Try this formula
=(LEN([Bakery - Emp Health, hygiene, supervision, knowled]@row) - LEN(SUBSTITUTE([Bakery - Emp Health, hygiene, supervision, knowled]@row, "C -", ""))) / LEN("C -")
This formula calculates the difference in number of characters (length) of original cell minus remaining characters after "C -" is removed, all of this divided by the length of "C -".
Will this work for you?
Kelly
Answers
-
Hey @Bija
Try this formula
=(LEN([Bakery - Emp Health, hygiene, supervision, knowled]@row) - LEN(SUBSTITUTE([Bakery - Emp Health, hygiene, supervision, knowled]@row, "C -", ""))) / LEN("C -")
This formula calculates the difference in number of characters (length) of original cell minus remaining characters after "C -" is removed, all of this divided by the length of "C -".
Will this work for you?
Kelly
-
@Kelly Moore This worked! Thank you. I was not familiar with the LEN function.
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 63.5K Get Help
- 402 Global Discussions
- 213 Industry Talk
- 450 Announcements
- 4.7K Ideas & Feature Requests
- 141 Brandfolder
- 135 Just for fun
- 56 Community Job Board
- 454 Show & Tell
- 31 Member Spotlight
- 1 SmartStories
- 296 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!