Excel Tip of the Week: Text Functions, Part II

This week’s topic is text functions, Part II.

If you missed part one you can check it out here. In the first post we covered LEFT, RIGHT, and MID.

Today we are going to cover UPPER, LOWER, PROPER, and TRIM. All of these functions are extremely simple in what they do, but many people do not realize they exist. All four of these functions are one-argument functions. This means you just point the function to a string of text and let it do its work.

1. UPPER: Converts a text string to all uppercase letters.

2. LOWER: Converts a text string to all lowercase letters

3. PROPER: Converts a text string to proper case; the first letter in each word uppercase, and all other letters to lowercase.

4. TRIM: Removes all spaces from a text string except the spaces between words. This function doesn’t seem very useful, but I use it ALL THE TIME. This is because in a lot of cases when you are copying data from a non-Excel source (the Web, Word, csv file, etc) into Excel there can be leading or trailing spaces that you need to get rid of. Additionally, TRIM pairs well with a function like MID (Yes, I just made Excel functions sound like wine and cheese…you’re welcome). In the example screen shot below you can see how the unnecessary spaces are eliminated by the TRIM function.

About Doug Midkiff

I’m really good at Excel. I’m also a Texan, which seems to be a trend among OwenBloggers these days (you can’t stop us, you can only hope to contain us). After graduating from Texas, (Hook’em) I spent four years as a financial analyst before finding my way to Owen where I’m concentrating in finance with an emphasis on real estate. I love my wife, indie coffee shops, disc golf, soccer, web comics, Google maps, urbanism, sustainability, and warm weather.
This entry was posted in Doug Midkiff '12, Excel Tip of the Week and tagged , text functions, , trim. Bookmark the permalink.

Leave a Reply