[英]Return MAX from Column A with MATCH against Column B in Excel
I have been scratching my head on this one for a few hours now. 我已经在这个头上抓了几个小时了。
I have a spreadsheet with 3 columns. 我有一个包含3列的电子表格。 Column A contains the Date Period formatted as such 200401 for the first month of 2004. Column B contains a Reference Number.
A列包含格式为200401的2004年第一个月的日期期限。B列包含参考编号。
In Column CI would like to have a formula that returns the highest value in Column A using the reference number from Column B. As shown below CI列中希望有一个公式,该公式使用B列中的引用号返回A列中的最大值。如下所示
COL A COL B COL C
200407 DIFA0694 200408
200408 DIFA0694 200408
200311 DIFA0704 200801
200403 DIFA0704 200801
200801 DIFA0704 200801
200311 DIFA0712 ......
200311 DIFA0712 ......
200409 DIFA0712 ......
200411 DIFA0712 ......
200312 DIFA0736 ......
200312 DIFA0736 ......
200512 DIFA0736 ......
200404 DIFA0763 ......
200405 DIFA0763 ......
200405 DIFA0763 ......
200807 DIFA0763 ......
200405 DIFA0780 ......
200408 DIFA0780 ......
200312 DIFA0780 ......
200401 DIFA0780 ......
So, the COL C value should be the most recent period for the job reference shown in COL B. 因此,COL C值应该是COL B中显示的作业参考的最新时期。
I have tried this using a combination of MAX, INDEX and MATCH but to no avail. 我已经尝试过结合使用MAX,INDEX和MATCH,但无济于事。 I believe this is because the INDEX, MATCH does not return an array of values.
我相信这是因为INDEX,MATCH不返回值数组。
I would appreciate any guidance that anybody could offer 我会很感激任何人都可以提供的指导
try this: on c2 paste: 试试这个:在C2上粘贴:
=MAX(IF(b:b=b2,a:a,""))
and drag it down. 并将其向下拖动。 dont forget to press ctrl+shift+enter
不要忘记按Ctrl + Shift + Enter
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.