Put the values 4,3,2,1 in cells L2 to L5, and then you can use this formula in B5:
=IF(B2="","",DATE(YEAR(B4)-IF(AND(MONTH(B4)>=1,MONTH(B4)<8),1,0)+VLOOKUP(B2,K$2:L$5,2,0),5,1))
If the current date is between January and August of one year, then the year values are subtracted by one year.
Hope this helps.
Pete
EDIT: I've attached your workbook with the changes in it.
Bookmarks