Mar 31 2020 02:04 PM
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 let me know if you have difficulty understanding the question.
Thank you
packie
Mar 31 2020 02:17 PM
If the range ends in the column I, that could be
=COUNTIF(INDEX(A6:I6,1,COLUMN(I6)-3):INDEX(A6:I6,1,COLUMN(I6)-1),">0")
Mar 31 2020 03:13 PM
Apr 01 2020 02:02 PM
May 12 2024 04:27 AM
=COUNTIF(INDEX(E6:ZA6,LARGE(IF(E6:ZA6<>"",COLUMN(E:ZA)-4),4)):INDEX(E6:ZA6,LARGE(IF(E6:ZA6<>"",COLUMN(E:ZA)-4),2)),">0")
This formula works in my sample file. The formula must be entered as an arrayformula with ctrl+shift+enter if someone doesn't work with Office 365 or Excel for the web or Excel 2021.
May 13 2024 09:27 AM
May 13 2024 01:22 PM
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)
) )
)