phew that was fun.
i tried to make that work with formulas for a while but never came up w/ anything... only ideas got reallllly messy in a hurry.
the whole time though i was thinking this should be pretty easy w/ vba (i don't have much experience writing but this was a great opportunity to practice
)
so here you go, two subroutines, one for your 6 month column and one for your "12" month column (you only actually have 10 months of data...)
as in the attached. i'm off for the weekend but i'll try to remember to check back in on monday in case you have any questions. someone in the forum can help you out i'm sure.
p.s. i also added an iferror() statement to your vlookups to get rid of those n/a's and an indirect() reference to row 1 so that you can just copy the same formula across all columns. to add next month's data you'll just need to put 'Apr15 in N1 and change the ranges referenced in those codes to columns I through N and D through N.
Bookmarks