Moving cell data according to date

manishman

New Member
Joined
Mar 17, 2021
Messages
1
Office Version
  1. 2019
Platform
  1. Windows
Hi all,

I'm a noob at excel and not entirely sure if this is possible to achieve. Will try my best to explain what I'm after using steps.

1. I want a 14 period to always show up and would like 'today's date' (whatever that may be) to always be fixed somewhere in the middle.
2. As the date changes, 'today's date' will change but remain in the same position. The oldest date get's deleted on the far left and a new date gets added on the far right to maintain that 14 day period.
3. The data in the specific date columns from ROW 2 to 6 will move with the date and eventually gets deleted when it reaches the far left. When the new date is added on the far right, new data will be added manually.
4. Column E would be frozen at all times.

sample.xlsx
ABCDEFGHIJKLMNOPQRST
1
211-Mar-2112-Mar-2113-Mar-2114-Mar-2115-Mar-2116-Mar-2117-Mar-2118-Mar-2119-Mar-2120-Mar-2121-Mar-2122-Mar-2123-Mar-2124-Mar-21
3DAYS:ThuFriSatSunMonTueWedThuFriSatSunMonTueWed
4
5Agent 12
6Agent 236633.563
7
8Sun-Sat
9Mon-Sun
10Tue-Mon
11Wed-Tue
12Thu-Wed
13Fri-Thu
14Sat-Fri
15Sun-Sat
16
17
Sheet3
Cell Formulas
RangeFormula
F2:K3F2=G2-1
L2:L3L2=TODAY()
M2:S3M2=L2+1
Cells with Conditional Formatting
CellConditionCell FormatStop If True
P2,P4:P6Dates OccurringtodaytextNO
L3,F2:S2Dates OccurringtodaytextNO
 

Excel Facts

Difference between two dates
Secret function! Use =DATEDIF(A2,B2,"Y")&" years"&=DATEDIF(A2,B2,"YM")&" months"&=DATEDIF(A2,B2,"MD")&" days"

Forum statistics

Threads
1,216,783
Messages
6,132,682
Members
449,747
Latest member
OldMrsMol

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