Mountain Posted May 7, 2013 Posted May 7, 2013 I have need to remove something around the first 11 lines of text from a field I copied text to. But sometimes there are variations and it is 12 lines or 8 lines etc. It is easy to spot and I have a field called "ParagraphR" where I put the number of lines I need to remove. So how can I remove the first 11 (or the number in the field ParagraphR) of the text in the field "Mastertext" ? I would like to set the new field called "FinalText" with that remainder of text. Thanks very much.
Lee Smith Posted May 7, 2013 Posted May 7, 2013 Coping and pasting text,as you have discovered, isn't always the best way to handle import of data. The more control you can exercise over the data, the better the results. Without seeing a sample of the text, we would be guessing at the best way to fix the problem. Why not post a copy of the file and a copy of the text.
Raybaudi Posted May 7, 2013 Posted May 7, 2013 I would like to set the new field called "FinalText" with that remainder of text. RightValues ( Mastertext ; ValueCount ( Mastertext ) - ParagraphR )If you need to eliminate also the last carriage return ( inserted by the RightValues ( ) function ): Let( t = RightValues ( Mastertext ; ValueCount ( Mastertext ) - ParagraphR ); Left ( t ; Lenght ( t ) - 1 ) )
Mountain Posted May 7, 2013 Author Posted May 7, 2013 Excellent Thanks so much Works like a charm Thanks
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now