Just add spaces in between 3 words

hsandeep

Well-known Member
Joined
Dec 6, 2008
Messages
1,217
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
 

Excel Facts

Why are there 1,048,576 rows in Excel?
The Excel team increased the size of the grid in 2007. There are 2^20 rows and 2^14 columns for a total of 17 billion cells.
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
=a1&" "&left(b1,1)&(if(c1="","",".")&" "&c1)

For 2 words
A1: Mark
B1: Human

It gave me Mark H whereas the correct answer required is Mark Human (Since 2 words only instead of 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
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

Forum statistics

Threads
1,216,488
Messages
6,130,952
Members
449,608
Latest member
jacobmudombe

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