Rolling 4 Week Date Range

Lanny94

New Member
Joined
Jul 7, 2021
Messages
4
Office Version
  1. 2019
Platform
  1. Windows
  2. MacOS
Hello! I am calculating a 4 week moving average in column B and would like to display the rolling date range in column A. Currently I have the below dates manually entered but I would like to be able to just drag down to autofill the date range in the future. Is there a formula that would allow me to accomplish this? Thank you!


1/3/21 - 1/24/2174.53%
1/10/21 - 1/31/2170.02%
1/17/21 - 2/7/2170.29%
1/24/21 - 2/14/2175.47%
1/31/21 - 2/21/2185.98%
2/7/21 - 2/28/2183.29%
2/14/21 - 3/7/2182.39%
2/21/21 - 3/14/2179.88%
2/28/21 - 3/21/2176.26%
3/7/21 - 3/28/2177.76%
3/14/21 - 4/4/2173.15%
3/21/21 - 4/11/2164.43%
3/28/21 - 4/18/2151.21%
4/4/21 - 4/25/2148.94%
4/4/21 - 5/2/2148.86%
4/11/21 - 5/9/2153.00%
4/18/21 - 5/16/2161.51%
4/25/21 - 5/23/2167.92%
5/2/21 - 5/30/2174.70%
5/9/21 - 6/6/2178.88%
5/16/21 - 6/13/2173.30%
5/23/21 - 6/20/2172.37%
5/30/21 - 6/27/2171.25%
 

Excel Facts

Wildcard in VLOOKUP
Use =VLOOKUP("Apple*" to find apple, Apple, or applesauce
Welcome to the MrExcel forum!

How about:

Cell Formulas
RangeFormula
A3:A16A3=TEXT(LEFT(A2,FIND("-",A2)-1)+7,"m/d/yy")&" - "&TEXT(MID(A2,FIND("-",A2)+2,99)+7,"m/d/yy")


Put the first range in A2, the formula in A3 and drag down. In your example,, you have 4/4/21 twice? Is that a typo?
 
Upvote 0
Solution
@Eric W Thank you so much! And yes, having 4/4/21 twice was definitely a typo. This is exactly why I needed the formula ?

Thanks again!
 
Upvote 0

Forum statistics

Threads
1,215,026
Messages
6,122,738
Members
449,094
Latest member
dsharae57

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