HomeNews

Excel Tips: Enter multiple lines in a cell of Excel Worksheet

Enter multiple lines in a cell of Excel Worksheet or Separate the text into two lines in a Cell

You need to separate the description or data into two lines in a cell, i.e. โ€œDr. Manmohan Singhโ€ in one line and โ€œPrime Minister of Indiaโ€ in the second line within the same cell (B5) just like below:.

Sum of 
Pay in PB
Gde Pay
Dr. Manmohan Singh,
Prime Minister of India,
Address:
Tel No.
Name,
Designation


How would you do it?

First  solution used by most excel users is to format the cell with the โ€œwrap textโ€ option and then adjust the column so that the width is just sufficient to display the description โ€œDr. Manmohan Singhโ€. This will cause the text โ€œPrime Minister of Indiaโ€ to flow to the next line. This method is not reliable because the presentation will appear that way only in the creatorโ€™s computer. If this excel file is to be sent to another person, the word Singh in the line โ€œDr. Manmohan Singhโ€ may run off to the next line if the users uses another resolution.

The above method also restrict the user from adjusting the column width at will. To have a wider column, many users would have to insert sufficient space between each syntax i.e. Dr Manmohan Singh,           Prime Minister of India,  Address                 , Tel No. . This action can be resulted as below after increasing the width of column:

Dr. Manmohan Singh,           Prime Minister of India,            Address:                                        Tel
No.

A fair amount of time is spent just for this purpose.

Unknown to many users, the description can be maintained in two different lines within the cell under all conditions.

WE NEED TO USE THE  โ€œALTโ€ key and โ€œENTERโ€ key together. Here is how:

1) Place the cursor after the word โ€œSinghโ€ (either by editing the cell using the function key F2 OR point the mouse button at the formula bar immediately after the word โ€œSinghโ€ and click on the left mouse button).
2) Press the button โ€œALTโ€ together with the โ€œENTERโ€ key. The text is immediately separated into two lines in a cell. Repeat this action after words โ€œIndia,โ€ & โ€œAddress:โ€ Hit the โ€œENTERโ€ key to confirm the change.

If you have any question feel free to post comments.

COMMENTS

WORDPRESS: 1