Try the following formula, which needs to be confirmed with CONTROL+SHIFT+ENTER...

=MATCH(TRUE,MMULT((ROW(E5:E19)>=TRANSPOSE(ROW(E5:E19)))+0,LARGE(E5:E19,ROW(INDIRECT("1:"&ROWS(E5:E19)))))/E4>=50%,0)

Hope this helps!