Forum Discussion
tstecklein
Jun 12, 2022Copper Contributor
Excel help needed please
I have a column of numbers made up of positive numbers and zeros. Starting from the bottom of the column, I need to find the last 8 non-zero numbers, subtract the two highest and the two lowest numbe...
Patrick2788
Jun 13, 2022Silver Contributor
Using a few Beta functions:
=LET(f,FILTER(list,list<>0),s,SORT(DROP(f,ROWS(f)-8),1,-1),AVERAGE(CHOOSEROWS(s,{3,4,5,6})))- tsteckleinJun 20, 2022Copper ContributorPatrick2788....just so I understand, should it be:
=LET(f,FILTER(A1:A100,A1:A100<>0),s,SORT(DROP(f,ROWS(f)-8),1,-1),AVERAGE(CHOOSEROWS(s,{3,4,5,6})))
I'm not sure what to put in for 'list'.
Thanks.- Patrick2788Jun 20, 2022Silver Contributor
Try this:
=LET(a,A1:A100,f,FILTER(a,a<>0),s,SORT(DROP(f,ROWS(f)-8),1,-1),AVERAGE(CHOOSEROWS(s,{3,4,5,6})))- tsteckleinJun 21, 2022Copper ContributorThank you.