actually what im trying to do is index forumula so that the cells d16:e17 always have results in all 4 cells all the time

ie if i change cell e5 i want to see what are the results for the 2 scenario both a and b