I am trying to figure out a way of determining the position of the last number in an array, where that array includes both spaces and error messages at irregular intervals, and includes multiple values with 3 decimal positions. ie. in a column containing the following values, I would want a value of 9.

1 1.012

2 #N/A

3 1.020

4

5 1.010

6 1.001

7 #N/A

8 #N/A

9 1.001

10 #N/A

11 #N/A

using =LOOKUP(9.99E+307,A1:A11) I can reliably determine the value of whatever the last number is (in this case 1.001).2 #N/A

3 1.020

4

5 1.010

6 1.001

7 #N/A

8 #N/A

9 1.001

10 #N/A

11 #N/A

I've then tried using =MATCH(LOOKUP(9.99E+307,A1:A11),A1:A11,0) but this returns the first occurrence of 1.001 (in this case 6)

I've heard that you can use LOOKUP again to determine the last matching value, but this option seems to have issues with my use of decimal places.

Any help would be appreciated! Ideally I would like a solution that could work with both vertical and horizontal arrays.