Question : Reverse HLOOKUP / find the first "0" from right to left in a row

Hi,

I have s with names and 0s.

Most of my rows are as such

Name1 Name2 Name3 Name4 Name5 FakeCol ColRef# NameatColRef#
David     John    Sam    0        Josh      0             4                Josh
David     Amy    Sam    0        Josh      0              4                Josh                
David     Amy    Sam    0        0          0              2                Sam
 

I am trying to do a lookup where I find the last column that has a non 0 (or the first zero column from the right).

Any ideas?

-Edward

Answer : Reverse HLOOKUP / find the first "0" from right to left in a row

ok i see now.
Assuming columns of data in A:F starting in row 2:
  in a cell in row 2 enter:  =HLOOKUP("zzzzz",A2:F2,1,TRUE)
This returns the last text (non-numerical) entry.

It also assumes no entry will be greater than "zzzzz" in text comparison, which i believe is pretty safe.
Regards,
Sebastien
Random Solutions  
 
programming4us programming4us