Good morning,
I would like to use the COUNTIF function for the flexible cell range, based on the number of the row.
If my record OR533 is based on the row 4 as per the formula:
=MATCH(A2,Tracker!A3:A4000)
then the value on my cell W7 is 4.
Now I would like to incorporate this cell value into the COUNTIF function.
My counting function looks like this:
=COUNTIF(D3:D9,"Julian")
but in this event it counts from the row 1, which is D3. I want now this function working from the row, where my record is based, which is 4 (D7 cell).
I tried to write:
=COUNTIF(D3:(D9-4),"Julian")
=COUNTIF(D3:(D&W7), "Julian")
None of them were working.
I found some solution in VBA
Worksheet Function Countifs for resizable range
but I am wondering is it possible to reach without VBA this time? I would like to have the COUNTIF function working only to the specified row (marked in red on the image) instead of the last row.

=COUNTIF(INDEX(D:D,MATCH(....)):D9,....- JvdVOFFSET,INDEX,XLOOKUP(which is basicallyINDEXMATCHas a single, official function),INDIRECT- they all return References instead of Values (i.e.ISREF(OFFSET(..))would returnTRUE).CHOOSEcan too, depending on what arguments you pass - Chronocidal