Just add spaces in between 3 words

hsandeep

Well-known Member
Joined
Dec 6, 2008
Messages
1,226
Office Version
  1. 2010
Platform
  1. Windows
  2. Mobile
How to concatenate FIRST SECOND & THIRD name in a single cell separated by a blank.
A1: Mark
B1: Hu.
C1=England

Answer:
D1: Mark Hu. England
 
Actually, I am trying to make Mark H. England for 3 words i.e. FIRST + Second word's 1st Alphabet + "." + THIRD.
But there are few names with only 2 words.
These names are in 1 cell.
Also, i had splitted the names in 3 cells FIRST SECOND THIRD
Ex:
Input:
A1: Mark
B1: Human
C1: England
D1: Mark Human England
Output required:
E1: Mark H. England
Input#2:
A1: Mark
B1: Human
C1:
D1: Mark Human
Output required:
E1: Mark Human (since 2 words not 3)
 
Upvote 0
For the examples posted, the following will work:

Code:
=IF(COUNTA(A1:C1)=3,A1&" "&LEFT(B1,1)&". "&C1,A1&" "&B1)

Matty
 
Upvote 0
For the examples posted, the following will work:

Code:
=IF(COUNTA(A1:C1)=3,A1&" "&LEFT(B1,1)&". "&C1,A1&" "&B1)

Matty
For 2 words
A1: Messy
B1: Gems

It gave me Messy G. whereas the correct answer required is Messy Gems (Since 2 words only instead of 3)
 
Upvote 0

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