Forum Discussion

Chan_Tze_Leong's avatar
Chan_Tze_Leong
Brass Contributor
Aug 30, 2021
Solved

Find last value in an Excel row which is not NA

I am trying to find the last value in an Excel row which has figures and NA. I have used Match and Lookup but it does not show 93% (which is the last figure).    NA NA 87% NA NA 93% NA   ...
  • JoeUser2004's avatar
    Aug 30, 2021

    Chan_Tze_Leong 

     

    Kind of useless to attach an Excel file that we cannot modify or look at details because it password protected.  (Klunk!)

     

    And in the future, you should show us the formulas that you tried that did not work.  It might be more educational for you.

     

    =LOOKUP(1E+300, D34:Z34) works for me.  It returns 0.93, which we can format as 93%.

     

    1E+300 is any large number -- whatever is easy for you to remember.  Another reasonable choice is 1E+100.

     

    Some people use 9.99999999999999E+307.  Totally unnecessary!   That is the largest value that we can enter manually.  But it is not the largest value that Excel can calculate.

     

    (1.79769313486232E+308 is, approximately.  We can calculate the exact value with the expression 10*1.79769313486231E+307 + 5.79E+293.  Again, totally unnecessary, since it is not likely that you will use such large values.)

Resources