电子表格公式,可以在查找的值是“左”的行定位数据

问题描述 投票:0回答:2

我试图根据是同一行中的值弄清楚“如何做”的行(列C)定位数据,但在列J.

我尝试使用Vlookup功能,但搜索数据(J列)需要为所需的数据(列C)的左侧,但不是在我的情形的情况下。

示例文件https://docs.google.com/spreadsheets/d/1JO7mor4SCnOCW2JRT3dhxpqSS1BPEjCpSPj1BAuZ_Qg/edit?usp=sharing

enter image description here我试着写在细胞C22一个公式,会发现C21A4:F13范围内的值,然后返回该行的C列中的值。

任何想法是极大的赞赏!

excel google-sheets excel-formula google-sheets-formula
2个回答
1
投票
=VLOOKUP(C21, {J4:J14,C4:C14}, 2, 0)

enter image description here


1
投票

一个简单的索引比赛将做到这一点:

=INDEX(C4:C13,MATCH(MAX(J4:J13),J4:J13,0))
© www.soinside.com 2019 - 2024. All rights reserved.