If I've understood....
First as I see it the result you refer to for 1004 should be 13000 rather than 10600 - ie is missing 2 rows of data (19 & 20)
The complexity is obviously populating Dates of Production on File sheet.
If you wish to avoid VBA I suggest you adopt a similar process to before...
NOTE: below is working off assumption that (per the sample) Data sheet is sorted by CODE in Asc order.
With the above in place.... assuming XL2007
If "commitment" column on Data sheet is only populated where Cleared = N then you can change Col G to work along similar lines to that used in E, ie:
This is quicker than the earlier version given it uses binary search based match of code and nothing else (ie. no boolean test etc...) and thus processes a much smaller subset of data.
Bookmarks