Excel: Clean and Reformat Telephone Numbers

Leave a comment

I am recently working on a project where there are some many different formats of telephone numbers in one column that I needed to clean  it up.  Well, I found a site called ExcelJet that supplied the formula called Substitute and the explanation.

clean-and-reformat-telephone-numbers

How this formula works

The formula runs from the inside out, with each SUBSTITUTE removing one character.

The inner most SUBSTITUTE removes the left parentheses, and the result is handed to the next SUBSTITUTE, which removes the right parentheses, and so on.

Whenever you use the SUBSTITUTE function, the result will be text. Because you can’t apply a number format to text, we need to convert the text to a number. One way to do that is to add zero (+0), which automatically converts numbers in text format to numbers in numeric format.

Finally, the “Special” telephone number format is applied (column D).

White space trick for better readability

When nesting multiple functions, it can be difficult to read the formula and keep all parentheses balanced. Excel doesn’t care about extra white space in a formula, so you can add line breaks in the formula to make the formula more readable. For example, the formula above can be written as follows:

=SUBSTITUTE(
SUBSTITUTE(
SUBSTITUTE(
SUBSTITUTE(
SUBSTITUTE(
A1,
“(“,””),
“)”,””),
“-“,””),
” “,””),
“.”,””)

Note that the cell appears in the middle, with function names above and substitutions below. Not only does this make the formula easier to read, it also makes it easier to add and remove substitutions.

Just remember that you have to copy the new results in a blank column as Paste Values Only!!

You can use this same trick to make nested IF statements easier to read as well.

Thank You ExcelJet!

Excel-Repeat Data to Selected Cells

Leave a comment

What a great trick to use in Excel.  Select several blank cells. Type what you want to repeat in those selected cells and hit Control+Enter keys.  The information is entered in all of the selected cells. This eliminates you to type in one cell and then to use the autofill function.

Enjoy!

EXCEL: Using Convert Formula

Leave a comment

To convert miles to kilometers:

  1. Select cell E5 and type =CONVERT(. or Click on Formulas Tab, More Functions, Engineering, Convert)
  2. Click the Paste Function button to access the Function Arguments window.
  3. Select cell D5, which holds the value you wish to convert, so the cell reference appears in the Number text box.
  4. Press [Tab] and enter mi in the From_Unit text box.
  5. Press [Tab], enter km in the To_Unit text box, and click OK.
  6. Select cell E5 and drag its fill handle down to cell E9 to apply the formula to the other cells.
  7. Select the range E5:E9 and click the Decrease Decimal button on the Formatting toolbar until the values display in tenths of a kilometer.

The CONVERT function also converts units of measurement for mass, pressure, liquid, and many others. For a complete list, along with the unit abbreviations accepted by the function, type CONVERT in Excel’s Help window.

Once you create a worksheet based on our example, you can use the CONVERT function to instantly perform the conversions from miles to kilometers.

WORD, EXCEL, PPT: Creating Hyperlinks

Leave a comment

How To Insert Hyperlinks

Hyperlinks add the capability of moving from one position to another quickly and easily, such as linking to another slide, another file, or even to a web site.

  1. Highlight the text or graphics to link
  2. Insert Tab > Links command group > Hyperlink
  3. Choose the target (Place in this document)
  4. Choose the slide

Once a link has been followed, the linked text will change color. You may want to create a “Return” hyperlink.

One advantage of hyperlinking to a separate file is that the size of the presentation file remains smaller than if the file was inserted into the presentation. A disadvantage of linking separate files is that if the name of the linked document changes or if it is moved into a different directory, the link will be broken and the information will not be accessible.

Announcing my new app: Ease-eKeys

2 Comments

I am proud to announce my apps for the iPhone and iPod. It called Ease-eKeys. Everyone always asks what is that shortcut command in Word that does…well, my apps does just that. For 99 cents you will get all the shortcuts and keyboard commands for Word Excel PowerPoint and OneNote. The iPad apps will come down the road. Send me your comments. Thank you!

Ease-eKeys photo 1 Ease-eKeys photo 2 Ease-eKeys photo 3 Ease-eKeys photo 4