Anybody know how to automate the process of copying formulas from one column to the next, then hard coding the values on the original column?
Each month it will move one column over (as each month represents a new column), the formulas will overwrite existing hard coded values in the new column. I tried recording a macro but it does not work since it is one column over each month. Any ideas? Thank you in advance!
Each month it will move one column over (as each month represents a new column), the formulas will overwrite existing hard coded values in the new column. I tried recording a macro but it does not work since it is one column over each month. Any ideas? Thank you in advance!
Sample Data File_7.26.22.xlsx | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
A | B | C | D | E | F | G | H | I | J | K | L | M | N | O | P | |||
1 | ||||||||||||||||||
2 | ||||||||||||||||||
3 | Hard Coded | Hard Coded | Hard Coded | Hard Coded | Hard Coded | Formula | New month column overwrite hard coded values with formula | Each month the formulas move over one month Hard Coded | Hard Coded | Hard Coded | Hard Coded | Hard Coded | ||||||
4 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | ||||||
7 | Product #1 | Jan-22 | Feb-22 | Mar-22 | Apr-22 | May-22 | Jun-22 | Jul-22 | Aug-22 | Sep-22 | Oct-22 | Nov-22 | Dec-22 | |||||
8 | Product 1 | Order | Order | 5,371 | 4,412 | 5,179 | 4,987 | 4,795 | 3,550 | 5,371 | 4,412 | 5,179 | 4,987 | 4,795 | 4,987 | |||
9 | AA+AS | At Sea | Shipping | 643 | 706 | 228 | 2,068 | 2,183 | 2,173 | 643 | 706 | 228 | 2,068 | 2,183 | 2,068 | |||
10 | IT+TN | In-Transit | Transit | 808 | 2,611 | 1,251 | 804 | 1,845 | 1,310 | 808 | 2,611 | 1,251 | 804 | 1,845 | 804 | |||
11 | PA | Port | Warehouse #1 | 249 | 345 | 192 | 1,310 | 480 | 180 | 249 | 345 | 192 | 1,310 | 480 | 1,310 | |||
12 | PS | Stock | Warehouse #2 | 361 | 744 | 276 | 203 | 159 | 14 | 361 | 744 | 276 | 203 | 159 | 203 | |||
13 | Sum of MTLY WHSL | Wh | Store Rtl Sales | 2,848 | 3,063 | 5,302 | 4,569 | 5,960 | 500 | 2,848 | 3,063 | 5,302 | 4,569 | 5,960 | 4,569 | |||
14 | Sum of MTLY WHSL | Wh | Store B2B | 420 | 2 | 0 | 2 | 0 | 700 | 420 | 2 | 0 | 2 | 0 | 2 | |||
15 | Sum of MTLY WHSL | Wh | Store Emp. Purch | 0 | 0 | 10 | 15 | 0 | 200 | 0 | 0 | 10 | 15 | 0 | 15 | |||
16 | Sum of MTLY RTL | Rt | Store Rtl Sales | 3,132 | 2,866 | 5,425 | 4,233 | 6,153 | 400 | 3,132 | 2,866 | 5,425 | 4,233 | 6,153 | 4,233 | |||
17 | Sum of MTLY RTL | Rt | Store B2B | 0 | 1,057 | 0 | 2 | 0 | 800 | 0 | 1,057 | 0 | 2 | 0 | 2 | |||
18 | Sum of MTLY RTL | Rt | Store Emp. Purch | 200 | 250 | 135 | 120 | 275 | 100 | 200 | 250 | 135 | 120 | 275 | 120 | |||
19 | Sum of Dealer Stock | Rtl Sales | 458 | 656 | 533 | 869 | 675 | 300 | 458 | 656 | 533 | 869 | 675 | 869 | ||||
20 | Sum of Dealer Stock | Stock | B2B | 1,055 | 0 | 0 | 0 | 211 | 900 | 1,055 | 0 | 0 | 0 | 211 | 0 | |||
21 | Sum of Dealer Stock | Emp. Purch | 6 | 6 | 2 | 6 | 12 | 600 | 6 | 6 | 2 | 6 | 12 | 6 | ||||
22 | ||||||||||||||||||
23 | Product #2 | Jan-22 | Feb-22 | Mar-22 | Apr-22 | May-22 | Jun-22 | |||||||||||
24 | ||||||||||||||||||
25 | Product 2 | Production Order | 15,729 | 18,798 | 23,018 | 28,770 | 3,437 | 1,256 | 15,729 | 18,798 | 23,018 | 28,770 | 3,437 | 23,018 | ||||
26 | AA+AS | Water | Shipping | 5,572 | 3,199 | 2,016 | 6,173 | 8,753 | 1,790 | 5,572 | 3,199 | 2,016 | 6,173 | 8,753 | 2,016 | |||
27 | IT+TN | Transit | Transit | 6,234 | 8,118 | 6,752 | 2,509 | 6,263 | 899 | 6,234 | 8,118 | 6,752 | 2,509 | 6,263 | 6,752 | |||
28 | PA | Warehouse #1 | Warehouse #1 | 1,887 | 1,734 | 1,377 | 1,895 | 1,456 | 421 | 1,887 | 1,734 | 1,377 | 1,895 | 1,456 | 1,377 | |||
29 | PS | Warehouse #2 | Warehouse #2 | 869 | 1,698 | 3,410 | 1,922 | 568 | 40 | 869 | 1,698 | 3,410 | 1,922 | 568 | 3,410 | |||
30 | Sum of MTLY WHSL | Wh | Store Rtl Sales | 9,107 | 15,232 | 16,448 | 17,365 | 15,773 | 500 | 9,107 | 15,232 | 16,448 | 17,365 | 15,773 | 16,448 | |||
31 | Sum of MTLY WHSL | Wh | Store B2B | 1,945 | 1,536 | 1,423 | 405 | 675 | 700 | 1,945 | 1,536 | 1,423 | 405 | 675 | 1,423 | |||
32 | Sum of MTLY WHSL | Wh | Store Emp. Purch | 6 | 2 | 10 | 38 | 4 | 200 | 6 | 2 | 10 | 38 | 4 | 10 | |||
33 | Sum of MTLY RTL | Rt | Store Rtl Sales | 10,448 | 13,373 | 17,712 | 17,417 | 16,304 | 400 | 10,448 | 13,373 | 17,712 | 17,417 | 16,304 | 17,712 | |||
34 | Sum of MTLY RTL | Rt | Store B2B | 575 | 2,231 | 712 | 1,347 | 1,343 | 800 | 575 | 2,231 | 712 | 1,347 | 1,343 | 712 | |||
35 | Sum of MTLY RTL | Rt | Store Emp. Purch | 2 | 12 | 8 | 31 | 21 | 100 | 2 | 12 | 8 | 31 | 21 | 8 | |||
36 | Sum of Dealer Stock | Rtl Sales | 1,834 | 3,692 | 2,428 | 2,377 | 1,845 | 300 | 1,834 | 3,692 | 2,428 | 2,377 | 1,845 | 2,428 | ||||
37 | Sum of Dealer Stock | Stock | B2B | 2,231 | 1,675 | 2,580 | 1,636 | 973 | 900 | 2,231 | 1,675 | 2,580 | 1,636 | 973 | 2,580 | |||
38 | Sum of Dealer Stock | Emp. Purch | 17 | 10 | 2 | 15 | 13 | 600 | 17 | 10 | 2 | 15 | 13 | 2 | ||||
39 | ||||||||||||||||||
22CY RDOWN |
Cell Formulas | ||
---|---|---|
Range | Formula | |
I4:O4 | I4 | =+H4+1 |
I8,I25 | I8 | =INDEX(CY!$D$6:$O$30,MATCH($A8,CY!$B$6:$B$30,0),MATCH(I$4,CY!$D$4:$O$4,0)) |
I9,I26 | I9 | =INDEX(Top!$L$4:$O$30,MATCH($A8,Top!$J$4:$J$30,0),MATCH($A9,Top!$L$3:$O$3,0)) |
I10,I27 | I10 | =INDEX(Top!$L$4:$O$30,MATCH($A8,Top!$J$4:$J$30,0),MATCH($A10,Top!$L$3:$O$3,0)) |
I11,I28 | I11 | =INDEX(Top!$L$4:$O$30,MATCH($A8,Top!$J$4:$J$30,0),MATCH($A11,Top!$L$3:$O$3,0)) |
I12,I29 | I12 | =INDEX(Top!$L$4:$O$30,MATCH($A8,Top!$J$4:$J$30,0),MATCH($A12,Top!$L$3:$O$3,0)) |
I13,I30 | I13 | =INDEX('Bottom (CY)'!$D$7:$F$38,MATCH($A8,'Bottom (CY)'!$A$7:$A$38,0),MATCH($A13,'Bottom (CY)'!$D$6:$F$6,0)) |
I14,I31 | I14 | =INDEX('Bottom (CY)'!$D$90:$F$114,MATCH($A8,'Bottom (CY)'!$A$90:$A$114,0),MATCH($A14,'Bottom (CY)'!$D$89:$F$89,0)) |
I15,I32 | I15 | =INDEX('Bottom (CY)'!$D$45:$F$82,MATCH($A8,'Bottom (CY)'!$A$45:$A$82,0),MATCH($A15,'Bottom (CY)'!$D$44:$F$44,0)) |
I16,I33 | I16 | =INDEX('Bottom (CY)'!$D$7:$F$38,MATCH($A8,'Bottom (CY)'!$A$7:$A$38,0),MATCH($A16,'Bottom (CY)'!$D$6:$F$6,0)) |
I17,I34 | I17 | =INDEX('Bottom (CY)'!$D$90:$F$114,MATCH($A8,'Bottom (CY)'!$A$90:$A$114,0),MATCH($A17,'Bottom (CY)'!$D$89:$F$89,0)) |
I18,I35 | I18 | =INDEX('Bottom (CY)'!$D$45:$F$82,MATCH($A8,'Bottom (CY)'!$A$45:$A$82,0),MATCH($A18,'Bottom (CY)'!$D$44:$F$44,0)) |
I19,I36 | I19 | =INDEX('Bottom (CY)'!$D$7:$F$38,MATCH($A8,'Bottom (CY)'!$A$7:$A$38,0),MATCH($A19,'Bottom (CY)'!$D$6:$F$6,0)) |
I20,I37 | I20 | =INDEX('Bottom (CY)'!$D$90:$F$114,MATCH($A8,'Bottom (CY)'!$A$90:$A$114,0),MATCH($A20,'Bottom (CY)'!$D$89:$F$89,0)) |
I21,I38 | I21 | =INDEX('Bottom (CY)'!$D$45:$F$82,MATCH($A8,'Bottom (CY)'!$A$45:$A$82,0),MATCH($A21,'Bottom (CY)'!$D$44:$F$44,0)) |
I23 | I23 | =I$5 |