You are on page 1of 2

Excel Function Dictionary

1998 - 2000 Peter Noneley


A
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46

Split ForenameSurname
Page 1 of 2
D

Split Forename and Surname


The following formula are useful when you have one cell containing text which needs
to be split up.
One of the most common examples of this is when a persons Forename and Surname
are entered in full into a cell.
The formula use various text functions to accomplish the task.
Each of the techniques uses the space between the names to identify where to split.
Finding the First Name
Full Name
Alan Jones
Bob Smith
Carol Williams

First Name
Alan
Bob
Carol

=LEFT(C14,FIND(" ",C14,1))
=LEFT(C15,FIND(" ",C15,1))
=LEFT(C16,FIND(" ",C16,1))

Last Name
Jones
Smith
Williams

=RIGHT(C22,LEN(C22)-FIND(" ",C22))
=RIGHT(C23,LEN(C23)-FIND(" ",C23))
=RIGHT(C24,LEN(C24)-FIND(" ",C24))

Finding the Last Name


Full Name
Alan Jones
Bob Smith
Carol Williams

Finding the Last name when a Middle name is present


The formula above cannot handle any more than two names.
If there is also a middle name, the last name formula will be incorrect.
To solve the problem you have to use a much longer calculation.
Full Name
Alan David Jones
Bob John Smith
Carol Susan Williams

Last Name
Jones
Smith
Williams
=RIGHT(C37,LEN(C37)-FIND("#",SUBSTITUTE(C37," ","#",LEN(C37)-LEN(SUBSTITUTE(C37," ","")))))

Finding the Middle name


Full Name
Alan David Jones
Bob John Smith
Carol Susan Williams

Middle Name
David
John
Susan
=LEFT(RIGHT(C45,LEN(C45)-FIND(" ",C45,1)),FIND(" ",RIGHT(C45,LEN(C45)-FIND(" ",C45,1)),1))

Rahul Kishore Savant

Savant Kishore Rahul

You might also like