ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   combining text (https://www.excelbanter.com/excel-worksheet-functions/70059-combining-text.html)

Dave Green

combining text
 
In Excel 2002, I want to combine three cells (City, State, and Postal Code)
into a single cell. I know this string will work for putting a space in
between each item:
=A1&" "&A2&" "&A3
This yield this type of output: Seattle WA 98102

What do I do to place a comma after the "city" so that it yields this type
of output:
Seattle, WA 98102



SteveG

combining text
 

Dave,

=A1&","&" "&A2&" "&A3

Cheers,

Steve


--
SteveG
------------------------------------------------------------------------
SteveG's Profile: http://www.excelforum.com/member.php...fo&userid=7571
View this thread: http://www.excelforum.com/showthread...hreadid=509331


Ron Coderre

combining text
 
Try something like this:

=A1&", "&A2&" "&A3


Does that help?

***********
Regards,
Ron

XL2002, WinXP-Pro


"Dave Green" wrote:

In Excel 2002, I want to combine three cells (City, State, and Postal Code)
into a single cell. I know this string will work for putting a space in
between each item:
=A1&" "&A2&" "&A3
This yield this type of output: Seattle WA 98102

What do I do to place a comma after the "city" so that it yields this type
of output:
Seattle, WA 98102




All times are GMT +1. The time now is 06:57 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com