Excel lookup value in rightmost alphanumeric cell in row

泄露秘密 提交于 2021-01-28 06:31:34

问题


I imagine that I have a row with two kinds of alphanumeric values, one that has 0, and another that has a digit above 0.

If I want to find the rightmost cell that has a value above 0 such as 1, what would the formula be?

Currently I am using the formula =IFERROR(LOOKUP(2,1/(A2:O2<>""),A2:O2),"NS")

but it returns MB0 instead of HB1.


回答1:


I'd suggest trying like below if number part is always rightmost part of the string.

=IFERROR(LOOKUP(2,1/RIGHT(A2:O2),A2:O2),"NS")


来源:https://stackoverflow.com/questions/52311422/excel-lookup-value-in-rightmost-alphanumeric-cell-in-row

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!