Home

Combining Cells for an Address

Deleted
Not applicable

Hey there,

 

I am taking a database file of customers where there are two people listed as the purchasers and sending out a New Year's card. I'd like to combine the cells of the two customers to where it on the address it will say "First & First Last" but I also know that not all of our customers share the same surname. How can I set up a formula to where it will combine the information to say "First & First Last" if they share that surname but also recognize when the surname isn't the same and create "First Last & First Last"?

2 Replies

Hi,

 

Please find below solution will be helpful for you

 

Capture.JPG

  

 

=IF(ISBLANK(B2),A2,IF(ISBLANK(A2),B2,CONCATENATE(A2," ",B2)))

Regards, Faraz Shaikh 

With firest name in A2 and last name in B2 try:

 

=TRIM(A2&" "&B2)