From the author of the best-selling Excel blog on Kindle, this weekly edition covers all things that are cool in Advanced Excel. Topics cover a wide range of intermediate and advanced subjects for skilled users and experts. If you are an Excel Guru or Guru-wannabee, this is the blog for you!
Friday, February 24, 2012
Formatting Data Your Way
This is one of my Favorite Excel Tricks, and it should be in your arsenal of weapons against Poorly Formatted Data.
As an advanced user, you undoubtedly have many times been presented with data that is Not in an ideal format. One common case is when you are presented with list of employee names showing the Entire first and last name in each cell in a column.
As you are aware, Database Best Practices dictate that it is best to Break Down or Parse Your Information into the smallest discreet portions reasonable. Therefore, you would naturally prefer to have the first names in one column and the last names in another column. Of course if you have hundreds of employees in your company, this would be Pure Drudgery (who needs that?...) to convert manually.
Extracting the first names and last names into their own separate fields (columns) with Convenient Excel Formulas is a Breeze (can you feel it whistling through your hair?).
The Excel Functions that we will be Using in the Formulas are:
A) LEN - Returns the number of characters in a text string
B) FIND – Returns the starting position of one text string within another text string
C) LEFT – Returns the specified number of characters from the start of a text string
D) RIGHT - Returns the specified number of characters from the end of a text string
To extract just the First Name, use the following:
=LEFT(A1, FIND(" ", A1, 1)-1)
To extract just the Last Name:
=RIGHT(A1, LEN(A1)-FIND(" ", A1))
These simple formulas can save you tons of work. Now it’s your turn, give them a try!
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment