Text wrapping in a cel with formula
Hello,
I'm new on this community so please don't offend if I approach my problem in an incorrect way.
I've been looking in previous threads to find an answer, but can't seem to find it.
I have an Office365 Excel sheet with separated collums like Company, Contactperson, Address, City and Country.
I want to combine data from the different collums in 1 cell, for instance with the following formula:
="Company: " &A1 &", Contact: " &B1 &", Address: " &C1 &", City: "&D1 &", Country: " &E1
This results in the following information:
Company: CompanyName Ltd., Contact mr. John Smith, 32 Church Lane, Amsterdam, THE NETHERLANDS
So far so good, but I want the result lines in the cell to be wrapped so every line is underneath eachother, like this:
Company: CompanyName Ltd.
Contact: mr. John Smith
Address: 32 Church Lane
City: Amsterdam
Country: NETHERLANDS
As far as I have seen, a break line in an Excelcell can be done by using CHAR(10)
So, I thought to set the cell on "Wrap text" and use the following formula:
="Company: " &A1 &CHAR(10) &"Contact: " &B1 &CHAR(10) &"Address: " &C1 &CHAR(10) &"City: " &D1 &CHAR(10) &"Country: " &E1
However, this formula is not accepted and results in #NAME?
Does anyone have an idea what I'm doing wrong and how to get the result I'm looking for?