Extracting part of text (seperated with a carriage return ALT Enter) with a formula
Hi,
I have a huge sheet with a comments column (column A). In many cells in this column there are multiple lines of comments i.e.
2/3/22 blah blah bla
1/3/22 blah blah blah
I need to create a new column (column B) to extract via a formula all of the text in column A but ONLY the 1st line of text before the carriage return at the end of that line. In the case above, column B would only show:
2/3/22 blah blah bla
I have been plaing around with various options using CHAR(10) but cant seem to figure out how to ONLY extract the 1st line to the first carriage return - this forumla gives me everything in the cell:
=LEFT(Comments@row, LEN(Comments@row) - FIND(CHAR(10), Comments@row))
....and this gives me everythign AFTER the 1st carriage return:
=RIGHT(Comments@row, LEN(Comments@row) - FIND(CHAR(10), Comments@row))
I suspect that this can be done but if anyone has already knows how it will save me hours of frustraion! Thanks.
Angus
Best Answer
-
Hi
I was able to get this to work but my formula was just:
=LEFT(Comments@row, FIND(CHAR(10), Comments@row))
I haven't tried to figure out what your formula is doing but I found this smaller formula to work well.
I hope that works for you.
Thank you,
Kevin
Happy to help if I can.
☑️ Are you satisfied with my answer to your question? Please help the Community by marking it as an ( Accepted Answer)
Answers
-
Hi
I was able to get this to work but my formula was just:
=LEFT(Comments@row, FIND(CHAR(10), Comments@row))
I haven't tried to figure out what your formula is doing but I found this smaller formula to work well.
I hope that works for you.
Thank you,
Kevin
Happy to help if I can.
☑️ Are you satisfied with my answer to your question? Please help the Community by marking it as an ( Accepted Answer)
-
Thanks Kevin - that worked for me!
-
My pleasure
Thank you,
Kevin
Happy to help if I can.
☑️ Are you satisfied with my answer to your question? Please help the Community by marking it as an ( Accepted Answer)
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 64.9K Get Help
- 439 Global Discussions
- 138 Industry Talk
- 471 Announcements
- 4.9K Ideas & Feature Requests
- 129 Brandfolder
- 148 Just for fun
- 68 Community Job Board
- 488 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 300 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!