Chr(10) line feed and Chr(13) carriage return?

Does Numbers support Chr(10) linefeed and Chr(13) carriage return similar to Excel? I want to use this in formulas.

Numbers-OTHER

Posted on Feb 15, 2013 8:12 AM

Reply
6 replies

Feb 15, 2013 8:50 AM in response to Experienced

It does not support either. The CHAR function allows codes 32 to 65,525 except for 127. CHAR(10) used to work but no longer does. I guess they "fixed it". Oddly, though, it gives a different error message than CHAR(13).


You can use codes 8232 or 8233.


8232 is the unicode line separator. If you use 8232, you will need "wrap" turned on for the cell.


8232 is the unicode paragraph separator. 8233 appears to act the same as chr 10 and the same as if you used option-enter in a text string (which creates a chararcer 10). In fact, if you put it into a formula such as ='"A"&CHAR(8233)&"B" then use MID and CODE to extract the character code of the middle character, the result will be 10, not 8233. Another oddity.


EDIT: I thought I'd try out character 133, the "next line" character to see what it would do. It is within the valid range as per the formula description but it gives an error saying it is outside the range. Actually, I found that characters 128-159 don't work even though they they should. I think Apple needs to take a look at the CHAR function.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Chr(10) line feed and Chr(13) carriage return?

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.