So here's my problem:
I have about 200,000 rows that look like this:
date|trade size|tradevolume
20020101|3,000|100,000
20020101|7,000|140,000
20020101|1,000|120,000
20020101|4,000|170,000
20020101|3,000|130,000
20020101|3,000|170,000
20020101|2,000|190,000
...
20021031|1,000|200,000
What I need is a DAILY average trade size, so that Excel averages all the sizes with date 20020101, 20020102, etc and spits out an individual average trade size for each day. Then I need the median of all those daily average trade sizes. It's especially hairy because the data is spread across multiple sheets since Excel 2003 (the version I'm using) can only handle ~65,000 rows per sheet. Any guidance on how to do this would be appreciated.
There are 180 days so the whole thing needs to be automated, it's not practical to do the same procedure 180 times. Also, it's not like there are 1000 observations on day 1 and then 1000 observations on day 2. 20020101 may have 1,238 observations while 20020102 has 1,437 so I need to use the column with the date to group the trade sizes for averaging somehow.
Bookmarks