简体   繁体   English

从Excel中的B列通过MATCH从A列返回MAX

[英]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.

相关问题 excel-我需要从a列匹配be列的值,并在与b列相邻的单元格中返回一个值 - excel - i need to take a value from column a match to column be and return a value in a cell adjacent to column b Microsoft Excel - 对于A列中的每个唯一值,从C列返回最大值,从B返回相应的值 - Microsoft Excel - for each unique value in column A, return max value from column C and the corresponding value from B Excel公式匹配A列中的值,并且不返回空白列B - Excel formula match value in column A and return not blank cell column B 如果B列满足if语句,则Excel从A列返回值 - Excel Return values from Column A if Column B satisfies if statement Function Excel 2003:将A列中的值与B列匹配,然后从B列中提取数据 - Excel 2003: Match value in column A with column B, then pull data from column B Excel:将B列中的任何内容与A列中的全部内容部分匹配并返回是或否 - Excel: Partial match any content in column B with full content in column A & return yes or no 匹配工作簿1的A列和工作簿2的A列中的文本,并匹配工作簿2的B列中的值 - Match text from workbook 1 column A and workbook 2 column A and return value from column B in Workbook 2 匹配数字&gt; = A列和&lt;B列返回C列 - Match a number >= column A and < column B Return column C # 给定A列中的值,在EXCEL中的B列中找到min / max - Given value in column A, find min/max in column B in EXCEL Excel如果A列具有相同的值,则在B列中突出显示最大日期 - Excel If column A has same value then highlight max date in column B
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM