I have a WS that has daily prices on for over 7 years. In another WS I need to calculate the daily rate of change for the ratio of each item to each other. Example: Items a,b,c,d,e,f...
Step 1. calculate the ratios of: price a/price b, price a/ price c, price a/price d... price f/ price d... price j/price i.
step 2. calculate the daily rate of change for each ratio found from step 1.
Below is what I've used to calculate the price relative to each other
=INDEX('Prices-M'!$A$1:$Q$1913,MATCH($G2,'Prices-M'!$A$1:$A$1913,0),MATCH($A$2,'Prices-M'!$A$1:$P$1,0))/INDEX('Prices-M'!$A$1:$Q$1913,MATCH($G2,'Prices-M'!$A$1:$A$1913,0),MATCH($A$8,'Prices-M'!$A$1:$P$1,0)
On the Prices-M WS Column A has the date sorted from oldest to newest and row A is a header with A1-P1 having each item name in it. Beneath each item name is the price on the day corresponding to the date on that row in column A.
On the current worksheet column G has the same dates sorted oldest to newest and row A is a column header with a description of each ratio. Beneath description is the ratio on the day corresponding to the date on that row in column A based on the description.
The daily percentage change of the ratios is calculated as![]()
Please Login or Register to view this content.
dragged down and across the matrix.![]()
Please Login or Register to view this content.
The workbook is now 11 MB as there are other pages with formulas. Any ideas on how to reduce the size and increase the speed of this code?
Thanks,
Doug
Bookmarks