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
- Customer Resources
- 65.1K Get Help
- 444 Global Discussions
- 142 Industry Talk
- 472 Announcements
- 5K Ideas & Feature Requests
- 83 Brandfolder
- 150 Just for fun
- 71 Community Job Board
- 489 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 301 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!