Forum Discussion
packie
Mar 31, 2020Brass Contributor
Count cells with positive values - advanced
Hi, I need a formula that will find the last three cells minus one cell in a range containing positive values only. The formula needs to be dynamic as more cells are added to the range. Do le...
Patrick2788
May 13, 2024Silver Contributor
SergeiBaklan
May 13, 2024Diamond Contributor
Nice idea. Modified a bit if the last number is negative and we shall not to exclude it
=LET(
v, TOROW($E6:$ZZ6,3),
COUNT( LOG(
TAKE( DROP(v,, @((TAKE(v,,-1)<0)-1)),, -3)
) )
)