I have a sheet filled with blood pressure (BP) data, arranged by month.
I am interested in storing the last three BP values in a range per patient, each of which is assigned a row. Note that there are months which do not have BP readings, so there are blanks in the dataset.
The range for the blood pressures is BB:BL
.
I was able to find formulas for the last:
=LOOKUP(2,1/(ISNUMBER(BB3:BL3)),BB3:BL3)
and second-to-last:
=LOOKUP(9.99E+307,BB3:INDEX(BB3:BL3,MATCH(9.99E+307,BB3:BL3)-1))
But I am not able to modify the formula above to find the third-to-last non-blank BP value.
Any advice is appreciated!