| A | B | |
| 1 | Cedar Rapids, IA | |
| 2 | Des Moines, IA | |
| 3 | San Diego, CA | |
| 4 | Chicago, IL |
Oct 30, 2011
Splitting City-State in Excel
If you have data in the following format:
You can split the city and state by taking advantage of the comma that has been placed in between the two. You can use Text to Columns.
Oct 29, 2011
Splitting a telephone number in Microsoft Excel
If you have a list of telephone numbers formatted rather messily, you can split the telephone numbers into area code + local number using Find & Replace, Left(), Mid(), and Right().
The first step is to remove all of the extra characters so all your phone numbers do not include any additional characters. Use Find and Replace to remove the parentheses and dashes.
| A | B | C | D | |
| 1 | (555)-767-9000 | |||
| 2 | 888-487-8000 | |||
| 3 | 9994879000 |
- Select Column A
- Press Ctrl+F to open the find and replace dialogue.
- Under Find what: your going to enter each character you see in your phone numbers, one at a time. In our example, it would be: ( ) - . Under Replace with: you enter nothing.
Oct 25, 2011
Using Inkscape to improve Stata graphics
Stata produces graphics that can be hard to work with and are often ugly. Often times, I have trouble with labels running into one another or blocky looking elements. Moreover, I sometimes need to change a title, add a caption, or change a color and reproducing the graph in Stata to do this is both time consuming and annoying. Luckily, I have found an easy way to edit graphs in Stata, improve there look, and tweak them if need be. You use a program called Inkscape.
Oct 24, 2011
Concatenation in Microsoft Excel
There are two ways to concatenate (merge the contents of two cells) in Microsoft Excel.
The first method uses the =CONCATENATE([item 1], [item 2], [item ...]) function. Each cell specified within this function will be joined.
Alternatively, you can simply use the & symbol to join the contents of two cells.
| A | B | C | D | E | |
| 1 | Item 1 | Item 2 | Function | Result | |
| 2 | Method 1 | Hello | World! | =CONCATENATE(B2,C2) | Hello World |
| 3 | Method 2 | This is a way to | Concatenate | =B3 & C3 | This is a way to Concatenate |
Alternatively, you can simply use the & symbol to join the contents of two cells.
Subscribe to:
Posts (Atom)