[英]Return last value in a row, based on another cell value
I have a sheet with the following basic format: 我的工作表具有以下基本格式:
User: Steve Latest 9
Name Period 1 Period 2 Period 3 Period 4
Colin 3 9 7
Jo 1 6 0
Steve 4 2 9
Kate 2 8 1
So basically, I want to populate the value of 'Latest' with the last value in the row, based on the value of 'User'. 因此,基本上,我想基于“用户”的值,用行中的最后一个值填充“最新”的值。
So if I changed the value of 'User' to a different person, it would return the last value in that particular row. 因此,如果我将“用户”的值更改为其他人,它将返回该特定行中的最后一个值。 (eg User: Colin Latest: 7)
(例如,用户:Colin最新:7)
I can retrieve the value of a single column using =INDEX(B5:B8,MATCH(B1,A5:A8,0))
however I'm struggling when it comes to the array. 我可以使用
=INDEX(B5:B8,MATCH(B1,A5:A8,0))
检索单个列的值,但是在处理数组时我很费力。
I've tried going doing the path of embedding a LOOKUP within INDEX / MATCH, and also array formulas to return the nth value, but none of them seem to work. 我尝试过在INDEX / MATCH中嵌入LOOKUP的路径,以及数组公式以返回第n个值的方法,但是它们似乎都不起作用。 Also having zero luck using something like
=MAX(ROW(A3:A7)*(--(B1=A3:A7)))
也使用
=MAX(ROW(A3:A7)*(--(B1=A3:A7)))
东西来获得零运气
I think I've worked myself down a blind alley, so a nudge in the right direction would be much appreciated. 我想我已经在一条小巷子里工作了,所以朝着正确的方向轻推将不胜感激。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.