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

Square and cube roots
The =SQRT(25) is a square root. For a cube root, use =125^(1/3). For a fourth root, use =625^(1/4).

onlyadrafter

Well-known Member
Joined
Aug 19, 2003
Messages
5,703
Platform
  1. Windows
Hello,

try

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

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

Forum statistics

Threads
1,137,367
Messages
5,681,076
Members
419,950
Latest member
BeckiJae

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
Top