date range help

currybai

Board Regular
Joined
Jul 14, 2008
Messages
202
I have the following table

<table border="0" cellpadding="0" cellspacing="0" width="874"><col style="width: 140pt;" width="187" span="4"> <col style="width: 95pt;" width="126"> <tbody><tr style="height: 15pt;" height="20"> <td style="height: 15pt; width: 140pt;" width="187" height="20">Date</td> <td style="width: 140pt;" width="187">Volume</td> <td style="width: 140pt;" width="187">Sales</td> <td style="width: 140pt;" width="187">Ratio</td> <td style="width: 95pt;" width="126">Index</td> </tr> <tr style="height: 15pt;" height="20"> <td class="xl65" style="height: 15pt;" align="right" height="20">7/1/2009 0:00</td> <td align="right">522424242</td> <td align="right">20312</td> <td class="xl66" align="right">0.0039%</td> <td align="right">95.18473528</td> </tr> <tr style="height: 15pt;" height="20"> <td class="xl65" style="height: 15pt;" align="right" height="20">7/2/2009 0:00</td> <td align="right">222424242</td> <td align="right">17236</td> <td class="xl66" align="right">0.0077%</td> <td align="right">189.7109095</td> </tr> <tr style="height: 15pt;" height="20"> <td class="xl65" style="height: 15pt;" align="right" height="20">7/3/2009 0:00</td> <td align="right">422425444</td> <td align="right">19767</td> <td class="xl66" align="right">0.0047%</td> <td align="right">114.5588467</td> </tr> <tr style="height: 15pt;" height="20"> <td class="xl65" style="height: 15pt;" align="right" height="20">7/4/2009 0:00</td> <td align="right">422424242</td> <td align="right">9808</td> <td class="xl66" align="right">0.0023%</td> <td align="right">56.84202791</td> </tr> <tr style="height: 15pt;" height="20"> <td class="xl65" style="height: 15pt;" align="right" height="20">7/5/2009 0:00</td> <td align="right">654897864</td> <td align="right">11691</td> <td class="xl66" align="right">0.0018%</td> <td align="right">43.70348063</td> </tr> </tbody></table>

So the dates go down daily till today. The last formula I have as index is, ratio of day/average of ratio of month. So for 7/1 its (d2/average($d2$:$d6$))*100


Is there a way I can change the range when the month changes? Like when it goes to 8/1-8/31, it will automatically take the average of that month and so forth?
 

Excel Facts

Is there a shortcut key for strikethrough?
Ctrl+S is used for Save. Ctrl+5 is used for Strikethrough. Why Ctrl+5? When you use hashmarks to count |||| is 4, strike through to mean 5.
Excel Workbook
ABCDE
1DateVolumeSalesRatioIndex
201/07/2009 00:00* * * * 522,424,242* * 20,3120.00%95.58824
302/07/2009 00:00* * * * 222,424,242* * 17,2360.01%188.7255
403/07/2009 00:00* * * * 422,425,444* * 19,7670.00%115.1961
504/07/2009 00:00* * * * 422,424,242* * * *9,8080.00%56.37255
605/07/2009 00:00* * * * 654,897,864* * 11,6910.00%44.11765
Sheet1
 
Upvote 0

Forum statistics

Threads
1,224,558
Messages
6,179,512
Members
452,921
Latest member
BBQKING

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top