If you look at this formula which takes the dates for March 2019 from your list of dates in column A, it will be easier to see how the lookup is working.then compare that to the full formula, where the section in red generates the list of dates in A2:A32 as an array by calculating back from the date in E2 to the start of the month.
Lookup pulls the annual rate for each individual day. Sumproduct does the division, then adds it all together.
Try using the formula evaluation tool to follow the steps (Formulas tab > Evaluate Formula). It might be easier with a smaller date range, if you set the end date in E2 to earlier in the month it should still work.
Bookmarks