I have a rather interesting Excel challenge involving data that must be summed from columns of varying and daily-changing length. I describe the current process in steps:
1) I query Excel to download stock prices in column B and concomitant dates in Column A of 800 days or less, for a list of 17 stock issues, each on a separate sheet.
2) If the stock price for a particular issue is priced higher compared to previous trading day, Column F is delineated 1; if the issue is lower, Column F is delineated -1.
3) The -1s are deducted from the 1s for a sum, which appears in Column B of a sheet named "summation".
4) Unfortunately, several of the stocks have not been trading anywhere close to 800 days, and in any case, the dates between today and 800 prior days provide an inconsistent number of rows due to trading holidays, weekends, etc.
5) Question: Is it possible to get Excel to add the 1s and -1s for the corresponding dates of each stock's worksheet, even if a particular worksheet has 200 rows, 400 rows or 800 rows? To compensate for the varying total summed, I can perform a ratio of the issues summed in each instance, if necessary.
Thank you for any help.
Bookmarks