=LET(txt, TEXTJOIN("", FALSE, 0, --A2:K2, 0), modTxt, SUBSTITUTE(txt, "0.5", 1), halfDaysAdjust, 0.5*(LEN(txt)-LEN(SUBSTITUTE(txt, "00.50", "0000"))), LEN(modTxt)-LEN(SUBSTITUTE(modTxt, "10", "0"))-halfDaysAdjust)
This is formula that is giving me the 3 first logics I need to add one more logic without messing up the other logics
Example of logics
1 0 1 0 1 = 3 ocurrences
1 1 1 0 1 = 2 ocurrences
.5 0 .5 .5 0 = 1.5 ocurrences
1 .5 0 .5 .5 = 3 ocurrences
Description:
First logic :1 are not consecutive is count as separate occurrence
2nd logic: 1s that are consecutive is 1 occurrence
3rd logic:.5 are count as a half point always
4th logic and this is the one I need to add:If a .5 is next to a 1 that .5 becomes in 1 occurrence.


