Lambdas

Financial 10

  • xl.mortgage.schedule Mortgage schedule LAMBDAxl.mortgage.schedule spills month, payment, interest, principal, and balance for a fixed-rate US loan. A $1,200 six-month example is small enough to audit.
  • xl.loan.balance Loan balance LAMBDAxl.loan.balance returns what is left after a number of fixed monthly payments. On the $25,000 car loan at 6.9% for 60 months, the balance after 12 payments is $20,663.34.
  • xl.commission Tiered commission LAMBDAxl.commission pays 5% up to $10,000, 7% on the next $10,000, and 10% above $20,000. Sales of $25,000 earn $1,700.
  • xl.margin Margin LAMBDAxl.margin returns profit as a share of the selling price. A $50 price on a $30 cost is a 40% margin.
  • xl.markup Markup LAMBDAxl.markup returns profit as a share of the cost. A $50 price on a $30 cost is a markup of 2/3, about 66.67%.
  • xl.cagr CAGR LAMBDAxl.cagr returns the compound annual growth rate. $1,000 growing to $1,628.894627 in 10 years is 5% a year, the same rate as RRI and the POWER page.
  • xl.prorate.month Prorate a month LAMBDAxl.prorate.month splits a monthly amount across the inclusive days you occupied. Rent of $3,100 for January 2026, from the 15th through the 31st, is $1,700.
  • xl.payment.split Payment split LAMBDAxl.payment.split spills the payment, the interest, and the principal for one month. Month 1 of the $25,000 car loan at 6.9% for 60 months is $493.85, $143.75, and $350.10.
  • xl.compound.fv Compound growth LAMBDAxl.compound.fv returns the future balance of a starting amount and a monthly deposit. $8,000 and $300 a month at 5% for 15 years is $97,096.31.
  • xl.apy APR to APY LAMBDAxl.apy converts an APR and a compounding count into an APY. Six percent compounded monthly is 6.1678%, and the reverse returns the APR.

Text 13

Tax 6

Date and time 9

Statistical 4

  • xl.weighted.average Weighted average LAMBDAxl.weighted.average divides the sum of value times weight by the sum of the weights. Scores of 90 and 80 weighted 40 and 60 average 84.
  • xl.z.score Z-score LAMBDAxl.z.score measures a value in sample standard deviations from the mean. January's $143.60 utility bill is about 1.2855 standard deviations above the four-bill average.
  • xl.text.mode Text mode LAMBDAxl.text.mode returns the text that appears most often. In Yes, No, Yes, Yes the mode is Yes. MODE.SNGL only does this for numbers.
  • xl.count.unique Count unique LAMBDAxl.count.unique counts distinct values and ignores blanks. Austin, Dallas, Austin, Houston counts as 3.

HR and payroll 1

Lookup 2

Dynamic arrays 5

  • xl.fill.down Fill down LAMBDAxl.fill.down copies the last non-blank value through the blanks under it. Austin, a blank, a blank, Dallas becomes Austin, Austin, Austin, Dallas.
  • xl.running.total Running total LAMBDAxl.running.total spills a running sum. The four utility bills accumulate to $143.60, $239.80, $358.25, and $446.35.
  • xl.group.sum Group sum LAMBDAxl.group.sum spills each distinct key and the sum of its values. Austin 10 and Austin 5, plus Dallas 20, come back as Austin 15 and Dallas 20.
  • xl.unpivot Unpivot LAMBDAxl.unpivot turns a crosstab into rows of row label, column label, and value. Austin and Dallas across 2024 and 2025 become four rows.
  • xl.sort.unique Sort unique LAMBDAxl.sort.unique spills the distinct values in ascending order. Austin, Dallas, Austin, Houston comes back as Austin, Dallas, Houston.

Validation 5

  • xl.luhn Luhn check LAMBDAxl.luhn returns TRUE when a card number passes the Luhn checksum. The test number 4111111111111111 passes. Change the last digit to 2 and it fails.
  • xl.is.email Email shape LAMBDAxl.is.email returns TRUE for a simple address: one @, text before it, and a dot in the domain. maria.lopez@example.com is TRUE. It is not a full internet-address check.
  • xl.is.zip ZIP shape LAMBDAxl.is.zip returns TRUE for a 5-digit ZIP or a ZIP+4. 78701 and 78701-1234 pass. 7870 does not.
  • xl.is.state State abbreviation LAMBDAxl.is.state returns TRUE for a US state or DC abbreviation. TX and tx pass. Texas does not.
  • xl.between Between LAMBDAxl.between returns TRUE when a value is between two ends, including the ends. 5 is between 1 and 10. 10 is between 1 and 10. 11 is not.

Math 1