Pages

Tuesday 16 July 2013

Use Alt+Enter to get multiple lines in a cell [spreadcheats]



line-break-excel-howtoA very quick spreadcheat for Friday. If you need to type content in a cell and you want to see it in multiple lines then use alt + enter to break the content in several lines. See to the right for an example.
Bonus tip: If you are using formulas to create content in a cell by combining various text values and you want to introduce line breaks at certain points … For eg. you are creating an address field by combining house number, street name, city and zip code and you want to introduce line breaks after house number and street name then you can use CHAR(10). Like this:
wrap-text-excel-cells=housenumber & CHAR(10) & streetname & CHAR(10) & city & zipcode
Remember when you do this, you need to enable wrap-text feature for that cell from cell formatting dailog (ctrl+1) to ensure proper display.

No comments: