I'm posting this as a separate thread because it is different than my previous question, although it will indirectly solve my previous problem!
30 worksheets each have the same 2 columns of data that get downloaded/updated daily. The columns have a title row. Column A contains the date. Column B contains the price on that date.
Column C is not downloaded, but currently contains a formula contingent on the price change between each row in B. The formula begins in C3 and is intended until the end of the column, reading as follows: =B3-B2, =B4-B3, etc.
Column D is also not downloaded, but contains a formula contingent on Column C. The formula returns a +1 if the price change is positive, -1 if the price change is negative. The formula begins in D3 and is intended until the column, reading as follows: =if(C3>0,1,-1)
Problem: The length of the columns for each worksheet will be the same on all 17 worksheets, but can vary enormously each day once data is downloaded.
2 Questions:
1) Is there a way to apply the formulas in Columns C and D in an automated manner, so only rows with dates and prices are calculated and delineated?
2) On each row for which there is a date and price for all the worksheets, I wish to sum all the -1s and +1s in Column D for the particular date on a separate, collective worksheet. So, if worksheet ABC has a price in B3, I wish to sum the 1 or -1 in Column D with worksheet DEF's column D, etc., all the way to end of the columns with data. Is there a way to perform this function in an automated manner, so that only the columns with numbers are calculated and delineated?
Bookmarks