Solved

# EXCEL 2007

Posted on 2011-03-17
187 Views
Hi is there a way to split a name in Excel 2007. so happy exchange i need in one cell happy and exchange in another cell in excel.

0
Question by:happyexchange

LVL 81

Expert Comment

ID: 35160672
Find the first name in a string:

=LEFT(A1,FIND(" ",A1)-1)

Find the last name in a string containing only two names:

=MID(A1,FIND(" ",A1)+1,999)

Kevin
0

LVL 50

Expert Comment

ID: 35160673
If you have that data in A1 then you can get the first word in B1 with this formula

=LEFT(A1,FIND(" ",A1)-1)

and in C1

=REPLACE(A1,1,FIND(" ",A1),"")

regards,barry
0

LVL 2

Accepted Solution

pjaguilar earned 500 total points
ID: 35160725
To extract the "happy" part:

=left(B6;find(" ";B6))    // assuming B6 contains "happy exchange"

to extract the "exchange" part:

=right(B6;lenght(B6) - lenght(C6))   // in B6 we had "happy exchange", in C6, the first formula

Regards
0

## Featured Post

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Some code to ensure data integrity when using macros within Excel. Also included code that helps secure your data within an Excel workbook.
When you see single cell contains number and text, and you have to get any date out of it seems like cracking our heads.
This Micro Tutorial demonstrates how to create Excel charts: column, area, line, bar, and scatter charts. Formatting tips are provided as well.
Many functions in Excel can make decisions. The most simple of these is the IF function: it returns a value depending on whether a condition you describe is true or false. Once you get the hang of using the IF function, you will find it easier to usâ€¦