Anti-nuisance lawsuit warning: The purpose of these notes is to remind me, Zoegond, of stuff or to help me work stuff out. They may contain mistakes.

Quick

  • ($a, $b....) = unpack("A2A7...", $packed)
  • push( array, list )

Friday, January 1, 2016

Google Sheets mortgage functions

Ensure that you use opposite signs for payment and principal with functions like NPER. I blithely expect money functions either to assume the correct sign, or to produce the correct result with the wrong sign.

So for example with a 5% mortgage, principal £110,000, payment £643 per month:

=NPER(5%/12, 643, -110000)

and

=NPER(5%/12, -643, 110000)

both give the correct answer (~ 300 months/25 years), whereas

=NPER(5%/12, 643, 110000)

gives the answer -129, which one might easily mistake for 10-11 years if in the habit of mentally knocking off an unexpected minus sign.

Followers

Blog Archive