Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Insert a Newline in Excel Formula (MacOS) [closed]

I am using MS Excel on a Mac.

I have a formula, and I wish to insert a newline into it:

Guests!A1 & " " & Guests!B1 & [newline here] Guests!C1

How can I do this?

like image 625
Xofo Avatar asked Nov 04 '09 06:11

Xofo


2 Answers

CHAR() is the appropriate function for an Excel formula, and you need character 10 (Line Feed) to create a line break. Example:

Guests!A1 & " " & Guests!B1 & CHAR(10) & Guests!C1

You'll need to have word-wrapping enabled on the cell, otherwise CHAR(10) will just look like a little square.

vbCRLF would be the right choice when using VBA (i.e., a macro). The question is about formulas, not VBA.

like image 58
richardtallent Avatar answered Nov 05 '22 02:11

richardtallent


Press Command + Option + Enter

like image 42
Nguyen Minh Binh Avatar answered Nov 05 '22 03:11

Nguyen Minh Binh