Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个 Excel 电子表格,其中有一列包含我参加比赛的州。我想编写一个函数来返回我跑过的最后一场州外比赛。我该怎么做?
您可以使用INDEX()获取行号:
INDEX()
=INDEX(MAX((A:A<>"")*(A:A<>"NJ")*(ROW(A:A))),0)
并INDEX()获得价值:
=INDEX(A:A,INDEX(MAX(($A:$A<>"")*(A:A<>"NJ")*(ROW(A:A))),0))
最后一个值不等于NJ。