Hey,
I have a dataset filled from A1 to E35383. A contains dates, but only the first of each month, and it switches months every few thousand rows. There is a certain term in column B, let's say "Pretzels," that appears once in about 4 of these months in non-consecutive months. In other words, I have data for Pretzels for May, January, and December, but not any of the other months. I need to add in a line for Pretzels for the months where it is missing, and just have the corresponding C, D, and E cells say "0" to denote that there isn't data for Pretzels for that month. Here's what I've been thinking for the code so far, but it seems very inefficient and obviously it doesn't work, but it might help you get the idea for what I'm trying to accomplish:
If this is the most efficient way to go, then I'd need help getting the missingdates = totaldates - founddates piece to work, I think. If anyone has another solution (which I'm sure exists), please throw it out there. Thanks for the help.
Bookmarks