Data Table, copy formula to next column and copy and paste values of a previous column

ElBB23

New Member
Joined
Feb 10, 2017
Messages
26
Hi all,

I have a data table with weekly dates across the top, within this table there is a sum if formula. I'm looking for a VBA that when opened if it is a Wednesday of the current week it drags the formula into the next column and copys/pastes values of an older column. (Basically just moving the formula range along one each week). Also, if the formula has moved across and the spreadsheet is opened again I don't want it to do anything until the following week.

Week 1

Wednesday of current week: 26/02/2020
Description03/02/202010/02/202017/02/202024/02/202002/03/2020
Example 1ValueSum if FormulaSum if FormulaSum if FormulaBlank
Example 2ValueSum if FormulaSum if FormulaSum if FormulaBlank
Example 3ValueSum if FormulaSum if FormulaSum if FormulaBlank

Following week
Wednesday of current week: 02/03/2020
Description03/02/202010/02/202017/02/202024/02/202002/03/2020
Example 1ValueValueSum if FormulaSum if FormulaSum if Formula
Example 2ValueValueSum if FormulaSum if FormulaSum if Formula
Example 3ValueValueSum if FormulaSum if FormulaSum if Formula

Thanks in advance for the help,
 

Excel Facts

Fastest way to copy a worksheet?
Hold down the Ctrl key while dragging tab for Sheet1 to the right. Excel will make a copy of the worksheet.

Forum statistics

Threads
1,214,548
Messages
6,120,141
Members
448,948
Latest member
spamiki

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