Hi everyone,
I have a strip of alphabetical and numerical values across a row contained in cells B6 to J6 as follows:
56 dnp 24 dnp dnp 47 dnp 33 dnp
Thanks to this site, I have previously used the following formula to find the LAST numeric value in this range:
=INDEX(B6:J6,MATCH(9E+300,B6:J6))
I have also used the following formula to find the SECOND LAST numeric value in this range:
=LOOKUP(9E+300,B6:INDEX(B6:J6,MATCH(9E+300,B6:J6)-1))
I now need to find the THIRD LAST numeric value in this range. I tried to use the formula:
=LOOKUP(9E+300,B6:INDEX(B6:J6,MATCH(9E+300,B6:J6)-2))
but this did not give me the right answer. I have a number of rows of data just like the above strip (56 dnp 24 dnp etc etc) but with different combinations of numbers and "dnp" entries, and the formula above works on most of these strips, however when there is a certain combination of numbers and "dnp" entries across the columns (such as the one above), the formula for the THIRD LAST numeric value does not work correctly.
Does anyone know whether there is a formula to determine the THIRD LAST numeric value in a row, regardless of where the "dnp" entries are located within the row of data?
Thanks in advance...
Bookmarks