im trying to figure out a way to automate this process. I've broken it down in to the following steps but don't know how to start.. VBA code is a slight edit from record macro. Any guidance would be really appreciated!
1) Check how many cities starting in current month in 'Launch Matrix tab',
2) Extract data from 'sample data tab',
3) multiply (2)'s data with the amount of cities starting, in order to see full impact of X amount of cities
4) and paste in 'Consolidated Tab' under the right month
Consolidated tab looks exactly the same as the sample data tab, only difference is it shows a consolidated view.
Code for first 2 months looks like the following:
'
' Macro2 Macro
'
'
ActiveCell.FormulaR1C1 = _
"=('Launch Matrix'!R2C4*'Small City Data'!R[-1]C+'Launch Matrix'!R3C4*'Medium City Data'!R[-1]C+'Launch Matrix'!R4C4*'Large City Data'!R[-1]C)"
Range("C5").Select
Selection.Copy
Range("C3").Select
Selection.End(xlToRight).Select
Range("L5").Select
Range(Selection, Selection.End(xlToLeft)).Select
Range("D5:L5").Select
Range("L5").Activate
ActiveSheet.Paste
Range("D5").Select
Application.CutCopyMode = False
ActiveCell.FormulaR1C1 = _
"=('Launch Matrix'!R2C4*'Small City Data'!R[-1]C+'Launch Matrix'!R3C4*'Medium City Data'!R[-1]C+'Launch Matrix'!R4C4*'Large City Data'!R[-1]C)+('Launch Matrix'!R2C5*'Small City Data'!R[-1]C[-1]+'Launch Matrix'!R3C5*'Medium City Data'!R[-1]C[-1]+'Launch Matrix'!R4C5*'Large City Data'!R[-1]C[-1])"
Range("D5").Select
Selection.Copy
Range(Selection, Selection.End(xlToRight)).Select
ActiveSheet.Paste
End Sub
I want Feb-20 in consolidated tab to include launches in Feb-20 (i.e. Month 1 rev/costs * # of launches in Feb-20) and Month 2 data of Jan-20 launches (Month 2 rev/costs * # of launches in Jan-20) and so on and so forth. Thank you!