Count number of specific characters in a string
JacobL
✭
Hi! I'm trying to write a formula that will give me the level of an item in a Work Breakdown Structure (WBS). The formula needs to read the number of decimals in a string. For example:
- 1 = 1
- 2.12 = 2
- 3.1.14 = 3
- 2.1.1.1 = 4
- 2.327.1 = 3
The FIND function seems to be heading down the right track (by selecting the "." character from the string) but it only returns the first occurrence of the character. Any tips that would send me in the right direction?
Thank you,
Jake
Comments
-
We use a helper column that counts the levels which we then use for conditional formatting. This may not be exactly what you need but it will count levels down.
=IF(COUNT(CHILDREN([Column Name]@row)) > 0, COUNT(ANCESTORS()) + 1)
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
- 494 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 300 Events
- 36 Webinars
- 7.3K Forum Archives