Forum Discussion
Offset
Taking the opportunity to play with new functions
= LET( played, MAX( IF( ISNUMBER(scores), round ) ),
idx, 2 * ( played-{4,3,2,1,0} ),
Sco, INDEX( scores, idx-1 ),
SUM(Sco) )
and
= LET( played, MAX( IF( ISNUMBER(scores), round ) ),
idx, 2 * ( played-{4,3,2,1,0} ),
Con, INDEX( scores, idx ),
SUM(Con) )
are the sum of scores for and against
- Jrm92Apr 05, 2020Copper Contributor
It is not working for me.
Could you put the formula in the file uploaded in the previous comment?
Thanks
- PeterBartholomew1Apr 06, 2020Silver Contributor
The LET function has only recently been released on the insider's channel for beta testing. Without it, there is a catch in that the INDEX function prevents spilling so the formula needs coercion to work.
played: = MAX( IF( ISNUMBER(scores), round ) )
idx: = 2 * ( played - {4,3,2,1,0} )
Sco: = INDEX( scores, idx-1 )
Con: = INDEX( scores, idx )
= SUM(N(IF(1,Sco)))
= SUM(N(IF(1,Con)))