Here one sample based Your picture:
A-column has those absent dates - You name one, but normally there are many of those.
AL-column has the 'result'.
You can see a sample code right side. As written in previous post ... it could be smoother for You to post a sample file.