This is a continuation from a previous request:. I was able to make the formulas work, but my excel keeps crashing after dragging down the formula for 60,000 rows. Now I'm trying to figure out a way to automate it using VBA to save memory. I've found this thread helpful for the first part but don't know how to modify the formula to more than 3 columns (my actual raw data has 45-50 columns varying between versions).
Sample Input
Col1 Col2 Col3....Col48 Jan($) Feb ($) Mar ($) .... Dec ($)
111 AAA CT a $55 $100 $125 $100
112 BBB NJ b $50 $34 $125 $125
113 CCC NV c $55 $100 $125 $155
114 DDD VT d $95 $108 $75 $199
115 EEE NJ e $20 $100 $125 $120
Sample Output:
Col1 Col2 Col3 ... Month Spend
111 AAA CT 1/1 $55
111 AAA CT 2/1 $100
111 AAA CT 3/1 $125
111 AAA CT 4/1 $80
111 AAA CT 5/1 $70
.
.
.
115 EEE NJ 11/1 $50
115 EEE NJ 12/1 $120
Because I feel bad about not suggesting vba in the last post and had the OP spending time on something that would not work: