News for hackers. Stuff that matters.
Re:Ask HN: What can't you do in Excel? by rms on Sunday January 11, 2009 @03:19PM (#429485)
Queries.

Excel isn't a database but a lot of people use it like one anyways.

Re:Ask HN: What can't you do in Excel? by notauser on Sunday January 11, 2009 @03:46PM (#429529)
You can do a lot of stuff that overlaps with queries with just array formulas, and a lot of the rest with pivot tables.

For example, getting the sum bill of every person who lives in England looks like this in one workbook I have:

{SUM(IF($C1:$C$10000 = "England",$E$1:$E10000,0))}

(If I want to see, say, the top 10 outstanding bills in England I have to use a pivot table).

Excels biggest problem is that the workbooks produced with it are really hard to maintain. Looking at the code above, for example... going back to that (which is only a trivial example) in a month is going to be pure pain. Updating data requires cutting and pasting, which can be error prone. Unit testing is only possible with sample known-good data sets, and copying in new data tends to make it less than certain that the version you are using is the same as the one you tested.

Oh, and sharing workbooks between users is really tough. I can usually figure out other people's Java - but I have yet to be able to reverse engineer a non-trivial Excel work flow.

Re:Ask HN: What can't you do in Excel? by jwilliams on Sunday January 11, 2009 @06:51PM (#429847)
You can do a lot of stuff that overlaps with queries with just array formulas, and a lot of the rest with pivot tables.

This is true, you can do a lot with this. And if you're prepared to make a lot of columns with the various flags you need, you can build up quite complex queries - having an easy way to do this would be nice though.

I've spent a lot of time in Financial Services and it's surprising how much of the industry is run on spreadsheets, especially investment banking - and I mean online - they'll have Excel running all day, receiving real time price feeds, running a calculation and republishing. Excel is pretty much the glue that holds the whole industry together.

So I also agree on the maintenance issue - These sheets can get quite complex and it's almost impossible for someone to understand coming in cold. It would be very useful to have a workflow model on top - which I guess is really adding the algorithm aspect - but I've never seen a speadsheet metaphor that does this well.

Re:Ask HN: What can't you do in Excel? by erso on Sunday January 11, 2009 @08:48PM (#429960)
You might find dynamic named ranges to help keep things orderly. That way you can refer to the ranges by name, and also not have to worry about your $E$1:$E10000 not being up to date when there's 15000 rows of data instead of 10000.

You could do something like this:

{SUM(IF(country_name = "England",bill_amt,0))}

http://www.ozgrid.com/Excel/DynamicRanges.htm

Re:Ask HN: What can't you do in Excel? by ph0rque on Sunday January 11, 2009 @06:18PM (#429799)
> SUM(IF($C1:$C$10000 = "England",$E$1:$E10000,0))

Slightly offtopic, but I just wanted to point out that excel syntax looks a lot like lisp, with biggest different being the first item is outside the parens.

Re:Ask HN: What can't you do in Excel? by herge on Monday January 12, 2009 @05:42AM (#430360)
Excel: The world's most popular functional programming language.
Re:Ask HN: What can't you do in Excel? by khafra on Monday January 12, 2009 @08:06AM (#430424)
After searching for a decent reverse polish calculator for the iPhone for months, I finally realized that a spreadsheet app fits the bill there as well.
Re:Ask HN: What can't you do in Excel? by audentis on Sunday January 11, 2009 @04:58PM (#429678)
BTW, you might be able to throw =large() around that formula to get your top 10 directly
Re:Ask HN: What can't you do in Excel? by pingswept on Sunday January 11, 2009 @03:35PM (#429504)
Just the ability to represent one-to-many relationships in a native way (without resorting to hiding rows or the like) would be a huge step in that direction. The goal could be: make Excel handle more of the borderline cases where you really should be using a simple database, but all you know is Excel.
Re:Ask HN: What can't you do in Excel? by kirubakaran on Sunday January 11, 2009 @10:26PM (#430030)
Re:Ask HN: What can't you do in Excel? by cabalamat on Sunday January 11, 2009 @05:16PM (#429710)
> Excel isn't a database but a lot of people use it like one anyways.

Then why not build database-like functionality into the system?

Re:Ask HN: What can't you do in Excel? by nailer on Sunday January 11, 2009 @06:25PM (#429813)
I'd like to be able to open a database as as spreadsheet, with fields turned into column names, and tables on worksheets.

I'd like v and hlookups to be turned into SQL (and vice versa) with animations explaining what's happening in each.

Re:Ask HN: What can't you do in Excel? by est on Monday January 12, 2009 @07:46AM (#430416)
did you mean SQL? You can connect to a .xls via ODBC