Counting items from a text/number field
I have some users where we set up a text field and they are pasting information from Excel into the field. The info is nicely formatted and appears to have carriage returns when I wrap the text, see below. I am wondering if there is a formula that would help me count the number of items in the cell.
Thank you
paul e. reeves
Principal Business Analyst
HMH
Best Answers
-
Try something along the lines of
=LEN([Affected Packs]@row - LEN(SUBSTITUTE([Affected Packs]@row, CHAR(10), "")) + 1
-
That did the trick. Thank you very much.
BTW... it was great meeting you @ENGAGE.
paul e. reeves
Principal Business Analyst
HMH
Answers
-
Try something along the lines of
=LEN([Affected Packs]@row - LEN(SUBSTITUTE([Affected Packs]@row, CHAR(10), "")) + 1
-
That did the trick. Thank you very much.
BTW... it was great meeting you @ENGAGE.
paul e. reeves
Principal Business Analyst
HMH
-
Happy to help. 👍️
Likewise!
-
I would like to count number of lines of text in a cell. There are hard returns in the information. Is this possible with this same formula shown above? I am getting invalid operation
=LEN(Bullets@row - LEN(SUBSTITUTE(Bullets@row, CHAR(10), "")) + 1) -
@PDunn Yes. There is just a misplaced parenthesis (my fault).
=LEN(Bullets@row) - LEN(SUBSTITUTE(Bullets@row, CHAR(10), "")) + 1
-
@Paul Newcome perfecto it worked thanks for the clarification.
-
Happy to help. 👍️
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 64.3K Get Help
- 423 Global Discussions
- 221 Industry Talk
- 461 Announcements
- 4.8K Ideas & Feature Requests
- 143 Brandfolder
- 143 Just for fun
- 59 Community Job Board
- 462 Show & Tell
- 32 Member Spotlight
- 1 SmartStories
- 300 Events
- 39 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!