I am computing an end date for the weekly publication of an advertisement. The inputs are the start date and the number of total insertions, while which Thursdays to insert the ad is based on a binary pattern like 00101 which would mean the third and fifth Thursday of the month - every week is 11111. From a given start date (always a Thursday) when is the last Thursday on which there will be an insertion, for any number of insertions.
This problem would be relatively easy as a macro but i would like to make it happen inside a cell as a single function. I have tried many things, even making a lookup table that had a row for every one of the 31 possibilities and a column for every week for a couple of decades! But that's pretty clumsy (though it works).
Suggestions eagerly received.
This problem would be relatively easy as a macro but i would like to make it happen inside a cell as a single function. I have tried many things, even making a lookup table that had a row for every one of the 31 possibilities and a column for every week for a couple of decades! But that's pretty clumsy (though it works).
Suggestions eagerly received.