I need help from anyone out there who works on both a Mac and a Wintel box on a regular basis. Either I’ve got a particularly defective copy of Microsuck Office 2004 for Mac, or I’ve discovered a gaping pus-oozing hole of retardedness in Excel for Mac. Either way, those security-sucking monopolistic pricks are really making my already sleep-deprived life a real pisser, and I don’t think I’ve ever wanted to shoot someone in the testicles more in my entire life.

I’d like you to perform the following experiment in Excel 2004 on a Mac to see if your copy is brok’d, too. In a new spreadsheet, in range A1:A5 enter, simply, 1, 2, 3, 4, 5 — your X values. In column B, enter the corresponding Y values 6, 11, 18, 27, 38. This data set represents the quadratic equation y = x2 + 2x + 3. If you want to enhance the fun, select that data, create a scatter plot of it, and add a trendline: polynomial, power 2, and tick the option to display the equation and you’ll see what I just told you.

Now, if you have to perform polynomial regressions on a metric ass-ton of data sets like I do, you don’t want to have to fit a trendline to a plot of every single one of them and write that crap down. Fortunately Theoretically, Microsuck Excel gives you an alternative approach with the LINEST function. You can write an array formula using LINEST to output a range of cells that are the coefficients of the equation you’re trying to fit to your data. Here’s how you would (theoretically) determine the three coefficients for the quadratic equation that corresponds to the data you’ve typed into A1:B5.

Select cells C1:C3* C1:E1. Then type the formula

=LINEST(B1:B5,A1:A5^{1,2},TRUE,FALSE)

and finish it off by hitting Cmd-Enter instead of just regular Enter (this is how you establish an array formula that outputs into your entire range selection).

That’s it. In theory, you should get the coefficients of your quadratic, namely 1, 2, and 3, in cells C1, C2, and C3* C1, D1, and E1. I, on the other hand, get -3.0625, 13.3125, and 4.1875, because Bill Gates is a dweeb. Please let me know what the hell you get. If you arrive at anything other than 1, 2, 3, entertain yourself further by repeating the exact same algorithm on Excel for Windows (except that on Windows, you finish off an array formula with Shift-Ctrl-Enter). If you get 1, 2, and 3 on a Mac, let me know; I’ll try re-installing, or take my Office CD back to the store and shove it up someone’s floppy drive. And if you think I’ve just got my syntax screwed up, look at the tutorials here and here and then bite me.

And if you try to blame my platform for this glitch, I just might chew your nose right off your face.

So. Expletive. Angry. Must. Kill.

This is why space probes crash into Mars, people!

* Update: Excel book author John Walkenbach pointed out an error in my blog entry, but not in my spreadsheet. It is in fact a horizontal range C1:E1 that has the output of LINEST. I mis-typed the range here at 4:00 in the morning trying to prepare for my research review. Excel is still brok’d though. See screenshots below.

Excel for Mac - broken POSExcel for Windows - why must I use it