I don't see why you have arrayformula
and index
there; they don't do much (other than index messing up formatting of dates and currency). I don't see what "0" is supposed to do in the importhtml
command, either.
In order to get the sum of particular columns, you can use query
.
=query(importhtml("http:...", "table"), "select Col1, Col3+Col4+Col5+Col6 label Col3+Col4+Col5+Col6 'Total'")
(The part label Col3+Col4+Col5+Col6 'Total'
is optional, it just makes the header look nicer.)
If you want to also have the quarter data, then include the quarters column too; you may also take the opportunity to rearrange them chronologically
=query(importhtml("http:...", "table"), "select Col1, Col3, Col6, Col5, Col4, Col3+Col4+Col5+Col6 label Col3+Col4+Col5+Col6 'Total'")
Finally, notice that the ending dates of each quarter is not the sort of thing we want to add up. One way to avoid adding them is to use the third parameter of query
, the number of headers:
=query(..., "...", 2)
This tells the query that the second row is also a header, so its contents will be added to the header. Another solution is to add a where
clause to the query string to exclude this row:
select ... where Col1 != 'Quarter Ending:' label ...
Best Answer
It seems
wodindex.wikispaces.com
attempts to store a cookie, and then do some fancy redirect tricks, for reasons I don't know. The functionality behindImportHTML
needs to work as a browser (or at least an HTTP client), and probably does not support cookies.This is what I get from running
wget http://wodindex.wikispaces.com
:As can be seen here, the request is redirected to
session.wikispaces.com
, which has some kind of redirect loop, that can never end.One 'solution' to your problem is to save the contents of
wodindex.wikispaces.com
to another web server, and fetch it from there. But I'm not sure that would be entirely legal.