Detect CRLF character in a text line item
I have to replace CRLF (carriage return / line feed) characteres form a text line item.
How can I use the FIND function or more better the SUBSTITUE function to replace such a CRLF char.
Result = SUBSTITUE(line item to replace, CRLF character, " ")
Comments
-
Thanks for your answers, but I want to replace the CRLF character from the text field with a space.
See below in T3 the text is abc abc, where the blank sign between first abc and 2nd abc is the CRLF caharacter.
now with SUBSTITUE function I try to replace the CRLF sign with a blank/space
The CR in the formula should be the CRLF character to replace.
The final result must then be "abc abc"
and not
"abc
abc"
0 -
Alexandru.Rosca Member, ALL USERS, Community Member, Certified Model Builder Posts: 5 Frequent Contributor
Pardon my ignorance, I see now what you mean by CR LF. Have you tried using trim? This will remove any irregular spaces
0 -
I found a workaround:
In "Text with CRLF" I added this text:
In the line item "CRLF" I get the CRLF character with the MID function, which then I can use in the SUBSTITUTE function to replace the CRLF in any other text formatted line item (here in "Text to replace")
The question remains: Is there not an easier way to have the CRLF character as a short cut to use in SUBSTITUE without my workaround?
0 -
Bingo - yes this will solve my problem directly 😀
0
Categories
- All Categories
- 2.3K Anaplan Community
- Academy
- Anaplan Talent Builder
- Model Design Course
- The Anaplan Way
- Archive
- 2 Idea exchange
- 62 Enterprise Scale
- 1.1K Extensibility
- 21 Intelligence
- 1.6K Planning & Modeling
- 331 Security
- Community Connections
- Connections
- Experiences
- Groups
- Personas
- Employees
- CS Toolkit
- Customer Care Center
- Forums
- Academy & Training
- Community Feedback & Updates
- Japan
- Anaplan Community Japan
- Anaplan Community Japan Knowledge Base
- HyperCare Japan
- JP-Central
- Support-Japanese
- Partners
- Partner Leadership Council
- Partner Product Council
- 724 Platform
- Anapedia
- App Hub
- Centers Of Excellence
- Extensions
- Planual
- Platform Updates
- 724 User Experience
- Profile Builder
- Resources
- Anaplan Advocates
- Anaplan Live!
- Community
- Community Advancement
- Community Connections
- Partner Program
- The Official Master Anaplanner Program
- Videos
- Welcome to the Anaplan Community!
- Success Central
- Support
- Case Portal Link
- Common Support Questions
- HyperCare Redirect
- Known Issues and Workarounds
- Support test page
- SupportFAQ
- Survey
- 2 Training Day Takeaways