OK Part 2 of my combining data from several cells to 1

Bketchum

New Member
Joined
Oct 5, 2006
Messages
12
Ok, now my question is:

I have several names to combine into one cell:

(example: cell B2 is Mary Smith, cell C2 is John Smith) I need cell D2 to read: Mary Smith and John Smith.

When I use the following formula:

=B2&" and "&C2

It works when I have 2 names. But if I only have 1 customer, Mary Smith it shows up as "Mary Smith and" in cell D2. How do I make the "and" show up only when I have 2 or more names? I am stumped.

Brooke
 

Excel Facts

Create a Pivot Table on a Map
If your data has zip codes, postal codes, or city names, select the data and use Insert, 3D Map. (Found to right of chart icons).
Hello,

try

=IF(ISBLANK(C2),B2,C2&" and "&B2)

P.S. Dont start a new thread, just continue the old one.
 
Upvote 0

Forum statistics

Threads
1,215,219
Messages
6,123,684
Members
449,116
Latest member
HypnoFant

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top