Sketch of Me Excel Blog @ TVMCalcs.com

Saturday, March 08, 2008

Testing a String for Proper Case

Have you ever needed to check a string in a worksheet cell to see if it is in proper case? By "proper case" I mean that the first letter of each word in the string is capitalized and the other characters are lowercase. For example, you may have a list of people’s names (maybe for a mailing list) and you need to be sure that the names are written properly (e.g., John Smith, not john Smith or John sMith). It seems that this should be easy in Excel, but it isn’t obvious (at least there is no easy, built-in function that you can use to validate the string). In this post I will demonstrate three

Continue reading...


Posted by Tim on 03/08 at 07:28 PM in Array Formulas in Functions in Offset in String Functions in Code in left in len in mid in Proper in VBA
Comments (1) • PermalinkTell-a-Friend

Tuesday, June 19, 2007

The NPV Function Doesn’t Calculate Net Present Value

One of the things that has always driven me nuts (because I have to repeatedly explain it in class) is that the NPV function in spreadsheets doesn’t really calculate NPV. Instead, despite the word “net,” the NPV function is really just a present value of uneven cash flow function. It has always been this way, so I’ve learned to live with it. I suspect that this goes all the way back to Visicalc (which you can download and run in a DOS window).

Net present value is defined as the present value of the expected future cash flows less the initial cost of the investment. “Net” always means

Continue reading...


Posted by Tim on 06/19 at 03:53 AM in Array Formulas in Functions in Financial Functions in NPV in PV
Comments (1) • PermalinkTell-a-Friend

Monday, June 11, 2007

On Arrays and Accumulated Depreciation

What could be easier, or more common, than calculating accumulated depreciation? Generally, in your spreadsheets you probably have each years’ depreciation expense listed in its own cell and all you do is add them up. Nothing wrong with that, but there is another way.

I like to read the forums over at AnandTech and help out whenever I can. Not long ago, a user asked about calculating accumulated depreciation using the DDB (double-declining balance) function. He needed to calculate the accumulated depreciation to date for an asset so that the book value could be calculated. My solution was

Continue reading...


Posted by Tim on 06/11 at 04:14 AM in Array Formulas in Functions in Financial Functions in DDB in Indirect
Comments (0) • PermalinkTell-a-Friend
Page 1 of 1 pages